From 5cfea5138e487f203c86c280fc18f7a4f9e34f34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Wed, 20 Feb 2019 00:00:05 +0000 Subject: [PATCH] baremetal: rebuild c files if common header changes --- build-baremetal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +