diff options
author | Madper Xie <madper.xie@linaro.org> | 2017-02-22 18:04:50 +0800 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2017-02-22 15:01:09 +0200 |
commit | 4bfb6e78760109fc2a28f117ca190c29f23be683 (patch) | |
tree | 1298087cd2d9e60ddf4524db39fa74a9aa90f998 | |
parent | 4eb9ec31ce2e7d0d49e8d18298922ac44966f369 (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>
-rw-r--r-- | lite-gateway-ubuntu-core.yaml | 11 | ||||
-rwxr-xr-x | lite-gateway-ubuntu-core/builders.sh | 13 | ||||
-rw-r--r-- | lite-gateway-ubuntu-core/dragonboard-410c.json | 11 |
3 files changed, 26 insertions, 9 deletions
diff --git a/lite-gateway-ubuntu-core.yaml b/lite-gateway-ubuntu-core.yaml index 4cb90bf838..d466a8cb99 100644 --- a/lite-gateway-ubuntu-core.yaml +++ b/lite-gateway-ubuntu-core.yaml @@ -10,6 +10,10 @@ - build-discarder: days-to-keep: 30 num-to-keep: 30 + parameters: + - string: + name: MACHINES + default: 'dragonboard-410c pi-2 pi-3' disabled: false node: docker-xenial-amd64 display-name: 'LITE - Ubuntu Core gateway image' @@ -26,10 +30,11 @@ - shell: | #!/bin/bash -e - pxz ubuntu-core-16-pi3-lite.img - pxz ubuntu-core-16-pi2-lite.img mkdir out - mv pi-3.json ubuntu-core-16-pi3-lite.img.xz ubuntu-core-16-pi2-lite.img.xz out/ + for machine in ${MACHINES}; do + pxz ubuntu-core-16-${machine}-lite.img + mv ubuntu-core-16-${machine}-lite.img.xz out/ + done # Publish test -d ${HOME}/bin || mkdir ${HOME}/bin diff --git a/lite-gateway-ubuntu-core/builders.sh b/lite-gateway-ubuntu-core/builders.sh index c8742cec2f..b75a7cfe1e 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 0000000000..5f7004d8f8 --- /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" +} |