From 2f85fa9d1463a78a2e4b373e626c921e3a30814d Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Fri, 4 Mar 2011 21:50:01 -0300 Subject: [PATCH] atusb/fw/Makefile: abstract host so that one can use HOST=ben instead of jlime --- atusb/fw/Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/atusb/fw/Makefile b/atusb/fw/Makefile index fbefc43..65174ad 100644 --- a/atusb/fw/Makefile +++ b/atusb/fw/Makefile @@ -18,6 +18,7 @@ CFLAGS = -g -Wall -Wextra -Wshadow -Werror -Wno-unused-parameter \ -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes CHIP=atmega32u2 +HOST=jlime AVR_PREFIX = $(BIN_PATH) avr- CC = $(AVR_PREFIX)gcc @@ -102,19 +103,19 @@ version.c: # ----- Programming and device control ---------------------------------------- upload: $(NAME).bin - scp $(NAME).bin jlime: + scp $(NAME).bin $(HOST): prog: - ssh jlime avrdude -F -p $(CHIP) -c nanonote_atusb -e \ + ssh $(HOST) avrdude -F -p $(CHIP) -c nanonote_atusb -e \ -U flash:w:$(NAME).bin:r \ -U lfuse:w:0x60:m # external clock, slow start-up on: - ssh jlime poke 0x10010318 4 + ssh $(HOST) poke 0x10010318 4 off: - ssh jlime poke 0x10010314 4 + ssh $(HOST) poke 0x10010314 4 reset: - ssh jlime poke 0x10010318 2048 - ssh jlime poke 0x10010314 2048 + ssh $(HOST) poke 0x10010318 2048 + ssh $(HOST) poke 0x10010314 2048