Independent compilation of libl4 and libmem working fine.

This commit is contained in:
Amit Mahajan
2009-11-26 14:21:17 +05:30
parent 88da7c2f36
commit 41a64fcd23
4 changed files with 21 additions and 16 deletions

View File

@@ -16,13 +16,17 @@ from config.configuration import *
config = configuration_retrieve()
arch = config.arch
LIBMEM_RELDIR = 'conts/libmem'
LIBMEM_DIR = join(PROJROOT, LIBMEM_RELDIR)
env = Environment(CC = config.user_toolchain + 'gcc',
CCFLAGS = ['-std=gnu99', '-g', '-nostdlib', '-ffreestanding'],
CCFLAGS = ['-std=gnu99', '-g', '-nostdlib', '-ffreestanding', '-Werror'],
LINKFLAGS = ['-nostdlib'],
ASFLAGS = ['-D__ASSEMBLY__'],
ENV = {'PATH' : os.environ['PATH']},
LIBS = 'gcc',
CPPPATH = ['#include', '#include/l4lib/arch', join(PROJROOT,'include')])
CPPPATH = ['#include', '#include/l4lib/arch', join(PROJROOT,'include'), \
LIBMEM_DIR])
# TODO: There are errors in this code that -Werror gives problems with.