mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00
plat: pass -D option to BL*_CPPFLAGS instead of BL*_CFLAGS
-D is a preprocessor flag that defines a macro. So, adding it to BL*_CPPFLAGS makes more sense. You can reference it not only from .c files but also from .S files. Change-Id: Ib4f2f27a3ed3eae476a6a32da7ab5225ad0649de Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
848a7e8ce1
commit
11a3c5ee73
3 changed files with 12 additions and 12 deletions
|
@ -295,30 +295,30 @@ endif
|
||||||
# Enable the dynamic translation tables library.
|
# Enable the dynamic translation tables library.
|
||||||
ifeq (${ARCH},aarch32)
|
ifeq (${ARCH},aarch32)
|
||||||
ifeq (${RESET_TO_SP_MIN},1)
|
ifeq (${RESET_TO_SP_MIN},1)
|
||||||
BL32_CFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
|
BL32_CPPFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
|
||||||
endif
|
endif
|
||||||
else # AArch64
|
else # AArch64
|
||||||
ifeq (${RESET_TO_BL31},1)
|
ifeq (${RESET_TO_BL31},1)
|
||||||
BL31_CFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
|
BL31_CPPFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
|
||||||
endif
|
endif
|
||||||
ifeq (${SPD},trusty)
|
ifeq (${SPD},trusty)
|
||||||
BL31_CFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
|
BL31_CPPFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (${ALLOW_RO_XLAT_TABLES}, 1)
|
ifeq (${ALLOW_RO_XLAT_TABLES}, 1)
|
||||||
ifeq (${ARCH},aarch32)
|
ifeq (${ARCH},aarch32)
|
||||||
BL32_CFLAGS += -DPLAT_RO_XLAT_TABLES=1
|
BL32_CPPFLAGS += -DPLAT_RO_XLAT_TABLES=1
|
||||||
else # AArch64
|
else # AArch64
|
||||||
BL31_CFLAGS += -DPLAT_RO_XLAT_TABLES=1
|
BL31_CPPFLAGS += -DPLAT_RO_XLAT_TABLES=1
|
||||||
ifeq (${SPD},tspd)
|
ifeq (${SPD},tspd)
|
||||||
BL32_CFLAGS += -DPLAT_RO_XLAT_TABLES=1
|
BL32_CPPFLAGS += -DPLAT_RO_XLAT_TABLES=1
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (${USE_DEBUGFS},1)
|
ifeq (${USE_DEBUGFS},1)
|
||||||
BL31_CFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
|
BL31_CPPFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Add support for platform supplied linker script for BL31 build
|
# Add support for platform supplied linker script for BL31 build
|
||||||
|
|
|
@ -147,19 +147,19 @@ ENABLE_SVE_FOR_NS := 0
|
||||||
# Enable the dynamic translation tables library.
|
# Enable the dynamic translation tables library.
|
||||||
ifeq (${ARCH},aarch32)
|
ifeq (${ARCH},aarch32)
|
||||||
ifeq (${RESET_TO_SP_MIN},1)
|
ifeq (${RESET_TO_SP_MIN},1)
|
||||||
BL32_CFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
|
BL32_CPPFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
ifeq (${RESET_TO_BL31},1)
|
ifeq (${RESET_TO_BL31},1)
|
||||||
BL31_CFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
|
BL31_CPPFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (${ALLOW_RO_XLAT_TABLES}, 1)
|
ifeq (${ALLOW_RO_XLAT_TABLES}, 1)
|
||||||
ifeq (${JUNO_AARCH32_EL3_RUNTIME}, 1)
|
ifeq (${JUNO_AARCH32_EL3_RUNTIME}, 1)
|
||||||
BL32_CFLAGS += -DPLAT_RO_XLAT_TABLES=1
|
BL32_CPPFLAGS += -DPLAT_RO_XLAT_TABLES=1
|
||||||
else
|
else
|
||||||
BL31_CFLAGS += -DPLAT_RO_XLAT_TABLES=1
|
BL31_CPPFLAGS += -DPLAT_RO_XLAT_TABLES=1
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ BL2_SOURCES += ${RDN1EDGE_BASE}/rdn1edge_trusted_boot.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Enable dynamic addition of MMAP regions in BL31
|
# Enable dynamic addition of MMAP regions in BL31
|
||||||
BL31_CFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
|
BL31_CPPFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
|
||||||
|
|
||||||
# Add the FDT_SOURCES and options for Dynamic Config
|
# Add the FDT_SOURCES and options for Dynamic Config
|
||||||
FDT_SOURCES += ${RDN1EDGE_BASE}/fdts/${PLAT}_fw_config.dts
|
FDT_SOURCES += ${RDN1EDGE_BASE}/fdts/${PLAT}_fw_config.dts
|
||||||
|
|
Loading…
Add table
Reference in a new issue