4 # list all subdirectories containing SConscript
5 # files which must be sourced
8 # point to the include/ directory
9 env['CPPPATH'] = ['#include']
11 env.kernel_objects = []
13 # include SConscript files for all subdirectories
14 SConscript([os.path.join(i, 'SConscript') for i in subdirs],
17 # define the rule to build the kernel
18 kernel = env.Program('kernel.elf',
21 LINKFLAGS = env['LINKFLAGS'] + ' -Wl,-T,' + os.path.join(Dir('.').srcnode().path, 'linker.ld'),
24 # we also depend on the linker script, to link
25 env.Depends(kernel, 'linker.ld')