Mods for improvements

This commit is contained in:
Bahadir Balban
2009-09-12 18:54:35 +03:00
parent 59f30a175a
commit c4c3fb1e6c
7 changed files with 149 additions and 79 deletions

View File

@@ -6,11 +6,10 @@
import os, sys, shelve
PROJROOT="../../../"
cwd = os.getcwd()
os.chdir(PROJROOT)
execfile("configure.py")
os.chdir(cwd)
arch = 'arm'
subarch = 'v5'
platform = 'pb926'
variant = "baremetal"
env = Environment(CC = 'arm-none-eabi-gcc',
# We don't use -nostdinc because sometimes we need standard headers,
@@ -24,15 +23,6 @@ env = Environment(CC = 'arm-none-eabi-gcc',
LIBS = 'gcc', # libgcc.a - This is required for division routines.
CPPPATH = "#include")
config_shelve = shelve.open(CONFIG_SHELVE)
#symbols = config_shelve["config_symbols"]
arch = config_shelve["arch"]
subarch = config_shelve["subarch"]
platform = config_shelve["platform"]
all_syms = config_shelve["all_symbols"]
variant = "baremetal"
e = env.Clone()
e.Append(CPPPATH = ['include/sys-' + variant + '/arch-' + arch])
e.Append(CCFLAGS = '-nostdinc')

View File

@@ -1,5 +1,5 @@
# -*- mode: python; coding: utf-8; -*-
#
# Codezero -- a microkernel for embedded systems.
#
# Copyright © 2009 B Labs Ltd

View File

@@ -5,22 +5,13 @@
# Copyright © 2009 B Labs Ltd
import os, sys, shelve
from os.path import join
arch = 'arm'
platform = 'pb926'
# Get global paths
PROJRELROOT="../../../"
cwd = os.getcwd()
os.chdir(PROJRELROOT)
execfile("configure.py")
os.chdir(cwd)
# Get configuration information
config_shelve = shelve.open(CONFIG_SHELVE)
#symbols = config_shelve["config_symbols"]
arch = config_shelve["arch"]
subarch = config_shelve["subarch"]
platform = config_shelve["platform"]
all_syms = config_shelve["all_symbols"]
# Locally important paths are here
LIBC_PATH = '../c'