nativesdk-qttools.inc: Fix installation and packaging
authorOtavio Salvador <otavio@ossystems.com.br>
Mon, 17 Feb 2014 19:58:14 +0000 (16:58 -0300)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:45:28 +0000 (08:45 -0800)
We must to fix the installation paths as did in nativesdk-qtbase.inc
and remove the files unused from the packages. This fixes the
packaging errors and allows for a successful build for SDK.

(From meta-qt5 rev: 32cee0b6d18a9e8ae2977accf2c8d32f303827d7)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-qt5/recipes-qt/qt5/nativesdk-qttools.inc

index e9b2949..494c7b8 100644 (file)
@@ -21,5 +21,11 @@ do_configure() {
 }
 
 do_install() {
+    # Fix install paths for all
+    find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_HOST},(INSTALL_ROOT),g"
+
     oe_runmake install INSTALL_ROOT=${D}
+
+    # remove things unused in nativesdk
+    rm -rf ${D}${libdir}
 }