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-03 17:51:38 +0100
commitface3ce5f93929dc1326571fe6f71044b6a2b83c (patch)
tree8c016ffb76ad34fa5a14ded07dd222e08aee992a
parent5aa2d263634078da845653e9858a7f9d0b74d8ee (diff)
downloadpoky-face3ce5f93929dc1326571fe6f71044b6a2b83c.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"