This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-12-08 00:00:00 +00:00
parent 724c82323e
commit 33af564899
17 changed files with 65 additions and 75 deletions

View File

@@ -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 +
[