aboutsummaryrefslogtreecommitdiff
path: root/lite-gateway-ubuntu-core
diff options
context:
space:
mode:
authorMadper Xie <madper.xie@linaro.org>2017-03-24 19:25:37 +0800
committerFathi Boudra <fathi.boudra@linaro.org>2017-03-24 11:30:38 +0000
commit3430904f1dd8acffe72cbb66d2aac399639a2f14 (patch)
treebe7f3770de02226a0777e1f614cd2fca1dfef909 /lite-gateway-ubuntu-core
parent0b8cc314986b0372c0773d51d4949fa16a1cd142 (diff)
lite-gateway-ubuntu-core: fix kernel snap output path.
Change-Id: I5a613993d7759bb3a37510de17fa99bf6c5034a1
Diffstat (limited to 'lite-gateway-ubuntu-core')
-rwxr-xr-xlite-gateway-ubuntu-core/builders.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/lite-gateway-ubuntu-core/builders.sh b/lite-gateway-ubuntu-core/builders.sh
index b81f838f..2cb84ae4 100755
--- a/lite-gateway-ubuntu-core/builders.sh
+++ b/lite-gateway-ubuntu-core/builders.sh
@@ -17,7 +17,7 @@ cleanup_exit()
cd ${WORKSPACE}
sudo umount ${SNAP} || true
sudo rm -rf ${SNAP} || true
- rm -f ubuntu-image_*
+ rm -f ubuntu-image_* *.snap
}
# sbin isn't in the PATH by default and prevent to find mkfs.vfat
@@ -35,14 +35,14 @@ sudo mount -o loop -t squashfs ubuntu-image_*.snap ${SNAP}
for machine in ${MACHINES}; do
if [ "${machine}" == "hummingboard" ]; then
git clone --depth 1 https://github.com/madper/hummingboard-kernel.git
- (cd hummingboard-kernel && snapcraft --target-arch armhf snap --output hummingboard-kernel.snap)
+ (cd hummingboard-kernel && snapcraft --target-arch armhf snap --output ${WORKSPACE}/hummingboard-kernel.snap)
git clone --depth 1 https://github.com/madper/hummingboard-gadget.git
- snapcraft --target-arch armhf snap hummingboard-gadget --output hummingboard-gadget.snap
+ snapcraft --target-arch armhf snap hummingboard-gadget --output ${WORKSPACE}/hummingboard-gadget.snap
${SNAP}/command-ubuntu-image.wrapper -c beta \
- --extra-snaps hummingboard-kernel.snap \
- --extra-snaps hummingboard-gadget.snap \
+ --extra-snaps ${WORKSPACE}/hummingboard-kernel.snap \
+ --extra-snaps ${WORKSPACE}/hummingboard-gadget.snap \
-o ubuntu-core-16-${machine}-lite.img ${machine}.model
else
${SNAP}/command-ubuntu-image.wrapper -c beta \