From deb2473ee91c014c655098f20b9f8b33ff9a8bc1 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Thu, 20 Feb 2014 14:34:01 -0300 Subject: populate_sdk_qt5.bbclass: Add support for qtcreator-debug This adds a new image feature for easier remote debugging with QtCreator. The qtcreator-debug needs to be added as a valid item for image features and having it inside the populate_sdk_qt5 is too late. User will see a parser error as OE-Core images does not inherit the classs. The possible workaround for it is to include it inside layer.conf file until a kind of "bbclassappend" support is in place. Signed-off-by: Otavio Salvador Tested-by: Giulian Vivan --- classes/populate_sdk_qt5.bbclass | 2 ++ conf/layer.conf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/classes/populate_sdk_qt5.bbclass b/classes/populate_sdk_qt5.bbclass index 635dd6d3..c9219830 100644 --- a/classes/populate_sdk_qt5.bbclass +++ b/classes/populate_sdk_qt5.bbclass @@ -52,3 +52,5 @@ toolchain_create_sdk_env_script_append () { echo 'HostPrefix = ${SDKPATHNATIVE}' >> $qtconf echo 'HostBinaries = ${SDKPATHNATIVE}${OE_QMAKE_PATH_HOST_BINS}' >> $qtconf } + +PACKAGE_GROUP_qtcreator-debug = "packagegroup-qt5-qtcreator-debug" diff --git a/conf/layer.conf b/conf/layer.conf index 3b47b7f7..75d13a46 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -22,3 +22,5 @@ BBFILE_PATTERN_qt5-layer := "^${LAYERDIR}/" # other layers. BBFILE_PRIORITY_qt5-layer = "7" + +IMAGE_FEATURES[validitems] += "qtcreator-debug" -- cgit v1.2.3