diff options
author | Stephen Warren <swarren@nvidia.com> | 2018-02-21 17:13:50 -0700 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2018-02-21 17:13:50 -0700 |
commit | c6f651f9a3322857c8e1f8250274a0984c024283 (patch) | |
tree | 73e159f0fba0f65de82dbbe990daec643575b5b2 /make_helpers | |
parent | 5ff5a6d9c33fdf8b626a4e61066f467f2b5c75a9 (diff) |
Make all build results depend on all makefiles
This makes incremental builds work when the only change is to a
definition in a makefile.
Fixes arm-software/tf-issues#551
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'make_helpers')
-rw-r--r-- | make_helpers/build_macros.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/make_helpers/build_macros.mk b/make_helpers/build_macros.mk index 0d2cf106..9119dcd2 100644 --- a/make_helpers/build_macros.mk +++ b/make_helpers/build_macros.mk @@ -199,7 +199,7 @@ $(eval OBJ := $(1)/$(patsubst %.c,%.o,$(notdir $(2)))) $(eval DEP := $(patsubst %.o,%.d,$(OBJ))) $(eval IMAGE := IMAGE_BL$(call uppercase,$(3))) -$(OBJ): $(2) | bl$(3)_dirs +$(OBJ): $(2) $(MAKEFILE_LIST) | bl$(3)_dirs @echo " CC $$<" $$(Q)$$(CC) $$(TF_CFLAGS) $$(CFLAGS) -D$(IMAGE) $(MAKE_DEP) -c $$< -o $$@ @@ -218,7 +218,7 @@ $(eval OBJ := $(1)/$(patsubst %.S,%.o,$(notdir $(2)))) $(eval DEP := $(patsubst %.o,%.d,$(OBJ))) $(eval IMAGE := IMAGE_BL$(call uppercase,$(3))) -$(OBJ): $(2) | bl$(3)_dirs +$(OBJ): $(2) $(MAKEFILE_LIST) | bl$(3)_dirs @echo " AS $$<" $$(Q)$$(AS) $$(ASFLAGS) -D$(IMAGE) $(MAKE_DEP) -c $$< -o $$@ @@ -235,7 +235,7 @@ define MAKE_LD $(eval DEP := $(1).d) -$(1): $(2) | bl$(3)_dirs +$(1): $(2) $(MAKEFILE_LIST) | bl$(3)_dirs @echo " PP $$<" $$(Q)$$(CPP) $$(CPPFLAGS) -P -D__ASSEMBLY__ -D__LINKER__ $(MAKE_DEP) -o $$@ $$< @@ -372,7 +372,7 @@ define MAKE_DTB $(eval DOBJ := $(1)/$(patsubst %.dts,%.dtb,$(notdir $(2)))) $(eval DEP := $(patsubst %.dtb,%.d,$(DOBJ))) -$(DOBJ): $(2) | fdt_dirs +$(DOBJ): $(2) $(MAKEFILE_LIST) | fdt_dirs @echo " DTC $$<" $$(Q)$$(DTC) $$(DTC_FLAGS) -d $(DEP) -o $$@ $$< |