Skip to content

Commit 4da8e04

Browse files
committed
src/easymini-2.0: Add combined .dfu file for Seeed testing
Provide a combined .dfu for testing EasyMini at Seeed. This checks the baro sensor (via POST) and SoC. Signed-off-by: Keith Packard <[email protected]>
1 parent 9444513 commit 4da8e04

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/easymini-v2.0/Makefile

+13-1
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,25 @@ CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS)
5858
PROGNAME=easymini-v2.0
5959
PROG=$(PROGNAME)-$(VERSION).elf
6060
HEX=$(PROGNAME)-$(VERSION).ihx
61+
FLASH_PROG=flash-loader/$(PROGNAME)-altos-flash-$(VERSION).elf
62+
BOTH_DFU=$(PROGNAME)-combined-$(VERSION).dfu
63+
64+
MAKEBIN=$(TOPDIR)/../ao-tools/ao-makebin/ao-makebin
6165

6266
SRC=$(ALTOS_SRC) ao_easymini.c
6367
OBJ=$(SRC:.c=.o)
6468

65-
all: $(PROG) $(HEX)
69+
all: $(PROG) $(HEX) $(BOTH_DFU)
6670

6771
$(PROG): Makefile $(OBJ)
6872
$(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
6973

74+
$(BOTH_DFU): $(PROG) $(FLASH_PROG)
75+
$(MAKEBIN) --dfu --output=$@ --base=$(FLASH_ADDR) $(FLASH_PROG) $(PROG)
76+
77+
$(FLASH_PROG): FRC
78+
+cd flash-loader && make
79+
7080
$(OBJ): $(INC)
7181

7282
distclean: clean
@@ -78,3 +88,5 @@ clean:
7888
install:
7989

8090
uninstall:
91+
92+
FRC:

0 commit comments

Comments
 (0)