From 835bfa17abd6641581d6d5a800bb92c75a8d25de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Fri, 7 Dec 2018 15:52:37 +0100 Subject: [PATCH] qtcreator-sdk-prepare: Initial add MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- conf/layer.conf | 1 + qt5-sdk-recipes/qtcreator-sdk-prepare.bb | 34 ++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 qt5-sdk-recipes/qtcreator-sdk-prepare.bb diff --git a/conf/layer.conf b/conf/layer.conf index d0f09d3..82bb3dc 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -25,6 +25,7 @@ BBFILES_DYNAMIC += " \ openembedded-layer:${LAYERDIR}/appends/meta-oe/*.bbappend \ \ qt5-layer:${LAYERDIR}/appends/meta-qt5/*.bbappend \ + qt5-layer:${LAYERDIR}/qt5-sdk-recipes/*.bb \ \ xfce-layer:${LAYERDIR}/appends/meta-xfce/*.bbappend \ \ diff --git a/qt5-sdk-recipes/qtcreator-sdk-prepare.bb b/qt5-sdk-recipes/qtcreator-sdk-prepare.bb new file mode 100644 index 0000000..6141c51 --- /dev/null +++ b/qt5-sdk-recipes/qtcreator-sdk-prepare.bb @@ -0,0 +1,34 @@ +SUMMARY = "Prepare environment for cross building/debugging with QtCreator" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +inherit qmake5_base instant-paths + +DEPENDS = "qtbase" + +deltask do_prepare_recipe_sysroot + +do_install[depends] = "qtbase:do_copy_to_cross_sysroot" +do_install[nostamp] = "1" + +do_install() { + # inject qt.conf into native sysroot + qtconf=`basename ${OE_QMAKE_QTCONF_PATH}` + sourcepath=${INSTANT_CROSS_PATH}${OE_QMAKE_PATH_HOST_BINS} + targetpath=${INSTANT_NATIVE_PATH}${OE_QMAKE_PATH_HOST_BINS} + # be sure we remove old link (if any...) + rm -f $targetpath/$qtconf + cp $sourcepath/$qtconf $targetpath/ +} + +ALLOW_EMPTY_${PN} = "1" + +RDEPENDS_${PN} = " \ + qtbase \ + gdbserver \ + openssh-sshd \ + openssh-ssh \ + openssh-scp \ +"