mirror of
https://github.com/drasko/codezero.git
synced 2026-02-28 01:33:13 +01:00
Mods for improvements
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# -*- mode: python; coding: utf-8; -*-
|
||||
|
||||
#
|
||||
# Codezero -- a microkernel for embedded systems.
|
||||
#
|
||||
# Copyright © 2009 B Labs Ltd
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user