From 14313a5b11633075d67756a870ce3da3c5caf840 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 11 May 2021 17:02:03 +0100 Subject: [PATCH] arm/scp-firmware: install .elf into scp-firmware-dbg Alongside the .bin files, also install the .elf files for debugging and package them into scp-firmware-dbg. The architecture QA test needs to be skipped as the SCP can be 32-bit Arm when the main processor is 64-bit. Change-Id: I82a57d6cc80f7d7e20028cced83481322803fc13 Signed-off-by: Ross Burton Signed-off-by: Jon Mason --- meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.8.0.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.8.0.bb b/meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.8.0.bb index bee3ab5e..c58e6215 100644 --- a/meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.8.0.bb +++ b/meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.8.0.bb @@ -59,14 +59,19 @@ do_install() { for FW in ${FW_TARGETS}; do for TYPE in ${FW_INSTALL}; do install -D "${B}/product/${SCP_PLATFORM}/${FW}_${TYPE}/${SCP_BUILD_STR}/bin/${FW}_${TYPE}.bin" "${D}/firmware/" + install -D "${B}/product/${SCP_PLATFORM}/${FW}_${TYPE}/${SCP_BUILD_STR}/bin/${FW}_${TYPE}.elf" "${D}/firmware/" done done } FILES_${PN} = "/firmware" SYSROOT_DIRS += "/firmware" + +FILES_${PN}-dbg += "/firmware/*.elf" # Skip QA check for relocations in .text of elf binaries -INSANE_SKIP_${PN} = "textrel" +INSANE_SKIP_${PN}-dbg = "arch textrel" +INHIBIT_PACKAGE_DEBUG_SPLIT = "1" +INHIBIT_PACKAGE_STRIP = "1" do_deploy() { # Copy the images to deploy directory