From 46c7ae687e7a2e94bf3f1bab42aa68ff194da3af Mon Sep 17 00:00:00 2001 From: John Ogness Date: Fri, 2 Nov 2018 09:43:42 +0106 Subject: layer-building: add scripts to automatically build yocto layers The yocto training requires a lot of data to be prebuilt/downloaded (about 15GB). These scripts can be used to automatically download/prebuild all that data and create the various layer tarballs. Signed-off-by: John Ogness --- .../yocto/get-full-eclipse-mirror.sh | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 schulung_tools/layer-building/yocto/get-full-eclipse-mirror.sh (limited to 'schulung_tools/layer-building/yocto/get-full-eclipse-mirror.sh') diff --git a/schulung_tools/layer-building/yocto/get-full-eclipse-mirror.sh b/schulung_tools/layer-building/yocto/get-full-eclipse-mirror.sh new file mode 100755 index 0000000..919f72e --- /dev/null +++ b/schulung_tools/layer-building/yocto/get-full-eclipse-mirror.sh @@ -0,0 +1,24 @@ +#!/bin/sh +set -x +set -e + +test -w /opt/mirrors || exit 1 + +ECL="/opt/eclipse/eclipse -nosplash -verbose -application" + +AM="$EARGS org.eclipse.equinox.p2.metadata.repository.mirrorApplication" +AA="$EARGS org.eclipse.equinox.p2.artifact.repository.mirrorApplication" + +P1="download.eclipse.org/releases/oxygen" +P2="download.eclipse.org/tm/updates/4.0" +P3="downloads.yoctoproject.org/releases/eclipse-plugin/2.5.1/oxygen" + +go() +{ + $ECL $AM -source http://$1 -destination file:/opt/mirrors/$1 + $ECL $AA -source http://$1 -destination file:/opt/mirrors/$1 +} + +go $P1 +go $P2 +go $P3 -- cgit v1.2.3