Switch to waf build system, first attempt

This commit is contained in:
Justin C. Miller
2018-05-04 19:05:19 -07:00
parent 33012f35ef
commit 0c553b3406
12 changed files with 501 additions and 325 deletions

22
src/kernel/wscript Normal file
View File

@@ -0,0 +1,22 @@
def configure(ctx):
pass
def build(bld):
from os.path import join
sources = bld.path.ant_glob("**/*.cpp")
sources += bld.path.ant_glob("**/*.s")
lds = join(bld.env.ARCH_D, 'kernel.ld')
bld.program(
source = sources,
name = 'kernel',
includes = '.',
target = bld.env.KERNEL_FILENAME,
use = 'kutil',
linkflags = "-T {}".format(lds),
)
# vim: ft=python et