mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-17 23:15:02 +02:00
atusb/fw/Makefile (bindist): new target to upload and describe atusb.bin
This commit is contained in:
parent
c47f52d6ca
commit
1ad8683858
@ -61,7 +61,7 @@ endif
|
|||||||
|
|
||||||
# ----- Rules -----------------------------------------------------------------
|
# ----- 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
|
.PHONY: prog-app prog-read on off reset
|
||||||
|
|
||||||
all: $(NAME).bin boot.hex
|
all: $(NAME).bin boot.hex
|
||||||
@ -135,6 +135,19 @@ boot-%.o: usb/%.c
|
|||||||
$(CC) $(CFLAGS) -DBOOT_LOADER -Os -o $@ -c $<
|
$(CC) $(CFLAGS) -DBOOT_LOADER -Os -o $@ -c $<
|
||||||
$(MKDEP)
|
$(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 ----------------------------------------
|
# ----- Programming and device control ----------------------------------------
|
||||||
|
|
||||||
upload: $(NAME).bin boot.hex
|
upload: $(NAME).bin boot.hex
|
||||||
|
Loading…
Reference in New Issue
Block a user