rpi3: Add "rpi" platform directory
With the incoming support for the Raspberry Pi 4 boards, one directory to serve both versions will not end up well. Create an additional layer by inserting a "rpi" directory betweeen /plat and rpi3, so that we can more easily share or separate files between the two later. Change-Id: I75adbb054fe7902f34db0fd5e579a55612dd8a5f Signed-off-by: Andre Przywara <andre.przywara@arm.com>
This commit is contained in:
parent
42cdeb9308
commit
ab13addd84
|
@ -7,10 +7,10 @@
|
||||||
include lib/libfdt/libfdt.mk
|
include lib/libfdt/libfdt.mk
|
||||||
include lib/xlat_tables_v2/xlat_tables.mk
|
include lib/xlat_tables_v2/xlat_tables.mk
|
||||||
|
|
||||||
PLAT_INCLUDES := -Iplat/rpi3/include
|
PLAT_INCLUDES := -Iplat/rpi/rpi3/include
|
||||||
|
|
||||||
PLAT_BL_COMMON_SOURCES := drivers/ti/uart/aarch64/16550_console.S \
|
PLAT_BL_COMMON_SOURCES := drivers/ti/uart/aarch64/16550_console.S \
|
||||||
plat/rpi3/rpi3_common.c \
|
plat/rpi/rpi3/rpi3_common.c \
|
||||||
${XLAT_TABLES_LIB_SRCS}
|
${XLAT_TABLES_LIB_SRCS}
|
||||||
|
|
||||||
BL1_SOURCES += drivers/io/io_fip.c \
|
BL1_SOURCES += drivers/io/io_fip.c \
|
||||||
|
@ -18,10 +18,10 @@ BL1_SOURCES += drivers/io/io_fip.c \
|
||||||
drivers/io/io_storage.c \
|
drivers/io/io_storage.c \
|
||||||
lib/cpus/aarch64/cortex_a53.S \
|
lib/cpus/aarch64/cortex_a53.S \
|
||||||
plat/common/aarch64/platform_mp_stack.S \
|
plat/common/aarch64/platform_mp_stack.S \
|
||||||
plat/rpi3/aarch64/plat_helpers.S \
|
plat/rpi/rpi3/aarch64/plat_helpers.S \
|
||||||
plat/rpi3/rpi3_bl1_setup.c \
|
plat/rpi/rpi3/rpi3_bl1_setup.c \
|
||||||
plat/rpi3/rpi3_io_storage.c \
|
plat/rpi/rpi3/rpi3_io_storage.c \
|
||||||
plat/rpi3/rpi3_mbox.c
|
plat/rpi/rpi3/rpi3_mbox.c
|
||||||
|
|
||||||
BL2_SOURCES += common/desc_image_load.c \
|
BL2_SOURCES += common/desc_image_load.c \
|
||||||
drivers/io/io_fip.c \
|
drivers/io/io_fip.c \
|
||||||
|
@ -35,18 +35,18 @@ BL2_SOURCES += common/desc_image_load.c \
|
||||||
drivers/mmc/mmc.c \
|
drivers/mmc/mmc.c \
|
||||||
drivers/rpi3/sdhost/rpi3_sdhost.c \
|
drivers/rpi3/sdhost/rpi3_sdhost.c \
|
||||||
plat/common/aarch64/platform_mp_stack.S \
|
plat/common/aarch64/platform_mp_stack.S \
|
||||||
plat/rpi3/aarch64/plat_helpers.S \
|
plat/rpi/rpi3/aarch64/plat_helpers.S \
|
||||||
plat/rpi3/aarch64/rpi3_bl2_mem_params_desc.c \
|
plat/rpi/rpi3/aarch64/rpi3_bl2_mem_params_desc.c \
|
||||||
plat/rpi3/rpi3_bl2_setup.c \
|
plat/rpi/rpi3/rpi3_bl2_setup.c \
|
||||||
plat/rpi3/rpi3_image_load.c \
|
plat/rpi/rpi3/rpi3_image_load.c \
|
||||||
plat/rpi3/rpi3_io_storage.c
|
plat/rpi/rpi3/rpi3_io_storage.c
|
||||||
|
|
||||||
BL31_SOURCES += lib/cpus/aarch64/cortex_a53.S \
|
BL31_SOURCES += lib/cpus/aarch64/cortex_a53.S \
|
||||||
plat/common/plat_psci_common.c \
|
plat/common/plat_psci_common.c \
|
||||||
plat/rpi3/aarch64/plat_helpers.S \
|
plat/rpi/rpi3/aarch64/plat_helpers.S \
|
||||||
plat/rpi3/rpi3_bl31_setup.c \
|
plat/rpi/rpi3/rpi3_bl31_setup.c \
|
||||||
plat/rpi3/rpi3_pm.c \
|
plat/rpi/rpi3/rpi3_pm.c \
|
||||||
plat/rpi3/rpi3_topology.c \
|
plat/rpi/rpi3/rpi3_topology.c \
|
||||||
${LIBFDT_SRCS}
|
${LIBFDT_SRCS}
|
||||||
|
|
||||||
# Tune compiler for Cortex-A53
|
# Tune compiler for Cortex-A53
|
||||||
|
@ -158,8 +158,8 @@ ifeq (${ARCH},aarch32)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(ENABLE_STACK_PROTECTOR), 0)
|
ifneq ($(ENABLE_STACK_PROTECTOR), 0)
|
||||||
PLAT_BL_COMMON_SOURCES += plat/rpi3/rpi3_rng.c \
|
PLAT_BL_COMMON_SOURCES += plat/rpi/rpi3/rpi3_rng.c \
|
||||||
plat/rpi3/rpi3_stack_protector.c
|
plat/rpi/rpi3/rpi3_stack_protector.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (${SPD},opteed)
|
ifeq (${SPD},opteed)
|
||||||
|
@ -189,13 +189,13 @@ ifneq (${TRUSTED_BOARD_BOOT},0)
|
||||||
BL1_SOURCES += ${AUTH_SOURCES} \
|
BL1_SOURCES += ${AUTH_SOURCES} \
|
||||||
bl1/tbbr/tbbr_img_desc.c \
|
bl1/tbbr/tbbr_img_desc.c \
|
||||||
plat/common/tbbr/plat_tbbr.c \
|
plat/common/tbbr/plat_tbbr.c \
|
||||||
plat/rpi3/rpi3_trusted_boot.c \
|
plat/rpi/rpi3/rpi3_trusted_boot.c \
|
||||||
plat/rpi3/rpi3_rotpk.S
|
plat/rpi/rpi3/rpi3_rotpk.S
|
||||||
|
|
||||||
BL2_SOURCES += ${AUTH_SOURCES} \
|
BL2_SOURCES += ${AUTH_SOURCES} \
|
||||||
plat/common/tbbr/plat_tbbr.c \
|
plat/common/tbbr/plat_tbbr.c \
|
||||||
plat/rpi3/rpi3_trusted_boot.c \
|
plat/rpi/rpi3/rpi3_trusted_boot.c \
|
||||||
plat/rpi3/rpi3_rotpk.S
|
plat/rpi/rpi3/rpi3_rotpk.S
|
||||||
|
|
||||||
ROT_KEY = $(BUILD_PLAT)/rot_key.pem
|
ROT_KEY = $(BUILD_PLAT)/rot_key.pem
|
||||||
ROTPK_HASH = $(BUILD_PLAT)/rotpk_sha256.bin
|
ROTPK_HASH = $(BUILD_PLAT)/rotpk_sha256.bin
|
Loading…
Reference in New Issue