mirror of
https://github.com/drasko/codezero.git
synced 2026-02-28 17:53:13 +01:00
Removed hard coded values of toolchain and gcc cpu flags
This commit is contained in:
@@ -6,9 +6,11 @@
|
||||
|
||||
import os, sys, shelve
|
||||
from os.path import join
|
||||
from configure import *
|
||||
|
||||
arch = 'arm'
|
||||
platform = 'pb926'
|
||||
config = configuration_retrieve()
|
||||
arch = config.arch
|
||||
platform = config.platform
|
||||
|
||||
# Get global paths
|
||||
PROJRELROOT="../../../"
|
||||
@@ -19,7 +21,7 @@ LIBC_LIBPATH = LIBC_PATH
|
||||
LIBC_INCPATH = [join(LIBC_PATH, 'include'), \
|
||||
join(LIBC_PATH, 'include/arch/' + arch)]
|
||||
|
||||
env = Environment(CC = 'arm-none-linux-gnueabi-gcc',
|
||||
env = Environment(CC = config.user_toolchain + 'gcc',
|
||||
CCFLAGS = ['-g', '-nostdinc', '-nostdlib', '-ffreestanding'],
|
||||
LINKFLAGS = ['-nostdlib'],
|
||||
ENV = {'PATH' : os.environ['PATH']},
|
||||
|
||||
Reference in New Issue
Block a user