aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common/include-agl-auto-conf.sh
blob: 20f5d9fb0be0f3c31a8d7be25f10df08c06b1e40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# (c) 2016 Jan-Simon Moeller dl9pf(at)gmx.de
# License GPLv2

################################################################################
## auto.conf inclusion of mirrors
################################################################################

export DLHOST="http://download.automotivelinux.org/"
if test x"" = x"${GERRIT_BRANCH}"; then
    export DISTROBRANCH="master"
else
    export DISTROBRANCH="${GERRIT_BRANCH}"
fi
cat << EOF >> conf/auto.conf
PREMIRRORS = "\
git://.*/.* ${DLHOST}/AGL/mirror/   \n \
ftp://.*/.* ${DLHOST}/AGL/mirror/   \n \
http://.*/.* ${DLHOST}/AGL/mirror/  \n \
https://.*/.* ${DLHOST}/AGL/mirror/ \n \
             "

EOF

if test x"YES" != x"${DISABLE_SSTATE_MIRROR}" ; then

cat << EOF >> conf/auto.conf
SSTATE_MIRRORS = " \
  file://.* ${DLHOST}/sstate-mirror/${DISTROBRANCH}/\${DEFAULTTUNE}/PATH \n \
                 "
#
#file://.* file:///opt/AGL/sstate-mirror/\${MACHINE}/PATH    \n 
#

IMAGE_FSTYPES_remove = "ext3"
SSTATE_DIR = "\${TOPDIR}/sstate-cache/\${MACHINE}/"

INHERIT += "packagefeed-stability"
INHERIT += "buildhistory"
EOF

fi

# PRSERV and HASHSERV for CI
# but only starting with dunfell / master -> soon jellyfish
if test x"master" = x"${DISTROBRANCH}" -o x"jellyfish" = x"${DISTROBRANCH}" ; then

export PRHASHSERV="10.30.72.18"
cat << EOF >> conf/auto.conf
# HASHSERVE
BB_HASHSERVE = "${PRHASHSERV}:8686"
BB_SIGNATURE_HANDLER = "OEEquivHash"

PRSERV_HOST = "${PRHASHSERV}:8585"
EOF

fi