mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
baremetal: rebuild c files if common header changes
This commit is contained in:
@@ -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 +
|
||||
|
||||
Reference in New Issue
Block a user