diff --git a/appends/meta-qt5/qtbase_%.bbappend b/appends/meta-qt5/qtbase_%.bbappend index 98db539..d90b807 100644 --- a/appends/meta-qt5/qtbase_%.bbappend +++ b/appends/meta-qt5/qtbase_%.bbappend @@ -4,3 +4,27 @@ PACKAGECONFIG_DISTRO += " \ gtk \ harfbuzz \ " + +inherit instant-paths + +do_copytocrosssysroot_append() { + # ---------- qt.conf ---------- + # create + generate_qt_config_file_paths + generate_qt_config_file_effective_paths + + # copy to cross sysroot + cross_sysroot_qtconf="${INSTANT_CROSS_PATH}${OE_QMAKE_PATH_QT_BINS}/`basename ${OE_QMAKE_QTCONF_PATH}`" + cp -f ${OE_QMAKE_QTCONF_PATH} "$cross_sysroot_qtconf" + echo "$cross_sysroot_qtconf" >> ${INSTANT_MANIFEST} + + # adjust to instant sysroot + qtconf_cross_sysroot= + sed -i \ + -e 's:${STAGING_DIR_NATIVE}:${INSTANT_NATIVE_PATH}:g' \ + -e 's:${STAGING_DIR_HOST}:${INSTANT_CROSS_PATH}:g' \ + "$cross_sysroot_qtconf" + + # ---------- mkspecs ---------- + +}