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

@@ -7,6 +7,7 @@
#
import os, sys, shelve, subprocess
from os.path import join
from configure import *
PROJRELROOT = '../../'
@@ -16,6 +17,8 @@ from config.projpaths import *
from config.configuration import *
from config.lib import *
config = configuration_retrieve()
# Convert address from python literal to numeric value
def address_remove_literal(address):
value = hex(int(address, 16) - 0xf0000000)
@@ -49,8 +52,9 @@ def generate_ksym_to_loader(target_path, source_path):
with open(target_path, 'w') as asm_file:
asm_file.write(ksym_header % (target_path, source_path, sys.argv[0]))
for symbol in symbols:
process = subprocess.Popen('arm-none-eabi-objdump -d ' + \
source_path + ' | grep "<' + \
process = \
subprocess.Popen(config.kernel_toolchain + 'objdump -d ' + \
source_path + ' | grep "<' + \
symbol + '>"', shell=True, \
stdout=subprocess.PIPE)
assert process.wait() == 0