arm/trusted-firmware-a: fix variable name typo
PATCH 1/3 arm/trusted-firmware-a: fix variable name typo
Variable name "processes" is wrongly mentioned as "processed", this patch fixes the same.
Change-Id: Id9362f514861c75f8f6a727582e11b0e65736349
Issue-Id: PLATFORMS-3971
--- meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc +1 -1
@@ -171,7 +171,7 @@ do_install() { echo "dtbs install, skipped" elif [ -f ${B}/tools/$atfbin/$atfbin ]; then echo "Tools $atfbin install, skipped" - elif [ "$processed" = "0" ]; then + elif [ "$processes" = "0" ]; then bberror "Unsupported TFA_INSTALL_TARGET target $atfbin" exit 1 fi
Signature · 1 line
2.17.1
PATCH 2/3 arm/trusted-firmware-a: add support to install dtb built as part of TFA
Device tree blobs (DTBs) generated as part of TFA were installed separately in the platform specific TFA recipes, its redundant as each platform was executing similar installation steps.
The patch avoids skipping dtb installation and adds support to check for DTB entries in TFA_INSTALL_TARGET and install the same to respective deploy folder.
Change-Id: I0f8f5c39dc4b4931d202696990fa915ea7ed60eb
Issue-Id: PLATFORMS-3971
--- .../trusted-firmware-a/trusted-firmware-a.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc +7 -3
@@ -166,10 +166,14 @@ do_install() { ln -sf $atfbin-${TFA_PLATFORM} ${D}/firmware/$atfbin processes="1" fi + if [ -f ${BUILD_DIR}/fdts/$atfbin.dtb ]; then + echo "Install $atfbin.dtb" + install -m 0644 "${BUILD_DIR}/fdts/$atfbin.dtb" \ + "${D}/firmware/$atfbin.dtb" + processes="1" + fi - if [ "$atfbin" = "dtbs" ]; then - echo "dtbs install, skipped" - elif [ -f ${B}/tools/$atfbin/$atfbin ]; then + if [ -f ${B}/tools/$atfbin/$atfbin ]; then echo "Tools $atfbin install, skipped" elif [ "$processes" = "0" ]; then bberror "Unsupported TFA_INSTALL_TARGET target $atfbin"
Signature · 1 line
2.17.1
PATCH 3/3 arm-bsp/trusted-firmware-a: Install dtbs from the generic TFA recipe
In reply to Khasim MohammedConfigure TFA_INSTALL_TARGET to multi-chip and single-chip dtbs, avoid installing dtbs in platform specific recipe instead use the generic step.
Change-Id: I79835f2c4f4d0bde938e43d6cf59f73392520935
Issue-Id: PLATFORMS-3971
--- .../trusted-firmware-a/trusted-firmware-a-n1sdp.inc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-n1sdp.inc +1 -5
@@ -3,6 +3,7 @@ COMPATIBLE_MACHINE = "n1sdp" TFA_PLATFORM = "n1sdp" TFA_BUILD_TARGET = "bl31 dtbs" +TFA_INSTALL_TARGET = "bl31 n1sdp-multi-chip n1sdp-single-chip" TFA_DEBUG = "1" TFA_MBEDTLS = "0" TFA_UBOOT = "0"
@@ -14,8 +15,3 @@ SRC_URI_append = " \ SRCREV_tfa = "f0b1864f8e309a41d2eb1c9510f8cd3c7aacbb1d" PV = "2.3+git${SRCPV}" - -do_install_append() { - install -m 0644 "${BUILD_DIR}/fdts/n1sdp-single-chip.dtb" "${D}/firmware/n1sdp-single-chip.dtb" - install -m 0644 "${BUILD_DIR}/fdts/n1sdp-multi-chip.dtb" "${D}/firmware/n1sdp-multi-chip.dtb" -}
Signature · 1 line
2.17.1