aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/pre-fetch/include-prefetch.sh
blob: 04b399f85cec1d1480496d8fbcf5b7958eab4b51 (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
57
58
59
#!/bin/bash

#set -x
set +e
#
export BOARDS="qemux86-64 raspberrypi4 h3ulcb-nogfx m3ulcb-nogfx dra7xx-evm qemuarm qemuarm64 bbe"
# check: dra7xx-evm dragonboard-410c wandboard
export FEATURES="agl-demo agl-devel agl-netboot"
export FEATURES_nogfx="agl-netboot agl-devel"
export TARGETIMAGE="agl-demo-platform-crosssdk"
export TARGETIMAGE_nogfx="agl-image-minimal"

mkdir -p mirror
mkdir -p sstate

#echo "AGL DISTRO MIRROR" >> mirror/index.html
#echo "-----------------" >> mirror/index.html
#date >> mirror/index.html

mv repoclone repoclone2 > /dev/null 2>&1 || true
rm -rf repoclone2 || true
mkdir -p repoclone
cd repoclone

repo init --repo-branch=repo-1 --reference=/opt/AGL/preclone -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo.git
repo sync -j8

for i in $BOARDS ; do
    pushd .
    if test x"porter-nogfx" = x"$i" ; then
    FEATURES="${FEATURES_nogfx}"
    TARGETIMAGE="${TARGETIMAGE_nogfx}"
    fi
    if test x"m3ulcb-nogfx" = x"$i" ; then
    FEATURES="${FEATURES_nogfx}"
    TARGETIMAGE="${TARGETIMAGE_nogfx}"
    fi
    if test x"h3ulcb-nogfx" = x"$i" ; then
    FEATURES="${FEATURES_nogfx}"
    TARGETIMAGE="${TARGETIMAGE_nogfx}"
    fi
    source meta-agl/scripts/aglsetup.sh -m ${i} -b build-${i} ${FEATURES}
    ln -sf ../../mirror downloads
    ln -sf ../../sstate sstate-cache
    echo 'BB_GENERATE_MIRROR_TARBALLS = "1"' >> conf/local.conf
    #recipe tar-native-1.28-r0: task do_populate_sysroot_setscene
    #bitbake -k tar-native || true
    bitbake --runall=fetch ${TARGETIMAGE} -k || true
    popd
done

pushd ../mirror
rm -f *.done
( find .  -maxdepth 1 -type d | grep -v uninative | xargs rm -rf ) || true
rm -f *bad-checksum* || true
ls -alh
popd

#ls ../mirror || true