Removed hard coded values of toolchain and gcc cpu flags

This commit is contained in:
Amit Mahajan
2009-10-27 15:35:37 +05:30
parent 2b29170633
commit 91c617d0b2
26 changed files with 162 additions and 89 deletions

View File

@@ -24,10 +24,13 @@ PROJRELROOT = '../..'
sys.path.append(PROJRELROOT)
from config.projpaths import *
from configure import *
Import('arch')
env = Environment(CC = 'arm-none-linux-gnueabi-gcc',
config = configuration_retrieve()
env = Environment(CC = config.user_toolchain + 'gcc',
CCFLAGS = ['-g', '-nostdlib', '-ffreestanding'],
LINKFLAGS = ['-nostdlib'],
ASFLAGS = ['-D__ASSEMBLY__'],