26 env.kernel_objects = [env.Object(i) for i in files]
27 env.SConscript([os.path.join(i, 'SConscript') for i in subdirs], exports = ['env'])
29 # define the rule to build the kernel
30 kernel = env.Program('kernel.elf',
33 LINKFLAGS = env['LINKFLAGS'] + ' -Wl,-T,' + os.path.join(Dir('.').srcnode().path, 'linker.ld'),
36 # we also depend on the linker script, to link
37 env.Depends(kernel, 'linker.ld')
40 env.KernelModule('testmodule', ['testmodule.c'])