From dc4de8365de5829b587a845e0517e8c5fc8c9e29 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 19 Sep 2022 09:20:23 -0700 Subject: [PATCH] easymini-v3.0: Create combined .ihx file for testing This doesn't set the serial number, so it's not useful for production, but it should at least provide an easy way to check a board. Signed-off-by: Keith Packard --- src/easymini-v3.0/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/easymini-v3.0/Makefile b/src/easymini-v3.0/Makefile index 681c2956..fa4114fd 100644 --- a/src/easymini-v3.0/Makefile +++ b/src/easymini-v3.0/Makefile @@ -56,15 +56,23 @@ CFLAGS = $(PRODUCT_DEF) $(LPC_CFLAGS) PROGNAME=easymini-v3.0 PROG=$(PROGNAME)-$(VERSION).elf HEX=$(PROGNAME)-$(VERSION).ihx +FLASH_PROG=flash-loader/$(PROGNAME)-altos-flash-$(VERSION).elf +BOTH_HEX=$(PROGNAME)-combined-$(VERSION).ihx SRC=$(ALTOS_SRC) ao_easymini.c OBJ=$(SRC:.c=.o) -all: $(PROG) $(HEX) +all: $(PROG) $(HEX) $(BOTH_HEX) $(PROG): Makefile $(OBJ) altos.ld $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS) +$(BOTH_HEX): $(PROG) $(FLASH_PROG) + ../../ao-tools/ao-elftohex/ao-elftohex --output=$@ $(FLASH_PROG) $(PROG) + +$(FLASH_PROG): FRC + +cd flash-loader && make + $(OBJ): $(INC) load: $(PROG) @@ -79,3 +87,5 @@ clean: install: uninstall: + +FRC: -- 2.30.2