summaryrefslogtreecommitdiff
path: root/armv7-versatile/arm-devel-system-setup
blob: a6d02014bd971fb74078ff2822c1fc5f198f89e4 (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
#!/bin/sh

set -e

#Ensure the /src directory exists
mkdir -p /src

#Retrieve the staging-filler
if [ -e /src/staging-filler ]
then
	cd /src/staging-filler
	git pull origin master
	cd -
else
	git clone ssh://git@trove.genivi.baserock.com/ct/genivi/genivi-staging-fillers-armv7 /src/staging-filler
fi

#Ensure the cache and temp directories exist
mkdir -p /src/cache
mkdir -p /src/tmp

#Create morph.conf
cat >/src/morph.conf <<EOF
[config]
log = /src/morph.log
cachedir = /src/cache
tempdir = /src/tmp
staging-chroot = true
staging-filler = /src/staging-filler/filler.tar.gz, \
                 /src/staging-filler/genivi-filler.tar.gz
trove-host = trove.genivi.baserock.com
trove-prefix = ct
EOF

#Ensure morph uses our morph.conf
[ -e $HOME/.morph.conf ] && rm $HOME/.morph.conf
ln -s /src/morph.conf $HOME/.morph.conf

echo "Initial setup complete."