cpuid's Makefile passes -s to install to strip the binaries, but as this
uses the _host_ strip it can fail if that strip doesn't know about the
target (for example, building cpuid for x86 on aarch64):

  install -D -s -m 755 cpuid .../image/usr/bin/cpuid
  strip: Unable to recognise the format of the input file 
`.../image/usr/bin/cpuid'

Set INSTALL_STRIP='' so that the binaries are not stripped, and remove
the INSANE_SKIP for already-stripped.

Signed-off-by: Ross Burton <ross.bur...@arm.com>
---
 meta-oe/recipes-devtools/cpuid/cpuid_20230614.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/meta-oe/recipes-devtools/cpuid/cpuid_20230614.bb 
b/meta-oe/recipes-devtools/cpuid/cpuid_20230614.bb
index ed339e0160..8fdbe21737 100644
--- a/meta-oe/recipes-devtools/cpuid/cpuid_20230614.bb
+++ b/meta-oe/recipes-devtools/cpuid/cpuid_20230614.bb
@@ -17,9 +17,7 @@ COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
 inherit perlnative
 
 do_install () {
-    oe_runmake DESTDIR=${D} bindir=${bindir} mandir=${mandir} install
+    oe_runmake DESTDIR=${D} bindir=${bindir} mandir=${mandir} INSTALL_STRIP="" 
install
 }
 
 RDEPENDS:${PN} = "perl"
-
-INSANE_SKIP:${PN} += "already-stripped"
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#115653): 
https://lists.openembedded.org/g/openembedded-devel/message/115653
Mute This Topic: https://lists.openembedded.org/mt/111398026/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to