mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-30 05:24:25 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user