From 2cd13d8f2c98ac45e47ea85db7ae1ede04b87f97 Mon Sep 17 00:00:00 2001 From: Frieder Schrempf <frieder.schrempf@kontron.de> Date: Thu, 12 Jan 2023 11:35:58 +0100 Subject: [PATCH] meta-ktn-imx: u-boot-ktn-common.inc: Readd missing do_compile() override In commit ce868964752a ("meta-ktn-imx: u-boot-ktn-common.inc: Remove unneeded do_compile() override") we removed the do_compile() override, but this is still needed, at least in Dunfell. Revert this. --- .../recipes-bsp/u-boot/u-boot-ktn-common.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/layers/meta-ktn-imx/recipes-bsp/u-boot/u-boot-ktn-common.inc b/layers/meta-ktn-imx/recipes-bsp/u-boot/u-boot-ktn-common.inc index 07e2a7f9..5db17fd5 100644 --- a/layers/meta-ktn-imx/recipes-bsp/u-boot/u-boot-ktn-common.inc +++ b/layers/meta-ktn-imx/recipes-bsp/u-boot/u-boot-ktn-common.inc @@ -14,6 +14,15 @@ UBOOT_IMAGE_DEPS = "" UBOOT_IMAGE_DEPS_mx8m = "virtual/trusted-firmware-a:do_deploy firmware-imx-8m:do_deploy" do_configure[depends] = "${UBOOT_IMAGE_DEPS}" +do_compile:prepend:mx8m() { + for config in ${UBOOT_MACHINE}; do + install -D -m 0644 ${DEPLOY_DIR_IMAGE}/${TFA_BINARY} ${B}/${config}/bl31.bin + done + for ddr_firmware in ${DDR_FIRMWARE_NAME}; do + install -D -m 0644 ${DEPLOY_DIR_IMAGE}/${ddr_firmware} ${B}/${config}/${ddr_firmware} + done +} + # For i.MX8M, we need to pass the correct load address for the ATF to the # mkimage_fit_atf.sh script, by setting the ATF_LOAD_ADDR environment variable. EXTRA_OEMAKE:append:mx8m = " 'ATF_LOAD_ADDR=0x00920000'" -- GitLab