atf: convert to use meta-arm trusted-firmware-a recipe

Instead of using and maintaining a unique recipe for trusted-firmware-a
(formerly known as ARM trusted firmware, or ATF), use the recipe located
in meta-arm.  It is well maintained and in use in multiple other layers.

Tested with pine64-plus

Signed-off-by: Jon Mason <jdmason@kudzu.us>
This commit is contained in:
Jon Mason
2023-05-18 13:46:46 -04:00
parent b55c255f22
commit 7ab8fb6211
6 changed files with 9 additions and 96 deletions

View File

@ -1,7 +1,7 @@
FILESEXTRAPATHS:prepend:sunxi := "${THISDIR}/files:"
DEPENDS:append:sunxi = " bc-native dtc-native swig-native python3-native flex-native bison-native "
DEPENDS:append:sun50i = " atf-sunxi "
DEPENDS:append:sun50i = " trusted-firmware-a"
COMPATIBLE_MACHINE:sunxi = "(sun4i|sun5i|sun7i|sun8i|sun50i)"
@ -23,7 +23,7 @@ UBOOT_ENV:sunxi = "boot"
EXTRA_OEMAKE:append:sunxi = ' HOSTLDSHARED="${BUILD_CC} -shared ${BUILD_LDFLAGS} ${BUILD_CFLAGS}" '
EXTRA_OEMAKE:append:sun50i = " BL31=${DEPLOY_DIR_IMAGE}/bl31.bin SCP=/dev/null"
do_compile_sun50i[depends] += "atf-sunxi:do_deploy"
do_compile:sun50i[depends] += "trusted-firmware-a:do_deploy"
do_compile:append:sunxi() {
${B}/tools/mkimage -C none -A arm -T script -d ${WORKDIR}/boot.cmd ${WORKDIR}/${UBOOT_ENV_BINARY}