summaryrefslogtreecommitdiff
path: root/schulung_tools/layer-building/yocto/build-yocto.sh
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2019-04-26 11:00:00 +0206
committerJohn Ogness <john.ogness@linutronix.de>2019-04-26 11:00:00 +0206
commit762fab1d5f677ef42a4467e492a724540483eb7b (patch)
tree8e59b8c0370da700e5bb02db10b8e322f43c963b /schulung_tools/layer-building/yocto/build-yocto.sh
parent602c17ae7dc2d3af68c0105fbc61873181906553 (diff)
layer-building/yocto: update scripts for 2.6.1
Use the latest thud stable and also cleanup the scripts a bit so that it is easier to update the version in the future. Signed-off-by: John Ogness <john.ogness@linutronix.de>
Diffstat (limited to 'schulung_tools/layer-building/yocto/build-yocto.sh')
-rwxr-xr-xschulung_tools/layer-building/yocto/build-yocto.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/schulung_tools/layer-building/yocto/build-yocto.sh b/schulung_tools/layer-building/yocto/build-yocto.sh
index beccbd4..848b83f 100755
--- a/schulung_tools/layer-building/yocto/build-yocto.sh
+++ b/schulung_tools/layer-building/yocto/build-yocto.sh
@@ -2,6 +2,9 @@
set -x
set -e
+YOCTO_TAG='yocto-2.6.1'
+LOCAL_YOCTO_BRANCH='yocto-2.6-schulung'
+
test $# -eq 1 || exit 1
test -w /home/prebuilt || exit 1
test -w /home/downloads || exit 1
@@ -23,12 +26,12 @@ mkdir -p ~/yocto/source ~/yocto/build
DOCHECKOUT=0
if [ ! -d ~/yocto/source/poky ]; then
- git clone -b yocto-2.6 /opt/mirrors/poky.git ~/yocto/source/poky
+ git clone -b $YOCTO_TAG /opt/mirrors/poky.git ~/yocto/source/poky
DOCHECKOUT=1
fi
cd ~/yocto/source/poky
if [ $DOCHECKOUT -eq 1 ]; then
- git checkout -b yocto-2.6-schulung
+ git checkout -b $LOCAL_YOCTO_BRANCH
fi
. ./oe-init-build-env ~/yocto/build/$MACHINE
@@ -54,3 +57,4 @@ build_extra
cp conf/bblayers.conf /home/prebuilt/$MACHINE/
cp conf/local.conf /home/prebuilt/$MACHINE/
+cp -a tmp/deploy/sdk /home/prebuilt/$MACHINE/