34 lines
998 B
PHP
34 lines
998 B
PHP
# CN913x specific TFA support
|
|
|
|
COMPATIBLE_MACHINE = "cn913x"
|
|
|
|
# On marvell SOC, trusted-firmware depends on u-boot, but usually u-boot depends
|
|
# on trusted-firmware. This make a dependancy loop when building for other arch
|
|
python() {
|
|
if d.getVar('SOC_FAMILY') != "cn913x":
|
|
raise bb.parse.SkipRecipe("Skip if machine is not a CN913x")
|
|
}
|
|
|
|
|
|
DEPENDS += "mv-ddr-marvell coreutils-native"
|
|
|
|
SRC_URI += " \
|
|
file://0001-ddr-spd-read-failover-to-defualt-config.patch \
|
|
file://0002-som-sdp-failover-using-crc-verification.patch \
|
|
file://mrvl_scp_bl2.img \
|
|
"
|
|
|
|
CP_NUM:cn9131-bldn-mbv = "2"
|
|
CP_NUM:cn9130-cf-pro = "1"
|
|
|
|
TFA_PLATFORM = "t9130"
|
|
TFA_BUILD_TARGET = "all mrvl_flash"
|
|
TFA_INSTALL_TARGET = "flash-image"
|
|
TFA_DEBUG = "1"
|
|
TFA_MBEDTLS = "0"
|
|
TFA_UBOOT = "1"
|
|
TFA_UEFI = "0"
|
|
|
|
|
|
EXTRA_OEMAKE += "USE_COHERENT_MEM=0 LOG_LEVEL=20 MV_DDR_PATH=${PKG_CONFIG_SYSROOT_DIR}/usr/src/mv-ddr-marvell CP_NUM=${CP_NUM} SCP_BL2=${WORKDIR}/mrvl_scp_bl2.img"
|