diff --git a/build-baremetal b/build-baremetal index b2aa9ec..969c731 100755 --- a/build-baremetal +++ b/build-baremetal @@ -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 +