diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/internal-build.bbclass | 1 | ||||
-rw-r--r-- | classes/qtquickcompiler.bbclass | 20 |
2 files changed, 11 insertions, 10 deletions
diff --git a/classes/internal-build.bbclass b/classes/internal-build.bbclass index 3b7f422..ecee863 100644 --- a/classes/internal-build.bbclass +++ b/classes/internal-build.bbclass | |||
@@ -34,6 +34,7 @@ python enable_internal_build () { | |||
34 | except: | 34 | except: |
35 | return | 35 | return |
36 | 36 | ||
37 | e.data.setVar('ENABLE_QTQUICKCOMPILER', "1") | ||
37 | e.data.setVar('SSTATE_MIRRORS', "file://.* http://yocto-cache.ci.local/sstate-caches/${DISTRO_CODENAME}/PATH") | 38 | e.data.setVar('SSTATE_MIRRORS', "file://.* http://yocto-cache.ci.local/sstate-caches/${DISTRO_CODENAME}/PATH") |
38 | e.data.setVar('PREMIRRORS', "\ | 39 | e.data.setVar('PREMIRRORS', "\ |
39 | ftp://.*/.* http://yocto-cache.ci.local/sources/ \n \ | 40 | ftp://.*/.* http://yocto-cache.ci.local/sources/ \n \ |
diff --git a/classes/qtquickcompiler.bbclass b/classes/qtquickcompiler.bbclass index 8dbaf49..3564ad1 100644 --- a/classes/qtquickcompiler.bbclass +++ b/classes/qtquickcompiler.bbclass | |||
@@ -28,18 +28,18 @@ | |||
28 | ############################################################################ | 28 | ############################################################################ |
29 | 29 | ||
30 | python __anonymous() { | 30 | python __anonymous() { |
31 | provider = "qtquickcompiler" | 31 | provider = "" |
32 | sdk_path = d.getVar('B2QTBASE', True) + "/recipes-qt/qt5-addons/qtquickcompiler-sdk" | ||
33 | pn = d.getVar("PN", True) | ||
32 | 34 | ||
33 | sdk_path = d.getVar('QT_SDK_PATH', True) or "" | 35 | if d.getVar('ENABLE_QTQUICKCOMPILER', True) == "1": |
34 | if len(sdk_path) != 0: | 36 | provider = "qtquickcompiler" |
35 | qtquickcompiler_path = d.getVar('B2QTBASE', True) + "/recipes-qt/qt5-addons/qtquickcompiler-sdk" | 37 | elif os.path.isdir(sdk_path): |
36 | if not os.path.isdir(qtquickcompiler_path): | 38 | provider = "qtquickcompiler-sdk" |
37 | bb.note("QtQuickCompiler not available") | 39 | else: |
38 | return | 40 | bb.note("qtquickcompiler not enabled for %s" % pn) |
39 | else: | 41 | return |
40 | provider = "qtquickcompiler-sdk" | ||
41 | 42 | ||
42 | pn = d.getVar("PN", True) | ||
43 | if "toolchain-host" in pn: | 43 | if "toolchain-host" in pn: |
44 | d.appendVar('RDEPENDS_' + pn, " nativesdk-%s-tools" % provider) | 44 | d.appendVar('RDEPENDS_' + pn, " nativesdk-%s-tools" % provider) |
45 | if "toolchain-target" in pn: | 45 | if "toolchain-target" in pn: |