Fixed uninitialised n_chunks in untested vpcreate
[marionette.git] / kernel / SConscript
blobb36e9aa40dcfe523f8b68313f3787ef7deb5adff
1 files = [
2 'start.S',
3 'kmain.c',
4 'console.c',
5 'serial.c',
6 'gdt.c',
7 'isr.S',
8 'interrupt.c',
9 'trace.c',
10 'read-multiboot.c',
11 'panic.c',
12 'timer.c',
13 'thread.c',
14 'thread-asm.S',
15 'loadelf.c',
16 'syscall.c',
17 'exit.c',
20 subdirs = [
21 'mm',
24 Import(['env'])
25 import os.path
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',
31     env.kernel_objects,
32     LIBS = ['c', 'gcc'],
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')
39 # build a test module
40 env.KernelModule('testmodule', ['testmodule.c'])