diff options
author | Madper Xie <madper.xie@linaro.org> | 2017-03-23 20:24:19 +0800 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2017-03-23 17:24:29 +0200 |
commit | 8e20846defac034a12955ae140cbcf254aa00b00 (patch) | |
tree | 146e7e2c693be835e269d14aef31ac90a5db3e2d /lite-gateway-ubuntu-core | |
parent | 12ac574ca4320cb06e753b7f1cd5ab4d75b19ad9 (diff) |
lite-gateway-ubuntu-core: add hummingboard support
As hummingboard is still in actively developing we need to build the
kernel && gadget snap every time to get the latest version.
Change-Id: I3876cc0ed2f67e0e23d9cbe96b54443ff02c8ae0
Diffstat (limited to 'lite-gateway-ubuntu-core')
-rwxr-xr-x | lite-gateway-ubuntu-core/builders.sh | 16 | ||||
-rw-r--r-- | lite-gateway-ubuntu-core/hummingboard.json | 11 |
2 files changed, 26 insertions, 1 deletions
diff --git a/lite-gateway-ubuntu-core/builders.sh b/lite-gateway-ubuntu-core/builders.sh index b75a7cfe..372b010e 100755 --- a/lite-gateway-ubuntu-core/builders.sh +++ b/lite-gateway-ubuntu-core/builders.sh @@ -33,5 +33,19 @@ snap download ubuntu-image sudo mount -o loop -t squashfs ubuntu-image_*.snap ${SNAP} for machine in ${MACHINES}; do - ${SNAP}/command-ubuntu-image.wrapper -c beta -o ubuntu-core-16-${machine}-lite.img ${machine}.model + if [ "${machine}" == "hummingboard" ]; then + git clone --depth 1 https://github.com/madper/hummingboard-kernel.git + snapcraft --target-arch armhf snap hummingboard-kernel --output 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 + + ${SNAP}/command-ubuntu-image.wrapper -c beta \ + --extra-snaps hummingboard-kernel.snap \ + --extra-snaps hummingboard-gadget.snap \ + -o ubuntu-core-16-${machine}-lite.img ${machine}.model + else + ${SNAP}/command-ubuntu-image.wrapper -c beta \ + -o ubuntu-core-16-${machine}-lite.img ${machine}.model + fi done diff --git a/lite-gateway-ubuntu-core/hummingboard.json b/lite-gateway-ubuntu-core/hummingboard.json new file mode 100644 index 00000000..1f1fe99c --- /dev/null +++ b/lite-gateway-ubuntu-core/hummingboard.json @@ -0,0 +1,11 @@ +{ + "type": "model", + "authority-id": "fsbTOvw7utNforMLgfgLMbrw9hDeTvLb", + "brand-id": "fsbTOvw7utNforMLgfgLMbrw9hDeTvLb", + "series": "16", + "model": "hummingboard", + "architecture": "armhf", + "gadget": "hummingboard-gadget", + "kernel": "hummingboard-kernel", + "timestamp": "2017-01-08T18:12:28+00:00" +} |