Patchwork [meta-qt5,3/3] populate_sdk_qt5.bbclass: Add support for qtcreator-debug

login
register
mail settings
Submitter Otavio Salvador
Date Feb. 24, 2014, 8:28 p.m.
Message ID <1393273696-9249-4-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/67369/
State Accepted, archived
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - Feb. 24, 2014, 8:28 p.m.
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 <otavio@ossystems.com.br>
---
 classes/populate_sdk_qt5.bbclass |    2 ++
 conf/layer.conf                  |    2 ++
 2 files changed, 4 insertions(+)

Patch

diff --git a/classes/populate_sdk_qt5.bbclass b/classes/populate_sdk_qt5.bbclass
index 635dd6d..c921983 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 3b47b7f..75d13a4 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"