mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
Removed hard coded values of toolchain and gcc cpu flags
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user