diff options
author | Keith Packard <keithp@keithp.com> | 2014-04-06 20:14:49 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-04-06 20:14:49 -0700 |
commit | 350d941a825d0271933de0bfdea82d3af5744c21 (patch) | |
tree | 4335b97a16901ec25636d8c96166f854ec9da01b | |
parent | 2427eae5f3b429d302fbe14f708dcbc68c851954 (diff) |
altos: Provide stable binaries for MicroPeak
Publish MicroPeak .hex file to LLC repo and install it from there,
rather than rebuilding it locally. This ensures that the installed
bits don't depend on local configuration of any kind.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | src/micropeak/Makefile | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/micropeak/Makefile b/src/micropeak/Makefile index f4c57076..335a96e5 100644 --- a/src/micropeak/Makefile +++ b/src/micropeak/Makefile @@ -8,6 +8,9 @@ vpath make-altitude-pa ../util include ../avr/Makefile.defs +PUBLISH_DIR=$(HOME)/altusmetrumllc/Binaries +PUBLISH_FILE=$(PUBLISH_DIR)/$(PROG)-$(VERSION).hex + MCU=attiny85 DUDECPUTYPE=t85 #PROGRAMMER=stk500v2 -P usb @@ -81,8 +84,8 @@ $(PROG).hex: $(PROG) load: $(PROG).hex $(LOADCMD) $(LOADARG)$(PROG).hex -load-slow: $(PROG).hex - $(LOADCMD) $(LOADSLOW) $(LOADARG)$(PROG).hex +#load-slow: $(PROG).hex +# $(LOADCMD) $(LOADSLOW) $(LOADARG)$(PROG).hex ao_product.h: ao-make-product.5c ../Version $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@ @@ -98,6 +101,16 @@ clean: rm -f *.o $(PROG) $(PROG).hex rm -f ao_product.h + +publish: $(PROG).hex + cp -a $(PROG).hex $(PUBLISH_FILE) + +load-product: + $(LOADCMD) $(LOADARG)$(PUBLISH_FILE) + +load-product-slow: + $(LOADCMD) $(LOADSLOW) $(LOADARG)$(PUBLISH_FILE) + ../altitude-pa.h: make-altitude-pa nickle $< > $@ |