diff options
| author | Richard Hughes <richard@hughsie.com> | 2017-01-10 17:15:24 +0000 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2017-01-10 15:02:20 -0800 |
| commit | f2c7bb5879ba22df05fd1e39f01ea692313306fd (patch) | |
| tree | 0b411520028e570f5fa25623902174f0dde56902 /src/chaoskey-v1.0/Makefile | |
| parent | 89ecc32b90565ace078c4a84d4406a4d1f86821a (diff) | |
altos/chaoskey: Add a metainfo for the ChaosKey
This provides the information necessary to reflash chaoskey using
standard Linux device firmware tooling.
Diffstat (limited to 'src/chaoskey-v1.0/Makefile')
| -rw-r--r-- | src/chaoskey-v1.0/Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/chaoskey-v1.0/Makefile b/src/chaoskey-v1.0/Makefile index d9944a12..f6b78d07 100644 --- a/src/chaoskey-v1.0/Makefile +++ b/src/chaoskey-v1.0/Makefile @@ -38,6 +38,8 @@ ALTOS_SRC = \ ao_gpio.c \ ao_product.c +VENDOR=AltusMetrum +PROJECT_NAME=ChaosKey PRODUCT=ChaosKey-hw-1.0-sw-$(VERSION) PRODUCT_DEF=-DCHAOSKEY_V_1_0 IDVENDOR=0x1d50 @@ -48,6 +50,7 @@ CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS) -g -Os PROGNAME=chaoskey-v1.0 PROG=$(PROGNAME)-$(VERSION).elf HEX=$(PROGNAME)-$(VERSION).ihx +METAINFO=org.altusmetrum.ChaosKey.metainfo.xml SRC=$(ALTOS_SRC) ao_chaoskey.c OBJ=$(SRC:.c=.o) @@ -62,11 +65,20 @@ ao_product.h: ao-make-product.5c ../Version $(OBJ): $(INC) +%.cab: $(PROG) $(HEX) $(METAINFO) + gcab --create --nopath $@ $(PROG) $(HEX) $(METAINFO) + +cab: $(VENDOR)-$(PROJECT_NAME)-$(VERSION).cab + +check: $(METAINFO) + appstream-util validate-relax $(METAINFO) + distclean: clean clean: rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx rm -f ao_product.h + rm -f *.cab install: |
