mirror of
https://github.com/drasko/codezero.git
synced 2026-07-30 11:00:08 +02:00
Adding libmem to baremetal0 container
This commit is contained in:
@@ -38,6 +38,11 @@ LIBDEV_LIBPATH = join(join(BUILDDIR, LIBDEV_RELDIR), 'sys-userspace')
|
|||||||
LIBDEV_INCLUDE = [join(LIBDEV_DIR, 'uart/include')]
|
LIBDEV_INCLUDE = [join(LIBDEV_DIR, 'uart/include')]
|
||||||
LIBDEV_CCFLAGS = '-DPLATFORM_' + platform.upper()
|
LIBDEV_CCFLAGS = '-DPLATFORM_' + platform.upper()
|
||||||
|
|
||||||
|
LIBMEM_RELDIR = 'conts/libmem'
|
||||||
|
LIBMEM_DIR = join(PROJROOT, LIBMEM_RELDIR)
|
||||||
|
LIBMEM_LIBPATH = join(BUILDDIR, LIBMEM_RELDIR)
|
||||||
|
LIBMEM_INCLUDE = LIBMEM_DIR
|
||||||
|
|
||||||
env = Environment(CC = config.user_toolchain + 'gcc',
|
env = Environment(CC = config.user_toolchain + 'gcc',
|
||||||
# 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().
|
||||||
@@ -47,9 +52,11 @@ env = Environment(CC = config.user_toolchain + 'gcc',
|
|||||||
ASFLAGS = ['-D__ASSEMBLY__'], \
|
ASFLAGS = ['-D__ASSEMBLY__'], \
|
||||||
PROGSUFFIX = '.elf', # The suffix to use for final executable\
|
PROGSUFFIX = '.elf', # The suffix to use for final executable\
|
||||||
ENV = {'PATH' : os.environ['PATH']}, # Inherit shell path\
|
ENV = {'PATH' : os.environ['PATH']}, # Inherit shell path\
|
||||||
LIBS = ['gcc', 'libl4', 'c-userspace', 'libdev-userspace', 'gcc', 'c-userspace'], # libgcc.a - This is required for division routines.
|
LIBS = ['gcc', 'libl4', 'c-userspace', 'libdev-userspace', 'gcc', \
|
||||||
CPPPATH = ["#include", KERNEL_INCLUDE, LIBL4_INCLUDE, LIBDEV_INCLUDE, LIBC_INCLUDE],
|
'libmm', 'libmc', 'libmalloc','c-userspace'], # libgcc.a - This is required for division routines.
|
||||||
LIBPATH = [LIBL4_LIBPATH, LIBDEV_LIBPATH, LIBC_LIBPATH],
|
CPPPATH = ["#include", KERNEL_INCLUDE, LIBL4_INCLUDE, LIBDEV_INCLUDE, \
|
||||||
|
LIBC_INCLUDE, LIBMEM_INCLUDE],
|
||||||
|
LIBPATH = [LIBL4_LIBPATH, LIBDEV_LIBPATH, LIBC_LIBPATH, LIBMEM_LIBPATH],
|
||||||
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')
|
||||||
|
|
||||||
src = Glob('*.[cS]')
|
src = Glob('*.[cS]')
|
||||||
|
|||||||
Reference in New Issue
Block a user