aboutsummaryrefslogtreecommitdiffstats
path: root/INSTALL/tasks.d/30_yocto
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2017-05-11 01:06:09 +0200
committerStephane Desneux <stephane.desneux@iot.bzh>2017-05-11 01:06:09 +0200
commita7bf03217af780f4245af555efdbfdc7ca9e2935 (patch)
tree66698dc80d43d3ff023560bc483acf66a964212d /INSTALL/tasks.d/30_yocto
parentf32036a025d8ae7e6ef02aca8b080e5bca60fc11 (diff)
Introduce flavours for containers
Multiple variations over a common base must be supported when creating AGL containers. This commit introduces 'flavours' to achive this goal (see README.md for details). Current supported flavours: * generic : same image as before * xds : new image dedicated to AGL DevKit Change-Id: I0aa65a1d9e83a2d7aed43e0b135dc43c5537bc53 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'INSTALL/tasks.d/30_yocto')
-rw-r--r--INSTALL/tasks.d/30_yocto44
1 files changed, 44 insertions, 0 deletions
diff --git a/INSTALL/tasks.d/30_yocto b/INSTALL/tasks.d/30_yocto
new file mode 100644
index 0000000..af21a8c
--- /dev/null
+++ b/INSTALL/tasks.d/30_yocto
@@ -0,0 +1,44 @@
+#!/bin/bash
+
+# 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 wget git git-core diffstat unzip texinfo gcc-multilib \
+ build-essential chrpath socat
+
+# some packages are not mentioned or not pulled...
+apt-get install -y libsdl1.2-dev cpio libzip2 lsb-release python3
+
+# dev tools
+apt-get install -y make ccache
+
+# 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 -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 python-gpgme pbzip2 pigz lzop
+
+dpkg -i \
+ $INSTDIR/tools/bmaptools/bmap-tools*.deb \
+ $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 -O /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo
+chmod a+x /usr/local/bin/repo
+