Date:2011-07-12 10:39:49 (9 years 1 month ago)
Author:Werner Almesberger
Commit:e700b81642319d419b4a86f8825eb08f6a2f0af8
Message:atusb/fw/Makefile (bindist): new target to upload and describe atusb.bin

Files: atusb/fw/Makefile (2 diffs)

Change Details

atusb/fw/Makefile
6161
6262# ----- Rules -----------------------------------------------------------------
6363
64.PHONY: all clean upload prog dfu update version.c
64.PHONY: all clean upload prog dfu update version.c bindist
6565.PHONY: prog-app prog-read on off reset
6666
6767all: $(NAME).bin boot.hex
...... 
135135        $(CC) $(CFLAGS) -DBOOT_LOADER -Os -o $@ -c $<
136136        $(MKDEP)
137137
138# ----- Distribution ----------------------------------------------------------
139
140BINDIST_BASE=http://downloads.qi-hardware.com/people/werner/wpan/bindist
141ATUSB_BIN_NAME=atusb-`git rev-parse HEAD | cut -c 1-7`.bin
142
143bindist:
144        qippl atusb.bin wpan/bindist/$(ATUSB_BIN_NAME)
145        @echo $(BINDIST_BASE)/$(ATUSB_BIN_NAME)
146        @echo md5sum: `md5sum atusb.bin | sed 's/ .*//'`
147        @echo atrf-id: \
148          `sed '/.*number = \(.*\);/s//#\1/p;d' version.c` \
149          `sed '/.*date = "\(.*\)";/s//\1/p;d' version.c`
150
138151# ----- Programming and device control ----------------------------------------
139152
140153upload: $(NAME).bin boot.hex

Archive Download the corresponding diff file



interactive