mirror of
https://github.com/drasko/codezero.git
synced 2026-11-30 12:53:54 +01:00
Added missing SConstruct.userlibs
This commit is contained in:
@@ -37,8 +37,8 @@ get involved in core development.
|
|||||||
|
|
||||||
The current release is distributed under GNU General Public License Version 3.
|
The current release is distributed under GNU General Public License Version 3.
|
||||||
For contributions we ask for a copyright share agreement and you may freely
|
For contributions we ask for a copyright share agreement and you may freely
|
||||||
contribute to the project this way. This is our current model, but if you
|
contribute to the project this way. This is our current model, but if you feel
|
||||||
object to this, feel free to mention your ideas in our mailing list.
|
this is too restrictive, feel free to mention your ideas in our mailing list.
|
||||||
|
|
||||||
The third party source code under the directories loader/ tools/ libs/c
|
The third party source code under the directories loader/ tools/ libs/c
|
||||||
libs/elf have their own copyright and licenses, separate from this project. All
|
libs/elf have their own copyright and licenses, separate from this project. All
|
||||||
|
|||||||
@@ -0,0 +1,42 @@
|
|||||||
|
# -*- mode: python; coding: utf-8; -*-
|
||||||
|
#
|
||||||
|
# Codezero -- Virtualization microkernel for embedded systems.
|
||||||
|
#
|
||||||
|
# Copyright © 2009 B Labs Ltd
|
||||||
|
#
|
||||||
|
import os, shelve
|
||||||
|
import configure
|
||||||
|
from configure import *
|
||||||
|
from os.path import *
|
||||||
|
|
||||||
|
env = Environment(CC = 'arm-none-linux-gnueabi-gcc',
|
||||||
|
# We don't use -nostdinc because sometimes we need standard headers,
|
||||||
|
# such as stdarg.h e.g. for variable args, as in printk().
|
||||||
|
CCFLAGS = ['-g', '-mcpu=arm926ej-s', '-nostdlib', '-ffreestanding', \
|
||||||
|
'-std=gnu99', '-Wall', '-Werror'],
|
||||||
|
LINKFLAGS = ['-nostdlib'],
|
||||||
|
ASFLAGS = ['-D__ASSEMBLY__'],
|
||||||
|
ENV = {'PATH' : os.environ['PATH']}, # Inherit shell path
|
||||||
|
LIBS = 'gcc', # libgcc.a - This is required for division routines.
|
||||||
|
CPPPATH = "#include",
|
||||||
|
CPPFLAGS = '-include l4/config.h -include l4/macros.h -include l4/types.h')
|
||||||
|
|
||||||
|
config = configuration_retrieve()
|
||||||
|
arch = config.arch
|
||||||
|
subarch = config.subarch
|
||||||
|
platform = config.platform
|
||||||
|
all_syms = config.all
|
||||||
|
|
||||||
|
|
||||||
|
libl4 = SConscript('conts/libl4/SConscript', \
|
||||||
|
exports = { 'arch' : arch }, duplicate = 0, \
|
||||||
|
variant_dir = join(BUILDDIR, os.path.relpath('conts/libl4', PROJROOT)))
|
||||||
|
|
||||||
|
libc = SConscript('conts/libc/SConscript', \
|
||||||
|
exports = { 'env' : env, 'arch' : arch, 'platform' : platform }, \
|
||||||
|
duplicate = 0, variant_dir = \
|
||||||
|
join(BUILDDIR, os.path.relpath('conts/libc', PROJROOT)))
|
||||||
|
|
||||||
|
Alias('libl4', libl4)
|
||||||
|
Alias('libc', libc)
|
||||||
|
|
||||||
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
|
printf("Hello World!\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user