diff options
author | Denys Dmytriyenko <denys@ti.com> | 2014-02-20 12:12:11 -0500 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2014-02-20 14:22:57 -0300 |
commit | 5599656cda1728b7262a9ae7154759dcd40a874e (patch) | |
tree | 644f7c604853c75e6f6879cb66e13de58f92af20 | |
parent | 4375b28f7c70b033ee416df153498e9f76396025 (diff) | |
download | meta-qt5-5599656cda1728b7262a9ae7154759dcd40a874e.tar.gz |
nativesdk-qtbase: do qmake replacement in ${D} instead of ${B}
* This way we don't mangle ${B} and can repeat do_install if necessary. And
previously it would require running do_compile again to restore the proper
state of ${B}.
* Need to bump PR, since do_compile isn't changing, but needs to re-run to
re-populate qmake-real binary.
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r-- | recipes-qt/qt5/nativesdk-qtbase.inc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/recipes-qt/qt5/nativesdk-qtbase.inc b/recipes-qt/qt5/nativesdk-qtbase.inc index fa440094..3cb9b0ee 100644 --- a/recipes-qt/qt5/nativesdk-qtbase.inc +++ b/recipes-qt/qt5/nativesdk-qtbase.inc | |||
@@ -10,6 +10,8 @@ require nativesdk-qt5.inc | |||
10 | # it's already included with newer oe-core, but include it here for dylan | 10 | # it's already included with newer oe-core, but include it here for dylan |
11 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:" | 11 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:" |
12 | 12 | ||
13 | PR = "r1" | ||
14 | |||
13 | # common with -native and target version | 15 | # common with -native and target version |
14 | SRC_URI += "\ | 16 | SRC_URI += "\ |
15 | file://0001-Add-linux-oe-g-platform.patch \ | 17 | file://0001-Add-linux-oe-g-platform.patch \ |
@@ -192,14 +194,12 @@ do_install() { | |||
192 | # Fix install paths for all | 194 | # Fix install paths for all |
193 | find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g" | 195 | find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g" |
194 | 196 | ||
195 | # switch back the proper qmake | ||
196 | if [ -e ${B}/bin/qmake-real ]; then | ||
197 | rm ${B}/bin/qmake | ||
198 | mv ${B}/bin/qmake-real ${B}/bin/qmake | ||
199 | fi | ||
200 | |||
201 | oe_runmake install INSTALL_ROOT=${D} | 197 | oe_runmake install INSTALL_ROOT=${D} |
202 | 198 | ||
199 | # replace the native qmake installed above with nativesdk version | ||
200 | rm -rf ${D}${OE_QMAKE_PATH_HOST_BINS}/qmake | ||
201 | install -m 755 ${B}/bin/qmake-real ${D}${OE_QMAKE_PATH_HOST_BINS}/qmake | ||
202 | |||
203 | # for modules which are still using syncqt and call qtPrepareTool(QMAKE_SYNCQT, syncqt) | 203 | # for modules which are still using syncqt and call qtPrepareTool(QMAKE_SYNCQT, syncqt) |
204 | # e.g. qt3d, qtwayland | 204 | # e.g. qt3d, qtwayland |
205 | ln -sf syncqt.pl ${D}${OE_QMAKE_PATH_QT_BINS}/syncqt | 205 | ln -sf syncqt.pl ${D}${OE_QMAKE_PATH_QT_BINS}/syncqt |