blob: 17bdb06bd626101cf0c558ffa1cbaadd5147081f (
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
|
#!/bin/bash
set -e
# install prereqs for bitbake (Yocto mega-manual)
# http://www.yoctoproject.org/docs/2.2/mega-manual/mega-manual.html#detailed-supported-distros
apt-get install -y gawk diffstat texinfo gcc-multilib g++-multilib\
build-essential chrpath socat
# some packages are not mentioned or not pulled...
apt-get install -y libsdl1.2-dev cpio lsb-release python3
# for documentation
#apt-get install -y xsltproc docbook-utils fop dblatex xmlto
# for gerrit
apt-get install -y git-review
# libncurses5-dev for kernel 'make menuconfig'
apt-get install -y libncurses5-dev
# copy meta init script in ~devel/bin:
wget -t 3 -T 60 -O $DEVUSER_HOME/bin/prepare_meta https://raw.githubusercontent.com/iotbzh/agl-manifest/master/prepare_meta
chmod +x $DEVUSER_HOME/bin/*
# for image creation and compression
apt-get install -y python-lzma pbzip2 pigz lzop
dpkg -i \
$INSTDIR/tools/tar/*.deb \
$INSTDIR/tools/xz-utils/*.deb
# install specific scripts
mkdir -p /usr/local/bin
for x in $INSTDIR/tools/scripts_yocto/*; do
install --mode=755 $x /usr/local/bin/
done
# grab and install repo tool
wget -t 3 -T 60 -O /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo
chmod a+x /usr/local/bin/repo
|