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
20 # These are to be compiled in ARM mode
25 # Do not move this inclusion before the definition of {THUMB,ASM,ARM}SRC
26 include ..
/common
/Makefile.common
28 all: $(OBJDIR
)/osimage.s19
$(OBJDIR
)/fpgaimage.s19
30 $(OBJDIR
)/fpga.o
: fpga.bit
31 $(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
$^
$@
33 $(OBJDIR
)/fullimage.elf
: $(OBJDIR
)/fpga.o
$(THUMBOBJ
) $(ARMOBJ
) $(ARMLIB
)/libgcc.a
34 $(LD
) -g
-Tldscript
-Map
=$(patsubst %.elf
,%.map
,$@
) -o
$@
$^
36 $(OBJDIR
)/fpgaimage.elf
: $(OBJDIR
)/fullimage.elf
37 $(OBJCOPY
) -F elf32-littlearm
--only-section fpgaimage
$^
$@
39 $(OBJDIR
)/osimage.elf
: $(OBJDIR
)/fullimage.elf
40 $(OBJCOPY
) -F elf32-littlearm
--remove-section fpgaimage
$^
$@
43 $(DELETE
) $(OBJDIR
)$(PATHSEP
)*.o
44 $(DELETE
) $(OBJDIR
)$(PATHSEP
)*.elf
45 $(DELETE
) $(OBJDIR
)$(PATHSEP
)*.s19
46 $(DELETE
) $(OBJDIR
)$(PATHSEP
)*.map
47 $(DELETE
) $(OBJDIR
)$(PATHSEP
)*.d
50 .PHONY
: all clean help
52 @echo Multi-OS Makefile
, you are running on
$(DETECTED_OS
)
53 @echo Possible targets
:
54 @echo
+ all - Make both
:
55 @echo
+ $(OBJDIR
)/osimage.s19
- The OS image
56 @echo
+ $(OBJDIR
)/fpgaimage.s19
- The FPGA image
57 @echo
+ clean - Clean
$(OBJDIR
)