summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-05-10 23:24:03 +0200
committerEugen Wissner <belka@caraus.de>2025-05-10 23:24:03 +0200
commit707f983fe96e4ad9bf89b07a0b4e88465c7d111f (patch)
treeb965d5a164889fa110abbcac6a2a72a53de2c935 /Rakefile
parent890486532c0715fcd0a0c64100d8b8167239d55a (diff)
downloadelna-707f983fe96e4ad9bf89b07a0b4e88465c7d111f.tar.gz
Add symbol info for parameters and local variables
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 57d3784..6b38038 100644
--- a/Rakefile
+++ b/Rakefile
@@ -20,3 +20,19 @@ task default: ['build/boot/stage2b', 'build/boot/stage2b.s', 'boot/stage2.elna']
diff_arguments = ['diff', '-Nur', '--text', previous_output, '-']
Open3.pipeline(cat_arguments, compiler_arguments, diff_arguments)
end
+
+file 'build/boot/test.s' => ['build/boot/stage1', 'boot/test.elna'] do |t|
+ source, exe = t.prerequisites.partition { |prerequisite| prerequisite.end_with? '.elna' }
+
+ File.open t.name, 'w' do |output|
+ assemble_stage output, exe, source
+ end
+end
+
+file 'build/boot/test' => ['build/boot/test.s', 'boot/common-boot.s'] do |t|
+ sh CROSS_GCC, '-nostdlib', '-o', t.name, *t.prerequisites
+end
+
+task test: 'build/boot/test' do |t|
+ sh QEMU, '-L', SYSROOT, t.prerequisites.first
+end