qt4-embedded.inc: provide PACKAGECONFIG for tslib
PATCH 1/2 qt4-embedded.inc: provide PACKAGECONFIG for tslib
make tslib dependency optional
--- recipes-qt4/qt4/qt4-embedded.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
recipes-qt4/qt4/qt4-embedded.inc +4 -2
@@ -2,7 +2,9 @@ SUMMARY = "Cross-platform UI toolkit and application framework (framebuffer vers DESCRIPTION = "Qt is a versatile cross-platform application framework -- this is the embedded (framebuffer) version." SECTION = "libs" HOMEPAGE = "http://qt-project.org/" -DEPENDS += "tslib" + +PACKAGECONFIG ??= "" +PACKAGECONFIG[tslib] = "QT_EMBEDDED_EXTRA_FLAGS_append =' -plugin-mouse-tslib', , tslib" QT4EDEPENDS = "" QT_BASE_LIB ?= "libqt-embedded"
@@ -18,7 +20,7 @@ QT_EMBEDDED_FLAGS ?= " \ " QT_EMBEDDED_EXTRA_FLAGS ?= " \ -plugin-gfx-transformed -plugin-gfx-qvfb -plugin-gfx-vnc \ - -plugin-mouse-tslib -qt-mouse-pc -qt-mouse-qvfb -qt-mouse-linuxinput \ + -qt-mouse-pc -qt-mouse-qvfb -qt-mouse-linuxinput \ -qt-kbd-tty -qt-kbd-linuxinput \ " QT_EMBEDDED_KEYPAD_FLAGS ?= " \
Signature · 1 line
2.4.0
PATCH 2/2 packagegroup-core-qt4e: updates based on tslib dependency
Since tslib dependency is optional, update the location of qt4-embedded-plugin-mousedriver-tslib which depends on it.
--- recipes-qt4/packagegroups/packagegroup-core-qt4e.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
recipes-qt4/packagegroups/packagegroup-core-qt4e.bb +1 -2
@@ -7,7 +7,7 @@ COMPATIBLE_HOST_mips64 = "null" inherit packagegroup -TOUCH = ' ${@bb.utils.contains("MACHINE_FEATURES", "touchscreen", "tslib tslib-calibrate tslib-tests", "",d)}' +TOUCH = ' ${@bb.utils.contains("MACHINE_FEATURES", "touchscreen", "tslib tslib-calibrate tslib-tests qt4-embedded-plugin-mousedriver-tslib", "",d)}' RDEPENDS_${PN} = " \ qt4-embedded \
@@ -35,7 +35,6 @@ RDEPENDS_${PN} = " \ qt4-embedded-plugin-imageformat-mng \ qt4-embedded-plugin-imageformat-svg \ qt4-embedded-plugin-imageformat-tiff \ - qt4-embedded-plugin-mousedriver-tslib \ qt4-embedded-plugin-script-dbus \ qt4-embedded-plugin-sqldriver-sqlite \ ${TOUCH} \
Signature · 1 line
2.4.0
Quoted 12 lines · Maxin B. John
make tslib dependency optional
Signed-off-by Maxin B. John <[email protected]>--- recipes-qt4/qt4/qt4-embedded.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)recipes-qt4/qt4/qt4-embedded.inc +0
-0
recipes-qt4/qt4/qt4-embedded.inc SUMMARY = "Cross-platform UI toolkit and application framework (framebuffer vers · line 7
Quoted 7 lines
recipes-qt4/qt4/qt4-embedded.inc +3
-1@@ -2,7 +2,9 @@ SUMMARY = "Cross-platform UI toolkit and application framework (framebuffer vers DESCRIPTION = "Qt is a versatile cross-platform application framework -- this is the embedded (framebuffer) version." SECTION = "libs" HOMEPAGE = "http://qt-project.org/" -DEPENDS += "tslib" + +PACKAGECONFIG ??= "" +PACKAGECONFIG[tslib] = "QT_EMBEDDED_EXTRA_FLAGS_append =' -plugin-mouse-tslib', , tslib"
Does this really work? Why don't you append PACKAGECONFIG_CONFARGS variable to QT_EMBEDDED_EXTRA_FLAGS and leave only -plugin-mouse-tslib in PACKAGECONFIG?
Quoted 19 lines
recipes-qt4/qt4/qt4-embedded.inc +1
-1QT4EDEPENDS = "" QT_BASE_LIB ?= "libqt-embedded"@@ -18,7 +20,7 @@ QT_EMBEDDED_FLAGS ?= " \ " QT_EMBEDDED_EXTRA_FLAGS ?= " \ -plugin-gfx-transformed -plugin-gfx-qvfb -plugin-gfx-vnc \ - -plugin-mouse-tslib -qt-mouse-pc -qt-mouse-qvfb -qt-mouse-linuxinput \ + -qt-mouse-pc -qt-mouse-qvfb -qt-mouse-linuxinput \ -qt-kbd-tty -qt-kbd-linuxinput \ " QT_EMBEDDED_KEYPAD_FLAGS ?= " \Signature · 7 lines
2.4.0 -- _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Hi Martin,
Quoted 8 lines · Martin Jansa
Quoted 7 lines · Maxin B. John
make tslib dependency optional
Signed-off-by Maxin B. John <[email protected]>--- recipes-qt4/qt4/qt4-embedded.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Quoted 14 lines
recipes-qt4/qt4/qt4-embedded.inc SUMMARY = "Cross-platform UI toolkit and application framework (framebuffer vers · line 7
Quoted 12 lines
recipes-qt4/qt4/qt4-embedded.inc +3
-1@@ -2,7 +2,9 @@ SUMMARY = "Cross-platform UI toolkit and application framework (framebuffer vers DESCRIPTION = "Qt is a versatile cross-platform application framework -- this is the embedded (framebuffer) version." SECTION = "libs" HOMEPAGE = "http://qt-project.org/" -DEPENDS += "tslib" + +PACKAGECONFIG ??= "" +PACKAGECONFIG[tslib] = "QT_EMBEDDED_EXTRA_FLAGS_append =' -plugin-mouse-tslib', , tslib"Does this really work?
Yes, it was tested before.
Quoted 3 lines
Why don't you append
PACKAGECONFIG_CONFARGS
variable toQT_EMBEDDED_EXTRA_FLAGSand leave only -plugin-mouse-tslib in PACKAGECONFIG?
Your suggestion looks better and will try to update it based on that, Thanks. (A quick grep in meta-qt4 for PACKAGECONFIG_CONFARGS returned zero results)
Quoted 5 lines
Quoted 5 lines
recipes-qt4/qt4/qt4-embedded.inc +0
-0QT4EDEPENDS = "" QT_BASE_LIB ?= "libqt-embedded"@@ -18,7 +20,7 @@ QT_EMBEDDED_FLAGS ?= " \ " QT_EMBEDDED_EXTRA_FLAGS ?= " \
Quoted 8 lines
Quoted 8 lines
recipes-qt4/qt4/qt4-embedded.inc +1
-1-plugin-gfx-transformed -plugin-gfx-qvfb -plugin-gfx-vnc \ - -plugin-mouse-tslib -qt-mouse-pc -qt-mouse-qvfb -qt-mouse-linuxinput \ + -qt-mouse-pc -qt-mouse-qvfb -qt-mouse-linuxinput \ -qt-kbd-tty -qt-kbd-linuxinput \ " QT_EMBEDDED_KEYPAD_FLAGS ?= " \Signature · 1 line
2.4.0
Best Regards,
Maxin
Quoted 2 lines · Maxin B. John
(A quick grep in meta-qt4 for
PACKAGECONFIG_CONFARGSreturned zero results)
FWIW it's a relatively new feature: when PACKAGECONFIG is evaluated it writes the enabled/disabled values to PACKAGECONFIG_CONFARGS, which classes can then use to set the relevant variable. For now it also sets EXTRA_OECONF but that was meant to be changed now that we're unfrozen.
Martin, would you be able to write and test the change to remove EXTRA_OECONF from the PACKAGECONFIG handling?
Ross
Quoted 5 lines · Ross
Quoted 2 lines · Maxin B. John
(A quick grep in meta-qt4 for
PACKAGECONFIG_CONFARGSreturned zero results)
Quoted 7 lines
FWIW it's a relatively new feature: when PACKAGECONFIG is evaluated it writes the enabled/disabled values to
PACKAGECONFIG_CONFARGS, which classes can then use to set the relevant variable. For now it also setsEXTRA_OECONFbut that was meant to be changed now that we're unfrozen.Martin, would you be able to write and test the change to remove
EXTRA_OECONFfrom the PACKAGECONFIG handling?
I've prepared such change and will include it in next world build to see how many things still abuse EXTRA_OECONF (hopefully buildhistory will catch at least some differences once the options are gone from the build).
Unfortunately the world status isn't so great now, so many issues might be hidden.
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
PATCH 1/1 base, autotools: Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF only in autotools.bbclass
* recipes which don't inherit autotools or cmake bbclass and want to use the configure options from PACKAGECONFIG need to handle PACKAGECONFIG_CONFARGS themselves.
--- meta/classes/autotools.bbclass | 2 ++ meta/classes/base.bbclass | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-)
meta/classes/autotools.bbclass +2 -0
@@ -131,6 +131,8 @@ autotools_postconfigure(){ EXTRACONFFUNCS ??= "" +EXTRA_OECONF_append = " ${PACKAGECONFIG_CONFARGS}" + do_configure[prefuncs] += "autotools_preconfigure autotools_copy_aclocals ${EXTRACONFFUNCS}" do_configure[postfuncs] += "autotools_postconfigure"
meta/classes/base.bbclass +0 -6
@@ -431,12 +431,6 @@ python () { appendVar('RDEPENDS_${PN}', extrardeps) appendVar('PACKAGECONFIG_CONFARGS', extraconf) - # TODO: once all recipes/classes abusing EXTRA_OECONF - # to get PACKAGECONFIG options are fixed to use PACKAGECONFIG_CONFARGS - # move this appendVar to autotools.bbclass. - if not bb.data.inherits_class('cmake', d): - appendVar('EXTRA_OECONF', extraconf) - pn = d.getVar('PN', True) license = d.getVar('LICENSE', True) if license == "INVALID":
Signature · 1 line
2.9.2