baremetal: ah, actually nope, it didn't work :-(

Workaround for now. Works on asserts, but not on exit 1.

Some other day, maybe.

https://github.com/cirosantilli/linux-kernel-module-cheat/issues/59
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-07 00:00:00 +00:00
parent 26cab92bfc
commit 3d83206461
11 changed files with 127 additions and 87 deletions

View File

@@ -136,9 +136,14 @@ Build the baremetal examples with crosstool-NG.
in_ext in (self.env['c_ext'], self.env['asm_ext'])
):
out = os.path.join(out_dir, in_name + self.env['baremetal_build_ext'])
print(out)
src = os.path.join(self.env['baremetal_source_dir'], in_path)
if self.need_rebuild(
common_objs_bootloader + [self.env['baremetal_link_script'] + self.env['common_h']],
common_objs_bootloader +
[
src,
self.env['baremetal_link_script'],
self.env['common_h']
],
out
):
self.sh.run_cmd(
@@ -150,7 +155,7 @@ Build the baremetal examples with crosstool-NG.
'-T', self.env['baremetal_link_script'], LF,
] +
[
os.path.join(self.env['baremetal_source_dir'], in_path), LF,
src, LF,
] +
self.sh.add_newlines(common_objs_bootloader) +
cflags_after