1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-07-01 03:33:17 +03:00

atusb/fw/Makefile (bindist): new target to upload and describe atusb.bin

This commit is contained in:
Werner Almesberger 2011-07-12 05:39:49 -03:00
parent 7cae01bc0e
commit e700b81642

View File

@ -61,7 +61,7 @@ endif
# ----- Rules -----------------------------------------------------------------
.PHONY: all clean upload prog dfu update version.c
.PHONY: all clean upload prog dfu update version.c bindist
.PHONY: prog-app prog-read on off reset
all: $(NAME).bin boot.hex
@ -135,6 +135,19 @@ boot-%.o: usb/%.c
$(CC) $(CFLAGS) -DBOOT_LOADER -Os -o $@ -c $<
$(MKDEP)
# ----- Distribution ----------------------------------------------------------
BINDIST_BASE=http://downloads.qi-hardware.com/people/werner/wpan/bindist
ATUSB_BIN_NAME=atusb-`git rev-parse HEAD | cut -c 1-7`.bin
bindist:
qippl atusb.bin wpan/bindist/$(ATUSB_BIN_NAME)
@echo $(BINDIST_BASE)/$(ATUSB_BIN_NAME)
@echo md5sum: `md5sum atusb.bin | sed 's/ .*//'`
@echo atrf-id: \
`sed '/.*number = \(.*\);/s//#\1/p;d' version.c` \
`sed '/.*date = "\(.*\)";/s//\1/p;d' version.c`
# ----- Programming and device control ----------------------------------------
upload: $(NAME).bin boot.hex