swissChili | f3d6576 | 2022-07-03 22:34:54 -0700 | [diff] [blame] | 1 | # -*- tcl -*- |
| 2 | |
| 3 | init kernel kernel.elf |
| 4 | |
| 5 | presets freestanding debug 32 warn nasm |
| 6 | |
swissChili | 9b46c90 | 2022-07-10 15:48:46 -0700 | [diff] [blame] | 7 | cflags -I$root/include/kernel -I$root/include -I[pwd] -O0 -Wno-ignored-qualifiers -Wno-unused-params -Wno-sign-compare |
swissChili | f3d6576 | 2022-07-03 22:34:54 -0700 | [diff] [blame] | 8 | |
swissChili | 9b46c90 | 2022-07-10 15:48:46 -0700 | [diff] [blame] | 9 | # Sources are mostly platform dependent (for now ;D ) |
| 10 | enable_multiplat |
swissChili | f3d6576 | 2022-07-03 22:34:54 -0700 | [diff] [blame] | 11 | |
swissChili | 9b46c90 | 2022-07-10 15:48:46 -0700 | [diff] [blame] | 12 | srcs scan_codes.c |
swissChili | f3d6576 | 2022-07-03 22:34:54 -0700 | [diff] [blame] | 13 | |
| 14 | rule scan_codes.c "gen_scan_codes.py scan_codes.tsv" { |
| 15 | shell "python3 $::first_src > $::target" |
| 16 | } |
swissChili | 9b46c90 | 2022-07-10 15:48:46 -0700 | [diff] [blame] | 17 | |
| 18 | type custom_link |