summaryrefslogtreecommitdiffstats
path: root/meta
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 11:16:44 +0100
commitea3948d7ad6c456d9004681a13cf096b4a6046d4 (patch)
treee212d4c6f738c7e2ba4ce389816cb2be552a2678 /meta
parent7e3c04ebf4e407153428c1fb9f29f44b3781a7a8 (diff)
downloadpoky-ea3948d7ad6c456d9004681a13cf096b4a6046d4.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>
Diffstat (limited to 'meta')
-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"