summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Bisson <gary.bisson@boundarydevices.com>2022-11-25 20:12:26 +0100
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-11-26 19:30:51 +0000
commitc807d7db6717320a02c7c752b5f1300ed3115e83 (patch)
tree68475a4959c8d6fe2bf3ebedaa23f15cfaa3e90f
parent04f1419518d41db95f3f33d1d82c1d00853715ff (diff)
downloadmeta-freescale-c807d7db6717320a02c7c752b5f1300ed3115e83.tar.gz
imx-boot-container: add copy of soc-specific firmware
- Currently only the DDR firmware files are copied - i.MX 8MQ SoC also requires either HDMI or DP firmware - Refactor the copy from deploydir to the U-Boot build folder to be generic to all firmware files Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> (cherry picked from commit bfd95d9c437b5d5b2b9069721ed224e7b8837074)
-rw-r--r--classes/imx-boot-container.bbclass16
1 files changed, 13 insertions, 3 deletions
diff --git a/classes/imx-boot-container.bbclass b/classes/imx-boot-container.bbclass
index a420b4c4..aa897045 100644
--- a/classes/imx-boot-container.bbclass
+++ b/classes/imx-boot-container.bbclass
@@ -28,6 +28,16 @@
28ATF_MACHINE_NAME = "bl31-${ATF_PLATFORM}.bin" 28ATF_MACHINE_NAME = "bl31-${ATF_PLATFORM}.bin"
29ATF_MACHINE_NAME:append = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', '-optee', '', d)}" 29ATF_MACHINE_NAME:append = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', '-optee', '', d)}"
30 30
31IMX_BOOT_CONTAINER_FIRMWARE_SOC = ""
32IMX_BOOT_CONTAINER_FIRMWARE_SOC:mx8mq-generic-bsp = " \
33 signed_dp_imx8m.bin \
34 signed_hdmi_imx8m.bin \
35"
36IMX_BOOT_CONTAINER_FIRMWARE ?= " \
37 ${IMX_BOOT_CONTAINER_FIRMWARE_SOC} \
38 ${DDR_FIRMWARE_NAME} \
39"
40
31# This package aggregates output deployed by other packages, so set the 41# This package aggregates output deployed by other packages, so set the
32# appropriate dependencies for populate binaries task 42# appropriate dependencies for populate binaries task
33do_resolve_and_populate_binaries[depends] += " \ 43do_resolve_and_populate_binaries[depends] += " \
@@ -45,9 +55,9 @@ do_resolve_and_populate_binaries() {
45 for type in ${UBOOT_CONFIG}; do 55 for type in ${UBOOT_CONFIG}; do
46 j=$(expr $j + 1); 56 j=$(expr $j + 1);
47 if [ $j -eq $i ]; then 57 if [ $j -eq $i ]; then
48 for ddr_firmware in ${DDR_FIRMWARE_NAME}; do 58 for firmware in ${IMX_BOOT_CONTAINER_FIRMWARE}; do
49 bbnote "Copy ddr_firmware: ${ddr_firmware} from ${DEPLOY_DIR_IMAGE} -> ${B}/${config}/${ddr_firmware_name}" 59 bbnote "Copy firmware: ${firmware} from ${DEPLOY_DIR_IMAGE} -> ${B}/${config}/"
50 cp ${DEPLOY_DIR_IMAGE}/${ddr_firmware} ${B}/${config}/ 60 cp ${DEPLOY_DIR_IMAGE}/${firmware} ${B}/${config}/
51 done 61 done
52 if [ -n "${ATF_MACHINE_NAME}" ]; then 62 if [ -n "${ATF_MACHINE_NAME}" ]; then
53 cp ${DEPLOY_DIR_IMAGE}/${ATF_MACHINE_NAME} ${B}/${config}/bl31.bin 63 cp ${DEPLOY_DIR_IMAGE}/${ATF_MACHINE_NAME} ${B}/${config}/bl31.bin