Line 20... |
Line 20... |
AR = config.toolchain_userspace + 'ar',
|
AR = config.toolchain_userspace + 'ar',
|
RANLIB = config.toolchain_userspace + 'ranlib',
|
RANLIB = config.toolchain_userspace + 'ranlib',
|
# We don't use -nostdinc because sometimes we need standard headers,
|
# We don't use -nostdinc because sometimes we need standard headers,
|
# such as stdarg.h e.g. for variable args, as in printk().
|
# such as stdarg.h e.g. for variable args, as in printk().
|
CCFLAGS = ['-g', '-nostdlib', '-ffreestanding', '-std=gnu99', '-Wall',
|
CCFLAGS = ['-g', '-nostdlib', '-ffreestanding', '-std=gnu99', '-Wall',
|
'-Werror', '-march=' + gcc_arch_flag],
|
'-Werror'],
|
LINKFLAGS = ['-nostdlib'],
|
LINKFLAGS = ['-nostdlib'],
|
ASFLAGS = ['-D__ASSEMBLY__', '-march=' + gcc_arch_flag],
|
ASFLAGS = ['-D__ASSEMBLY__'],
|
ENV = {'PATH' : os.environ['PATH']}, # Inherit shell path
|
ENV = {'PATH' : os.environ['PATH']}, # Inherit shell path
|
LIBS = 'gcc', # libgcc.a - This is required for division routines.
|
LIBS = 'gcc', # libgcc.a - This is required for division routines.
|
CPPPATH = "#include",
|
CPPPATH = "#include",
|
CPPFLAGS = '-include l4/config.h -include l4/macros.h -include l4/types.h')
|
CPPFLAGS = '-include l4/config.h -include l4/macros.h -include l4/types.h')
|
|
|