feat: Use YAML for board definitions
This commit is contained in:
parent
70f2c6deb7
commit
c7fca8724c
4
Makefile
4
Makefile
|
@ -3,8 +3,8 @@ CHANNEL=stable
|
||||||
clean:
|
clean:
|
||||||
rm -rf *.img *.model *.manifest
|
rm -rf *.img *.model *.manifest
|
||||||
|
|
||||||
%.model: boards/%.json # sign a model file
|
%.model: boards/%.yaml # sign a model file
|
||||||
cat boards/HEAD.json $< boards/FOOT.json | sed "s|TIMESTAMP|$(shell date -Iseconds --utc)|g" | snap sign -k default > $@
|
cat definition.yaml $< | python -c "import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=2)" | sed "s|TIMESTAMP|$(shell date -Iseconds --utc)|g" | snap sign -k default > $@
|
||||||
%.img: %.model # build an image
|
%.img: %.model # build an image
|
||||||
sudo ubuntu-image snap -o $@ -c $(CHANNEL) $<
|
sudo ubuntu-image snap -o $@ -c $(CHANNEL) $<
|
||||||
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
"required-snaps": ["hello", "hello-world", "nextcloud", "lxd"],
|
|
||||||
"authority-id": "7xN2sMCILuFk10e6DxrTrQWprdmV0Vi9",
|
|
||||||
"brand-id": "7xN2sMCILuFk10e6DxrTrQWprdmV0Vi9",
|
|
||||||
"timestamp": "TIMESTAMP"
|
|
||||||
}
|
|
|
@ -1,4 +0,0 @@
|
||||||
{
|
|
||||||
"type": "model",
|
|
||||||
"series": "16",
|
|
||||||
"model": "hub",
|
|
|
@ -1,3 +0,0 @@
|
||||||
"architecture": "amd64",
|
|
||||||
"gadget": "joule",
|
|
||||||
"kernel": "joule-linux",
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
architecture: amd64
|
||||||
|
gadget: joule
|
||||||
|
kernel: joule-linux
|
|
@ -1,3 +0,0 @@
|
||||||
"architecture": "armhf",
|
|
||||||
"gadget": "pi2",
|
|
||||||
"kernel": "pi2-kernel",
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
architecture: armhf
|
||||||
|
gadget: pi2
|
||||||
|
kernel: pi2-kernel
|
|
@ -1,4 +0,0 @@
|
||||||
"architecture": "armhf",
|
|
||||||
"gadget": "pi2",
|
|
||||||
"kernel": "pi3-kernel",
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
architecture: armhf
|
||||||
|
gadget: pi3
|
||||||
|
kernel: pi2-kernel
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
# basic
|
||||||
|
type: model
|
||||||
|
series: "16"
|
||||||
|
model: hub
|
||||||
|
# snaps to be preinstalled:
|
||||||
|
required-snaps:
|
||||||
|
- nextcloud # just for proof-of-concept
|
||||||
|
# authority meta
|
||||||
|
authority-id: 7xN2sMCILuFk10e6DxrTrQWprdmV0Vi9
|
||||||
|
brand-id: 7xN2sMCILuFk10e6DxrTrQWprdmV0Vi9
|
||||||
|
# timestamp gets filled in automatically
|
||||||
|
timestamp: TIMESTAMP
|
Loading…
Reference in New Issue