diff options
author | Jeenu Viswambharan <jeenu.viswambharan@arm.com> | 2018-11-01 10:55:55 +0000 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2019-01-10 13:50:02 +0000 |
commit | 3661f16c9990514c30cea4693e9f6b498a629a0a (patch) | |
tree | 2e8f134559c52e62751445a78bd52dd3cd1ca1be /make_helpers | |
parent | 63b9b5425f15a18b4afb957b1f1c861d14a611fa (diff) |
build: Support BL-specific build flags
With this patch, each BL image can have its own compiler flags.
Change-Id: Ic9075a20bc6f6dc8a277587b9bee5e062306c090
Signed-off-by: Jeenu Viswambharan <jeenu.viswambharan@arm.com>
Diffstat (limited to 'make_helpers')
-rw-r--r-- | make_helpers/build_macros.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/make_helpers/build_macros.mk b/make_helpers/build_macros.mk index d60a5bf0..961cabfe 100644 --- a/make_helpers/build_macros.mk +++ b/make_helpers/build_macros.mk @@ -216,10 +216,11 @@ define MAKE_C $(eval OBJ := $(1)/$(patsubst %.c,%.o,$(notdir $(2)))) $(eval DEP := $(patsubst %.o,%.d,$(OBJ))) $(eval IMAGE := IMAGE_BL$(call uppercase,$(3))) +$(eval BL_CFLAGS := $(BL$(call uppercase,$(3))_CFLAGS)) $(OBJ): $(2) $(filter-out %.d,$(MAKEFILE_LIST)) | bl$(3)_dirs $$(ECHO) " CC $$<" - $$(Q)$$(CC) $$(TF_CFLAGS) $$(CFLAGS) -D$(IMAGE) $(MAKE_DEP) -c $$< -o $$@ + $$(Q)$$(CC) $$(TF_CFLAGS) $$(CFLAGS) $(BL_CFLAGS) -D$(IMAGE) $(MAKE_DEP) -c $$< -o $$@ -include $(DEP) |