aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/bam.lua
blob: 4a82f493f75851eba6250fb29df03d2ca6c5a176 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
local kernel_settings = TableDeepCopy(common_settings)

kernel_settings.cc.includes:Add("src/common/include/kogata",
								"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_libc, common_libkogata})