diff options
author | Stephen Simpson <megazig@gmail.com> | 2011-10-10 22:31:20 -0500 |
---|---|---|
committer | Stephen Simpson <megazig@gmail.com> | 2011-10-10 22:31:20 -0500 |
commit | 18b416a0468ee30cebcb6d93cb07c77d99703371 (patch) | |
tree | a8ba415bd54a7824311ab3677b6bef1531805a20 /tools/kamek.py | |
parent | 5f3eca3f6074605272b7bdde4a685d2f0934d6a7 (diff) | |
parent | 1bf7f8a471746eef9badf5f37031da6f8d88e9a2 (diff) | |
download | kamek-18b416a0468ee30cebcb6d93cb07c77d99703371.tar.gz kamek-18b416a0468ee30cebcb6d93cb07c77d99703371.zip |
Merge branch 'megaTestBoss' into level-select
Diffstat (limited to 'tools/kamek.py')
-rw-r--r-- | tools/kamek.py | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/tools/kamek.py b/tools/kamek.py index f67f049..3f7fb5c 100644 --- a/tools/kamek.py +++ b/tools/kamek.py @@ -306,16 +306,19 @@ class KamekBuilder(object): objfile = os.path.join(self._configTempDir, '%d.o' % generate_unique_id()) sourcefile = os.path.join(m.moduleDir, normal_sourcefile) - # todo: better extension detection - if sourcefile.endswith('.s') or sourcefile.endswith('.S'): - command = as_command + if sourcefile.endswith('.o'): + new_command = ['cp', sourcefile, objfile] else: - command = cc_command - - new_command = command + ['-c', '-o', objfile, sourcefile] - - if 'cc_args' in m.data: - new_command += m.data['cc_args'] + # todo: better extension detection + if sourcefile.endswith('.s') or sourcefile.endswith('.S'): + command = as_command + else: + command = cc_command + + new_command = command + ['-c', '-o', objfile, sourcefile] + + if 'cc_args' in m.data: + new_command += m.data['cc_args'] if show_cmd: print_debug(new_command) @@ -428,6 +431,9 @@ class KamekBuilder(object): def _find_func_by_symbol(self, find_symbol): for sym in self._symbols: + #if show_cmd: + # out = "0x%08x - %s - %s" % (sym[0], sym[1], sym[2]) + # print_debug(out) if sym[2] == find_symbol: return sym[0] |