baremetal: rebuild c files if common header changes

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-02-20 00:00:05 +00:00
parent d5e16fd8ae
commit 5cfea5138e

View File

@@ -65,7 +65,7 @@ Build the baremetal examples with crosstool-NG.
(self.env['common_c'], common_obj),
(syscalls_src, syscalls_obj),
]:
if self.need_rebuild([src], obj):
if self.need_rebuild([src, self.env['common_h']], obj):
self.sh.run_cmd(
[gcc, LF] +
cflags +
@@ -150,7 +150,7 @@ Build the baremetal examples with crosstool-NG.
in_name = os.path.splitext(in_basename)[0]
main_obj = os.path.join(self.env['baremetal_build_dir'], subpath, '{}{}'.format(in_name, self.env['obj_ext']))
src = os.path.join(self.env['baremetal_source_dir'], in_path)
if self.need_rebuild([src], main_obj):
if self.need_rebuild([src, self.env['common_h']], main_obj):
self.sh.run_cmd(
[gcc, LF] +
cflags +