[oe] [meta-qt5][PATCH] Fix missing OE_QMAKE_STRIP env variable

Lorenzo Chianura zuloch at gmail.com
Thu Nov 30 18:19:49 UTC 2017


Using Qt based SDK for stripping ARM binaries results in errors.
Generated Makefile contains:

  STRIP         = \$(OE_QMAKE_STRIP)

but due to the missing export of OE_QMAKE_STRIP variable STRIP will be unset and
no strip will be perfomed:

  install -m 755 -p lib/libSigUdev.so.1.0.0 /opt/poky/2.2.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libSigUdev.so.1.0.0
  strip-unneeded /opt/poky/2.2.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libSigUdev.so.1.0.0
  make: strip-unneeded: Command not found
  Makefile:576: recipe for target 'install_target' failed
  make: [install_target] Error 127 (ignored)

adding OE_QMAKE_STRIP=$STRIP to generated qt5.sh solve the issue.
---
 recipes-qt/qt5/nativesdk-qtbase_git.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb b/recipes-qt/qt5/nativesdk-qtbase_git.bb
index 87bd501..ef8b729 100644
--- a/recipes-qt/qt5/nativesdk-qtbase_git.bb
+++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb
@@ -179,6 +179,7 @@ fakeroot do_generate_qt_environment_file() {
     echo 'export OE_QMAKE_CXX=$CXX' >> $script
     echo 'export OE_QMAKE_LINK=$CXX' >> $script
     echo 'export OE_QMAKE_AR=$AR' >> $script
+    echo 'export OE_QMAKE_STRIP=$STRIP' >> $script
     echo 'export QT_CONF_PATH=${OE_QMAKE_PATH_HOST_BINS}/qt.conf' >> $script
     echo 'export OE_QMAKE_LIBDIR_QT=`qmake -query QT_INSTALL_LIBS`' >> $script
     echo 'export OE_QMAKE_INCDIR_QT=`qmake -query QT_INSTALL_HEADERS`' >> $script
-- 
2.15.0




More information about the Openembedded-devel mailing list