Skip to content

Commit

Permalink
Merge pull request #90 from zdebanos/nuttx-template-makefile
Browse files Browse the repository at this point in the history
CodeGen/templates/nuttx.tmf: generate a raw binary executable
  • Loading branch information
robertobucher authored Oct 11, 2024
2 parents b4552ea + 8958686 commit 2c35228
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CodeGen/templates/nuttx.tmf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MODEL = $$MODEL$$
all: ../$(MODEL).elf ../$(MODEL)
all: ../$(MODEL).elf ../$(MODEL).bin ../$(MODEL)

# Enable or define during make invocation to embed content of the specified
# directory into ROM filesystem mounted into /etc on the target
Expand Down Expand Up @@ -179,5 +179,9 @@ $(MAIN).c: $(MAINDIR)/$(MAIN).c $(MODEL).c
../$(MODEL).hex : ../$(MODEL)
$(OBJCOPY) $(OBJCOPYARGS) -O ihex $< $@

../$(MODEL).bin : ../$(MODEL)
$(OBJCOPY) $(OBJCOPYARGS) -O binary $< $@
@echo "### Created raw binary: $(MODEL).bin"

clean:
@$(RM) $(FILES_TO_CLEAN)

0 comments on commit 2c35228

Please sign in to comment.