summaryrefslogtreecommitdiffstats
path: root/classes/internal-build.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/internal-build.bbclass')
-rw-r--r--classes/internal-build.bbclass47
1 files changed, 47 insertions, 0 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
22python 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
46addhandler enable_internal_build
47enable_internal_build[eventmask] = "bb.event.ConfigParsed"