aboutsummaryrefslogtreecommitdiff
path: root/update-demos
blob: b91d014a4079d09f0219d020efd8a615af09a21f (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
#!/bin/bash

set -euo pipefail

set -x

init_dir() {
    dir=$1; shift;
    rm -rf $dir
    mkdir $dir

    (cat <<EOF
ee/cache
.ninja_*
EOF
) > $dir/.gitignore
}

init_dir demo/thirdparty/olinuxino
cd demo/thirdparty/olinuxino
ee init --basedir=../../../thirdparty/olinuxino/HARDWARE/A64-OLinuXino/A64-OLinuXino_Rev_D
ee ninja
ninja -v -j1
git add -A .
cd -

init_dir demo/thirdparty/unlockoslo-alpha-3
cd $dir
ee init --basedir=../../../thirdparty/unlockoslo/hardware/alpha-3
ee ninja
ninja -v -j1
git add -A .
cd -