diff options
| -rw-r--r-- | classes/internal-build.bbclass | 47 | ||||
| -rw-r--r-- | conf/local.conf.sample | 16 |
2 files changed, 48 insertions, 15 deletions
diff --git a/classes/internal-build.bbclass b/classes/internal-build.bbclass new file mode 100644 index 0000000..2a975f6 --- /dev/null +++ b/classes/internal-build.bbclass | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | ############################################################################## | ||
| 2 | ## | ||
| 3 | ## Copyright (C) 2016 The Qt Company Ltd. | ||
| 4 | ## Contact: http://www.qt.io/licensing/ | ||
| 5 | ## | ||
| 6 | ## This file is part of the Boot to Qt meta layer. | ||
| 7 | ## | ||
| 8 | ## $QT_BEGIN_LICENSE:COMM$ | ||
| 9 | ## | ||
| 10 | ## Commercial License Usage | ||
| 11 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
| 12 | ## accordance with the commercial license agreement provided with the | ||
| 13 | ## Software or, alternatively, in accordance with the terms contained in | ||
| 14 | ## a written agreement between you and The Qt Company. For licensing terms | ||
| 15 | ## and conditions see http://www.qt.io/terms-conditions. For further | ||
| 16 | ## information use the contact form at http://www.qt.io/contact-us. | ||
| 17 | ## | ||
| 18 | ## $QT_END_LICENSE$ | ||
| 19 | ## | ||
| 20 | ############################################################################## | ||
| 21 | |||
| 22 | python enable_internal_build () { | ||
| 23 | import socket | ||
| 24 | try: | ||
| 25 | socket.gethostbyname('yocto-cache.ci.local') | ||
| 26 | except: | ||
| 27 | return | ||
| 28 | |||
| 29 | e.data.setVar('SSTATE_MIRRORS', "file://.* http://yocto-cache.ci.local/sstate-caches/${DISTRO_CODENAME}/PATH") | ||
| 30 | e.data.setVar('PREMIRRORS', "\ | ||
| 31 | ftp://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 32 | http://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 33 | https://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 34 | bzr://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 35 | cvs://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 36 | git://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 37 | gitsm://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 38 | hg://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 39 | osc://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 40 | p4://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 41 | svk://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 42 | svn://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 43 | ") | ||
| 44 | } | ||
| 45 | |||
| 46 | addhandler enable_internal_build | ||
| 47 | enable_internal_build[eventmask] = "bb.event.ConfigParsed" | ||
diff --git a/conf/local.conf.sample b/conf/local.conf.sample index d8c9255..5dd5c3d 100644 --- a/conf/local.conf.sample +++ b/conf/local.conf.sample | |||
| @@ -252,21 +252,6 @@ BB_DISKMON_DIRS = "\ | |||
| 252 | #SSTATE_MIRRORS ?= "\ | 252 | #SSTATE_MIRRORS ?= "\ |
| 253 | #file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \ | 253 | #file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \ |
| 254 | #file://.* file:///some/local/dir/sstate/PATH" | 254 | #file://.* file:///some/local/dir/sstate/PATH" |
| 255 | #SSTATE_MIRRORS ?= "file://.* http://yocto-cache.ci.local/sstate-caches/${DISTRO_CODENAME}/PATH" | ||
| 256 | |||
| 257 | #PREMIRRORS = "\ | ||
| 258 | #ftp://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 259 | #http://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 260 | #https://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 261 | #bzr://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 262 | #cvs://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 263 | #git://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 264 | #gitsm://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 265 | #hg://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 266 | #osc://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 267 | #p4://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 268 | #svk://.*/.* http://yocto-cache.ci.local/sources/ \n \ | ||
| 269 | #svn://.*/.* http://yocto-cache.ci.local/sources/ \n" | ||
| 270 | 255 | ||
| 271 | # | 256 | # |
| 272 | # Qemu configuration | 257 | # Qemu configuration |
| @@ -286,6 +271,7 @@ CONF_VERSION = "1" | |||
| 286 | 271 | ||
| 287 | INHERIT += "rm_work" | 272 | INHERIT += "rm_work" |
| 288 | INHERIT += "image-buildinfo" | 273 | INHERIT += "image-buildinfo" |
| 274 | INHERIT += "internal-build" | ||
| 289 | 275 | ||
| 290 | ACCEPT_FSL_EULA = "1" | 276 | ACCEPT_FSL_EULA = "1" |
| 291 | LICENSE_FLAGS_WHITELIST = "commercial" | 277 | LICENSE_FLAGS_WHITELIST = "commercial" |
