mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 04:24:26 +01:00
bak
This commit is contained in:
@@ -46,7 +46,7 @@ class BaremetalComponent(common.Component):
|
||||
os.makedirs(common.baremetal_build_lib_dir, exist_ok=True)
|
||||
src = os.path.join(common.baremetal_src_lib_dir, '{}{}'.format(args.arch, common.asm_ext))
|
||||
if common.need_rebuild([src], bootloader_obj):
|
||||
common.run_cmd(
|
||||
self.sh.run_cmd(
|
||||
[gcc, common.Newline] +
|
||||
cflags +
|
||||
[
|
||||
@@ -60,7 +60,7 @@ class BaremetalComponent(common.Component):
|
||||
(syscalls_src, syscalls_obj),
|
||||
]:
|
||||
if common.need_rebuild([src], obj):
|
||||
common.run_cmd(
|
||||
self.sh.run_cmd(
|
||||
[gcc, common.Newline] +
|
||||
cflags +
|
||||
[
|
||||
@@ -150,7 +150,7 @@ Build the baremetal examples with crosstool-NG.
|
||||
main_obj = os.path.join(common.baremetal_build_dir, subpath, '{}{}'.format(in_name, common.obj_ext))
|
||||
src = os.path.join(common.baremetal_src_dir, in_path)
|
||||
if common.need_rebuild([src], main_obj):
|
||||
common.run_cmd(
|
||||
self.sh.run_cmd(
|
||||
[gcc, common.Newline] +
|
||||
cflags +
|
||||
[
|
||||
@@ -163,7 +163,7 @@ Build the baremetal examples with crosstool-NG.
|
||||
out = os.path.join(common.baremetal_build_dir, subpath, in_name + common.baremetal_build_ext)
|
||||
link_script = os.path.join(common.baremetal_src_dir, 'link.ld')
|
||||
if common.need_rebuild(objs + [link_script], out):
|
||||
common.run_cmd(
|
||||
self.sh.run_cmd(
|
||||
[gcc, common.Newline] +
|
||||
cflags +
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user