diff options
author | Alex Auvolat <alex@adnab.me> | 2016-07-13 22:31:46 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2016-07-13 22:31:46 +0200 |
commit | 360da84db0d7165c84d160b518f39cd16006c758 (patch) | |
tree | a6fea5da753ec4ac5a37237cefda52801f9647ac /src/kernel/bam.lua | |
parent | 27a6934ea3073c3eaf782cc7615ce4ed0dbf4a18 (diff) | |
download | kogata-360da84db0d7165c84d160b518f39cd16006c758.tar.gz kogata-360da84db0d7165c84d160b518f39cd16006c758.zip |
Migrate to BAM build tool
Diffstat (limited to 'src/kernel/bam.lua')
-rw-r--r-- | src/kernel/bam.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/kernel/bam.lua b/src/kernel/bam.lua new file mode 100644 index 0000000..1588315 --- /dev/null +++ b/src/kernel/bam.lua @@ -0,0 +1,20 @@ +local kernel_settings = TableDeepCopy(common_settings) + +kernel_settings.cc.includes:Add("src/kernel/include") + +kernel_settings.link.flags:Add("-T src/kernel/linker.ld", + "-Xlinker -Map=build/kernel.map") + +kernel_source = { + Collect('src/kernel/core/*.s'), + Collect('src/kernel/dev/*.s'), + Collect('src/kernel/core/*.c'), + Collect('src/kernel/dev/*.c'), + Collect('src/kernel/fs/*.c'), + Collect('src/kernel/user/*.c'), +} +kernel_obj = Compile(kernel_settings, kernel_source) + +kernel = Link(kernel_settings, "kernel", {kernel_obj, common_libkogata, + common_libc, common_libalgo}) + |