summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-09-29 18:11:22 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-10-04 15:16:03 +0100
commitb70dd48512e53f08c83b2476e070c3b8adf83d51 (patch)
treee212d4c6f738c7e2ba4ce389816cb2be552a2678
parente05a97b7fefc92bc6acbd453e31901692d4ce691 (diff)
downloadpoky-b70dd48512e53f08c83b2476e070c3b8adf83d51.tar.gz
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 <ross.burton@arm.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-kernel/linux-firmware/linux-firmware_20250917.bb5
1 files changed, 4 insertions, 1 deletions
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 () {
2353 2353
2354# Firmware files are generally not ran on the CPU, so they can be 2354# Firmware files are generally not ran on the CPU, so they can be
2355# allarch despite being architecture specific 2355# allarch despite being architecture specific
2356INSANE_SKIP = "arch" 2356INSANE_SKIP += "arch"
2357
2358# They can also be ELF files, but obviously won't have the linkage we expect
2359INSANE_SKIP += "ldflags"
2357 2360
2358# Don't warn about already stripped files 2361# Don't warn about already stripped files
2359INSANE_SKIP:${PN} = "already-stripped" 2362INSANE_SKIP:${PN} = "already-stripped"