aboutsummaryrefslogtreecommitdiff
path: root/lite-gateway-ubuntu-core
diff options
context:
space:
mode:
authorMadper Xie <madper.xie@linaro.org>2017-02-22 18:04:50 +0800
committerFathi Boudra <fathi.boudra@linaro.org>2017-02-22 15:01:09 +0200
commit4bfb6e78760109fc2a28f117ca190c29f23be683 (patch)
tree1298087cd2d9e60ddf4524db39fa74a9aa90f998 /lite-gateway-ubuntu-core
parent4eb9ec31ce2e7d0d49e8d18298922ac44966f369 (diff)
lite-gateway-ubuntu-core: add dragonboard-410c support
As we will not change dragonboard-410c often. Only upper layer will be upgraded. So it makes sence to build rpi2, rpi3, 410c together with a low frequency. Add a parameter to the job to simplify addition of other platforms. Change-Id: Id60bbe923bc0deb00f84f65285d3325faba29d46 Signed-off-by: Madper Xie <madper.xie@linaro.org> Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'lite-gateway-ubuntu-core')
-rwxr-xr-xlite-gateway-ubuntu-core/builders.sh13
-rw-r--r--lite-gateway-ubuntu-core/dragonboard-410c.json11
2 files changed, 18 insertions, 6 deletions
diff --git a/lite-gateway-ubuntu-core/builders.sh b/lite-gateway-ubuntu-core/builders.sh
index c8742cec..b75a7cfe 100755
--- a/lite-gateway-ubuntu-core/builders.sh
+++ b/lite-gateway-ubuntu-core/builders.sh
@@ -24,13 +24,14 @@ cleanup_exit()
export PATH="/usr/sbin:/sbin:$PATH"
tar xf snap.tar -C ${HOME}
-wget -q https://git.linaro.org/ci/job/configs.git/blob_plain/HEAD:/lite-gateway-ubuntu-core/pi-3.json -O pi-3.json
-wget -q https://git.linaro.org/ci/job/configs.git/blob_plain/HEAD:/lite-gateway-ubuntu-core/pi-3.json -O pi-2.json
-cat pi-3.json | snap sign -k madper-new > pi-3.model
-cat pi-2.json | snap sign -k madper-new > pi-2.model
+for machine in ${MACHINES}; do
+ wget -q https://git.linaro.org/ci/job/configs.git/blob_plain/HEAD:/lite-gateway-ubuntu-core/${machine}.json -O ${machine}.json
+ cat ${machine}.json | snap sign -k madper-new > ${machine}.model
+done
snap download ubuntu-image
sudo mount -o loop -t squashfs ubuntu-image_*.snap ${SNAP}
-${SNAP}/command-ubuntu-image.wrapper -c beta -o ubuntu-core-16-pi3-lite.img pi-3.model
-${SNAP}/command-ubuntu-image.wrapper -c beta -o ubuntu-core-16-pi2-lite.img pi-2.model
+for machine in ${MACHINES}; do
+ ${SNAP}/command-ubuntu-image.wrapper -c beta -o ubuntu-core-16-${machine}-lite.img ${machine}.model
+done
diff --git a/lite-gateway-ubuntu-core/dragonboard-410c.json b/lite-gateway-ubuntu-core/dragonboard-410c.json
new file mode 100644
index 00000000..5f7004d8
--- /dev/null
+++ b/lite-gateway-ubuntu-core/dragonboard-410c.json
@@ -0,0 +1,11 @@
+{
+ "type": "model",
+ "authority-id": "fsbTOvw7utNforMLgfgLMbrw9hDeTvLb",
+ "brand-id": "fsbTOvw7utNforMLgfgLMbrw9hDeTvLb",
+ "series": "16",
+ "model": "my-dragonboard",
+ "architecture": "arm64",
+ "gadget": "dragonboard",
+ "kernel": "dragonboard-kernel",
+ "timestamp": "2017-02-21T14:49:23+00:00"
+}