summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorGary Bisson <gary.bisson@boundarydevices.com>2022-11-25 20:12:26 +0100
committerGary Bisson <gary.bisson@boundarydevices.com>2022-11-26 18:45:34 +0100
commitbfd95d9c437b5d5b2b9069721ed224e7b8837074 (patch)
tree7638f6e37ab42781bde6c15bca8cd302c1f7ec1c /classes
parentf1da32b14f595446242422cea762aa9a81261917 (diff)
downloadmeta-freescale-bfd95d9c437b5d5b2b9069721ed224e7b8837074.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>
Diffstat (limited to 'classes')
-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