Set the IMAGE_BLx flag for the linker preprocessor
authorDaniel Boulby <daniel.boulby@arm.com>
Wed, 19 Sep 2018 13:22:33 +0000 (14:22 +0100)
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Wed, 3 Oct 2018 10:47:30 +0000 (11:47 +0100)
Change-Id: Ibc91f119c99413ded59a9db3db918d22f0517bc1
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
make_helpers/build_macros.mk

index 92a0f6e86efbd49d7b47f2b5503535717730426e..520725bbb94ecd44cbea2f9bddf7ddbeb3bc9497 100644 (file)
@@ -252,10 +252,11 @@ endef
 define MAKE_LD
 
 $(eval DEP := $(1).d)
+$(eval IMAGE := IMAGE_BL$(call uppercase,$(3)))
 
 $(1): $(2) $(filter-out %.d,$(MAKEFILE_LIST)) | bl$(3)_dirs
        @echo "  PP      $$<"
-       $$(Q)$$(CPP) $$(CPPFLAGS) -P -D__ASSEMBLY__ -D__LINKER__ $(MAKE_DEP) -o $$@ $$<
+       $$(Q)$$(CPP) $$(CPPFLAGS) -P -D__ASSEMBLY__ -D__LINKER__ $(MAKE_DEP) -D$(IMAGE) -o $$@ $$<
 
 -include $(DEP)