1 # Makefile for armsrc, see ../common/Makefile.common for common settings
5 # Add the "-DWITH_LCD" flag in APP_CLFAGS to add support for LCD
6 # and add SRC_LCD to THUMBSRC
9 SRC_LCD
= fonts.c LCD.c
19 # These are to be compiled in ARM mode
24 # Do not move this inclusion before the definition of {THUMB,ASM,ARM}SRC
25 include ..
/common
/Makefile.common
27 all: $(OBJDIR
)/osimage.s19
$(OBJDIR
)/fpgaimage.s19
29 $(OBJDIR
)/fpga.o
: fpga.bit
30 $(OBJCOPY
) -O elf32-littlearm
-I binary
-B arm
--redefine-sym _binary____fpga_fpga_bit_start
=_binary_fpga_bit_start
--redefine-sym _binary____fpga_fpga_bit_end
=_binary_fpga_bit_end
--prefix-sections
=fpga_bit
$^
$@
32 $(OBJDIR
)/fullimage.elf
: $(VERSIONOBJ
) $(OBJDIR
)/fpga.o
$(THUMBOBJ
) $(ARMOBJ
) $(ARMLIB
)/libgcc.a
33 $(LD
) -g
-Tldscript
-Map
=$(patsubst %.elf
,%.map
,$@
) -o
$@
$^
35 $(OBJDIR
)/fpgaimage.elf
: $(OBJDIR
)/fullimage.elf
36 $(OBJCOPY
) -F elf32-littlearm
--only-section .fpgaimage
$^
$@
38 $(OBJDIR
)/osimage.elf
: $(OBJDIR
)/fullimage.elf
39 $(OBJCOPY
) -F elf32-littlearm
--remove-section .fpgaimage
$^
$@
42 $(DELETE
) $(OBJDIR
)$(PATHSEP
)*.o
43 $(DELETE
) $(OBJDIR
)$(PATHSEP
)*.elf
44 $(DELETE
) $(OBJDIR
)$(PATHSEP
)*.s19
45 $(DELETE
) $(OBJDIR
)$(PATHSEP
)*.map
46 $(DELETE
) $(OBJDIR
)$(PATHSEP
)*.d
49 .PHONY
: all clean help
51 @echo Multi-OS Makefile
, you are running on
$(DETECTED_OS
)
52 @echo Possible targets
:
53 @echo
+ all - Make both
:
54 @echo
+ $(OBJDIR
)/osimage.s19
- The OS image
55 @echo
+ $(OBJDIR
)/fpgaimage.s19
- The FPGA image
56 @echo
+ clean - Clean
$(OBJDIR
)