tAdd targets for firmware and testing - lego_film_processor - software for rotary photographic film processor with Lego Mindstorms RCX (HTM) git clone git://src.adamsgaard.dk/lego_film_processor (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit b8909fbc53bfccfb57ef79d9fda901a6a6d8b73d (DIR) parent 975747bde9ff5ad4fce8e7fedede0c43a4d28bff (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Fri, 12 Jul 2019 15:51:09 +0200 Add targets for firmware and testing Diffstat: M Makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) --- (DIR) diff --git a/Makefile b/Makefile t@@ -1,15 +1,29 @@ OUT = lego_jobo.rcx +IRTOWER = /dev/ttyUSB0 NQC = nqc default: $(OUT) upload: $(OUT:.rcx=.nqc) - sudo nqc -S/dev/ttyUSB0 -d $< + sudo nqc -S$(IRTOWER) -d $< %.rcx: %.nqc $(NQC) $< +upload_firmware: firm0332.lgo + sudo nqc -S$(IRTOWER) -firmware $< + +%.lgo: %.zip + unzip $< + touch $@ + +firm0332.zip: + curl -OL http://pbrick.info/wp-content/uploads/2013/10/firm0332.zip + +test: + sudo nqc -S$(IRTOWER) -raw 5105 + clean: $(RM) *.rcx -.PHONY: clean upload +.PHONY: clean upload upload_firmware test