mirror of
https://github.com/drasko/codezero.git
synced 2026-03-01 02:03:29 +01:00
Independent compilation of libl4 and libmem working fine.
This commit is contained in:
@@ -54,8 +54,6 @@ def create_symlinks(arch):
|
||||
print cmd
|
||||
os.system(cmd)
|
||||
|
||||
# TODO: There are errors in this code that -Werror gives problems with.
|
||||
|
||||
#create_symlinks(arch)
|
||||
objects = env.StaticObject(Glob('src/*.c') + Glob('src/' + arch + '/*.[cS]'))
|
||||
library = env.StaticLibrary('l4', objects)
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -22,6 +22,8 @@ extern unsigned long lib_utcb_range_size;
|
||||
/* Static variable definitions */
|
||||
struct l4_mutex lib_mutex;
|
||||
|
||||
extern void global_add_task(struct l4lib_tcb *task);
|
||||
|
||||
/* Function definitions */
|
||||
int l4_thread_create(struct task_ids *ids, unsigned int flags,
|
||||
int (*func)(void *), void *arg)
|
||||
|
||||
Reference in New Issue
Block a user