diff options
| author | John Ogness <john.ogness@linutronix.de> | 2018-11-02 09:43:42 +0106 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2018-11-02 09:43:42 +0106 |
| commit | 46c7ae687e7a2e94bf3f1bab42aa68ff194da3af (patch) | |
| tree | ba80fd09caf78552fa835b916b5f206579857d37 /schulung_tools/layer-building/yocto/get-full-eclipse-mirror.sh | |
| parent | 10016deba10397bbe743ba80e602a9823483a709 (diff) | |
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 <john.ogness@linutronix.de>
Diffstat (limited to 'schulung_tools/layer-building/yocto/get-full-eclipse-mirror.sh')
| -rwxr-xr-x | schulung_tools/layer-building/yocto/get-full-eclipse-mirror.sh | 24 |
1 files changed, 24 insertions, 0 deletions
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 |
