mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-12-23 03:45:11 +02:00
atusb/fw/Makefile (bindist): new target to upload and describe atusb.bin
This commit is contained in:
parent
7cae01bc0e
commit
e700b81642
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user