mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-13 08:04:27 +00:00
Remove unneeded include paths in PLAT_INCLUDES
Also, update platform_def.h guidelines about includes in the porting guide. Change-Id: I1ae338c9dd3242b309f6d53687ba2cb755d488c3 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
This commit is contained in:
parent
702b600ff3
commit
5e447816c7
16 changed files with 14 additions and 46 deletions
|
@ -103,20 +103,13 @@ File : platform\_def.h [mandatory]
|
|||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Each platform must ensure that a header file of this name is in the system
|
||||
include path with the following constants defined. This may require updating the
|
||||
list of ``PLAT_INCLUDES`` in the ``platform.mk`` file. In the Arm development
|
||||
platforms, this file is found in ``plat/arm/board/<plat_name>/include/``.
|
||||
include path with the following constants defined. This will require updating
|
||||
the list of ``PLAT_INCLUDES`` in the ``platform.mk`` file.
|
||||
|
||||
Platform ports may optionally use the file `include/plat/common/common\_def.h`_,
|
||||
which provides typical values for some of the constants below. These values are
|
||||
likely to be suitable for all platform ports.
|
||||
|
||||
Platform ports that want to be aligned with standard Arm platforms (for example
|
||||
FVP and Juno) may also use `include/plat/arm/common/arm\_def.h`_, which provides
|
||||
standard values for some of the constants below. However, this requires the
|
||||
platform port to define additional platform porting constants in
|
||||
``platform_def.h``. These additional constants are not documented here.
|
||||
|
||||
- **#define : PLATFORM\_LINKER\_FORMAT**
|
||||
|
||||
Defines the linker format used by the platform, for example
|
||||
|
|
|
@ -45,8 +45,7 @@ endif
|
|||
|
||||
USE_COHERENT_MEM := 1
|
||||
|
||||
PLAT_INCLUDES := -Iinclude/common/tbbr \
|
||||
-Iplat/hisilicon/hikey/include
|
||||
PLAT_INCLUDES := -Iplat/hisilicon/hikey/include
|
||||
|
||||
PLAT_BL_COMMON_SOURCES := drivers/arm/pl011/aarch64/pl011_console.S \
|
||||
lib/xlat_tables/aarch64/xlat_tables.c \
|
||||
|
|
|
@ -40,8 +40,7 @@ endif
|
|||
|
||||
USE_COHERENT_MEM := 1
|
||||
|
||||
PLAT_INCLUDES := -Iinclude/common/tbbr \
|
||||
-Iplat/hisilicon/hikey960/include
|
||||
PLAT_INCLUDES := -Iplat/hisilicon/hikey960/include
|
||||
|
||||
PLAT_BL_COMMON_SOURCES := drivers/arm/pl011/aarch64/pl011_console.S \
|
||||
drivers/delay_timer/delay_timer.c \
|
||||
|
|
|
@ -53,8 +53,7 @@ PLAT_PL061_MAX_GPIOS := 104
|
|||
$(eval $(call add_define,PLAT_PL061_MAX_GPIOS))
|
||||
|
||||
PLAT_INCLUDES := -Iplat/hisilicon/poplar/include \
|
||||
-Iplat/hisilicon/poplar \
|
||||
-Iinclude/common/tbbr
|
||||
-Iplat/hisilicon/poplar
|
||||
|
||||
PLAT_BL_COMMON_SOURCES := \
|
||||
lib/xlat_tables/aarch64/xlat_tables.c \
|
||||
|
|
|
@ -21,7 +21,6 @@ endif
|
|||
|
||||
# Platform
|
||||
PLAT_INCLUDES := -Idrivers/imx/uart \
|
||||
-Iinclude/common/tbbr \
|
||||
-Iplat/imx/common/include/ \
|
||||
-Iplat/imx/imx7/warp7/include \
|
||||
-Idrivers/imx/timer \
|
||||
|
|
|
@ -23,8 +23,6 @@ LS1043_SECURITY_SOURCES := plat/layerscape/common/ls_tzc380.c \
|
|||
|
||||
PLAT_INCLUDES := -Iplat/layerscape/board/ls1043/include \
|
||||
-Iplat/layerscape/common/include \
|
||||
-Iinclude/lib
|
||||
|
||||
|
||||
PLAT_BL_COMMON_SOURCES := plat/layerscape/common/aarch64/ls_console.S
|
||||
|
||||
|
|
|
@ -15,8 +15,6 @@ SEPARATE_CODE_AND_RODATA := 1
|
|||
|
||||
COLD_BOOT_SINGLE_CPU := 1
|
||||
|
||||
PLAT_INCLUDES += -Iinclude/common/tbbr
|
||||
|
||||
PLAT_BL_COMMON_SOURCES += plat/layerscape/common/${ARCH}/ls_helpers.S \
|
||||
plat/layerscape/common/ls_common.c
|
||||
|
||||
|
|
|
@ -84,14 +84,11 @@ MARVELL_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \
|
|||
plat/common/plat_gicv3.c \
|
||||
drivers/arm/gic/v3/gic500.c
|
||||
|
||||
ATF_INCLUDES := -Iinclude/common/tbbr
|
||||
|
||||
PLAT_INCLUDES := -I$(PLAT_FAMILY_BASE)/$(PLAT) \
|
||||
-I$(PLAT_COMMON_BASE)/include \
|
||||
-I$(PLAT_INCLUDE_BASE)/common \
|
||||
-I$(MARVELL_DRV_BASE) \
|
||||
-I$/drivers/arm/gic/common/ \
|
||||
$(ATF_INCLUDES)
|
||||
-I$/drivers/arm/gic/common/
|
||||
|
||||
PLAT_BL_COMMON_SOURCES := $(PLAT_COMMON_BASE)/aarch64/a3700_common.c \
|
||||
$(MARVELL_COMMON_BASE)/marvell_cci.c \
|
||||
|
|
|
@ -45,12 +45,9 @@ MARVELL_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \
|
|||
drivers/arm/gic/v2/gicv2_helpers.c \
|
||||
plat/common/plat_gicv2.c
|
||||
|
||||
ATF_INCLUDES := -Iinclude/common/tbbr
|
||||
|
||||
PLAT_INCLUDES := -I$(PLAT_FAMILY_BASE)/$(PLAT) \
|
||||
-I$(PLAT_COMMON_BASE)/include \
|
||||
-I$(PLAT_INCLUDE_BASE)/common \
|
||||
$(ATF_INCLUDES)
|
||||
-I$(PLAT_INCLUDE_BASE)/common
|
||||
|
||||
PLAT_BL_COMMON_SOURCES := $(PLAT_COMMON_BASE)/aarch64/a8k_common.c \
|
||||
drivers/ti/uart/aarch64/16550_console.S
|
||||
|
|
|
@ -17,11 +17,10 @@ BLE_SOURCES += $(BLE_PATH)/ble_main.c \
|
|||
$(PLAT_MARVELL)/common/plat_delay_timer.c \
|
||||
$(PLAT_MARVELL)/common/marvell_console.c
|
||||
|
||||
PLAT_INCLUDES += -I$(MV_DDR_PATH) \
|
||||
-I$(CURDIR)/include/ \
|
||||
-I$(CURDIR)/include/lib \
|
||||
-I$(CURDIR)/include/lib/libc \
|
||||
-I$(CURDIR)/include/lib/libc/aarch64 \
|
||||
PLAT_INCLUDES += -I$(MV_DDR_PATH) \
|
||||
-I$(CURDIR)/include \
|
||||
-I$(CURDIR)/include/lib/libc \
|
||||
-I$(CURDIR)/include/lib/libc/aarch64 \
|
||||
-I$(CURDIR)/drivers/marvell
|
||||
|
||||
BLE_LINKERFILE := $(BLE_PATH)/ble.ld.S
|
||||
|
|
|
@ -22,8 +22,7 @@ $(eval $(call add_define,ARO_ENABLE))
|
|||
LLC_ENABLE := 1
|
||||
$(eval $(call add_define,LLC_ENABLE))
|
||||
|
||||
PLAT_INCLUDES += -I. -Iinclude/common -Iinclude/common/tbbr \
|
||||
-I$(MARVELL_PLAT_INCLUDE_BASE)/common \
|
||||
PLAT_INCLUDES += -I$(MARVELL_PLAT_INCLUDE_BASE)/common \
|
||||
-I$(MARVELL_PLAT_INCLUDE_BASE)/common/aarch64
|
||||
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@ PLAT_INCLUDES := -I${MTK_PLAT}/common/ \
|
|||
-I${MTK_PLAT_SOC}/drivers/timer/ \
|
||||
-I${MTK_PLAT_SOC}/include/ \
|
||||
-Iinclude/plat/arm/common/ \
|
||||
-Iinclude/common/tbbr/ \
|
||||
${OEMS_INCLUDES}
|
||||
|
||||
PLAT_BL_COMMON_SOURCES := lib/xlat_tables/aarch64/xlat_tables.c \
|
||||
|
|
|
@ -30,9 +30,7 @@ $(eval $(call add_define,QEMU_LOAD_BL32))
|
|||
endif
|
||||
|
||||
PLAT_PATH := plat/qemu/
|
||||
PLAT_INCLUDES := -Iinclude/plat/arm/common/ \
|
||||
-Iplat/qemu/include \
|
||||
-Iinclude/common/tbbr
|
||||
PLAT_INCLUDES := -Iplat/qemu/include
|
||||
|
||||
ifeq (${ARM_ARCH_MAJOR},8)
|
||||
PLAT_INCLUDES += -Iinclude/plat/arm/common/${ARCH}
|
||||
|
@ -55,8 +53,6 @@ ifneq (${TRUSTED_BOARD_BOOT},0)
|
|||
drivers/auth/img_parser_mod.c \
|
||||
drivers/auth/tbbr/tbbr_cot.c
|
||||
|
||||
PLAT_INCLUDES += -Iinclude/bl1/tbbr
|
||||
|
||||
BL1_SOURCES += ${AUTH_SOURCES} \
|
||||
bl1/tbbr/tbbr_img_desc.c \
|
||||
plat/common/tbbr/plat_tbbr.c \
|
||||
|
|
|
@ -306,8 +306,7 @@ include drivers/staging/renesas/rcar/qos/qos.mk
|
|||
include drivers/staging/renesas/rcar/pfc/pfc.mk
|
||||
include lib/libfdt/libfdt.mk
|
||||
|
||||
PLAT_INCLUDES := -Iinclude/common/tbbr \
|
||||
-Idrivers/staging/renesas/rcar/ddr \
|
||||
PLAT_INCLUDES := -Idrivers/staging/renesas/rcar/ddr \
|
||||
-Idrivers/staging/renesas/rcar/qos \
|
||||
-Idrivers/renesas/rcar/iic_dvfs \
|
||||
-Idrivers/renesas/rcar/board \
|
||||
|
|
|
@ -10,7 +10,6 @@ RK_PLAT_COMMON := ${RK_PLAT}/common
|
|||
|
||||
PLAT_INCLUDES := -Idrivers/arm/gic/common/ \
|
||||
-Idrivers/arm/gic/v2/ \
|
||||
-Iinclude/plat/common/ \
|
||||
-I${RK_PLAT_COMMON}/ \
|
||||
-I${RK_PLAT_COMMON}/include/ \
|
||||
-I${RK_PLAT_COMMON}/pmusram \
|
||||
|
|
|
@ -72,8 +72,6 @@ ifeq (${TRUSTED_BOARD_BOOT},1)
|
|||
include drivers/auth/mbedtls/mbedtls_crypto.mk
|
||||
include drivers/auth/mbedtls/mbedtls_x509.mk
|
||||
|
||||
PLAT_INCLUDES += -Iinclude/common/tbbr
|
||||
|
||||
BL2_SOURCES += drivers/auth/auth_mod.c \
|
||||
drivers/auth/crypto_mod.c \
|
||||
drivers/auth/img_parser_mod.c \
|
||||
|
|
Loading…
Add table
Reference in a new issue