From e0c055639fc53a7e32cf4abe65352c5308d74edc Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 29 Sep 2025 18:11:22 +0100 Subject: linux-firmware: skip ldflags sanity check Some of the firmware blobs, for example qcom/apq8016/modem.mbn, are actually ELF files. We don't want to hold these to our exacting standard for link flags because we're not building them and they don't run on the target directly. Note that as this check parses the output of ${OBJDUMP} -p it behaves differently with binutils vs llvm. It looks like binutils bails early as it doesn't know what the target architecture is, whereas LLVM is more comprehensive in its support. (From OE-Core rev: 80f32d66159bda0b01be6d47835168fcfacdac86) Signed-off-by: Ross Burton Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- meta/recipes-kernel/linux-firmware/linux-firmware_20250917.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_20250917.bb b/meta/recipes-kernel/linux-firmware/linux-firmware_20250917.bb index e69e51024f..f8d8decfe5 100644 --- a/meta/recipes-kernel/linux-firmware/linux-firmware_20250917.bb +++ b/meta/recipes-kernel/linux-firmware/linux-firmware_20250917.bb @@ -2353,7 +2353,10 @@ python populate_packages:prepend () { # Firmware files are generally not ran on the CPU, so they can be # allarch despite being architecture specific -INSANE_SKIP = "arch" +INSANE_SKIP += "arch" + +# They can also be ELF files, but obviously won't have the linkage we expect +INSANE_SKIP += "ldflags" # Don't warn about already stripped files INSANE_SKIP:${PN} = "already-stripped" -- cgit v1.2.3-54-g00ecf