Added generation of ksyms.S to loader SConscript as a call to generate_break_virtual

File creation and cleanup works correctly.
	modified:   loader/SConscript
	modified:   scripts/loader/generate_break_virtual.py
This commit is contained in:
Bahadir Balban
2009-09-16 19:01:57 +03:00
parent 97b15e6e37
commit 0f1dc5a982
2 changed files with 22 additions and 2 deletions

View File

@@ -10,8 +10,7 @@ from os.path import join
PROJRELROOT = '../../'
SCRIPTROOT = os.path.abspath(os.path.dirname("."))
sys.path.append(os.path.abspath(PROJRELROOT))
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), PROJRELROOT)))
from config.projpaths import *
from config.configuration import *
@@ -44,6 +43,9 @@ assembler_symbol_definition = \
'''
def generate_ksym_to_loader(target_path, source_path):
print "Source: ", source_path
print "Target: ", target_path
symbols = ['break_virtual']
with open(target_path, 'w') as asm_file:
asm_file.write(ksym_header % (target_path, source_path, sys.argv[0]))