1 # Makefile for bootrom, see ../common/Makefile.common for common settings
3 # DO NOT use thumb mode in the phase 1 bootloader since that generates a section with glue code
5 THUMBSRC
= usb.c version.c bootrom.c
6 ASMSRC
= ram-reset.s flash-reset.s
8 # Do not move this inclusion before the definition of {THUMB,ASM,ARM}SRC
9 include ..
/common
/Makefile.common
11 all: $(OBJDIR
)/bootrom.s19
13 $(OBJDIR
)/bootrom.elf
: $(ASMOBJ
) $(ARMOBJ
) $(THUMBOBJ
)
14 $(LD
) -g
-Tldscript-flash
--oformat elf32-littlearm
-Map
=$(patsubst %.elf
,%.map
,$@
) -o
$@
$^
17 $(DELETE
) $(OBJDIR
)$(PATHSEP
)*.o
18 $(DELETE
) $(OBJDIR
)$(PATHSEP
)*.elf
19 $(DELETE
) $(OBJDIR
)$(PATHSEP
)*.s19
20 $(DELETE
) $(OBJDIR
)$(PATHSEP
)*.map
21 $(DELETE
) $(OBJDIR
)$(PATHSEP
)*.d
24 .PHONY
: all clean help
26 @echo Multi-OS Makefile
, you are running on
$(DETECTED_OS
)
27 @echo Possible targets
:
28 @echo
+ all - Make
$(OBJDIR
)/bootrom.s19
, the main bootrom
29 @echo
+ clean - Clean
$(OBJDIR
)