source: rtems/c/src/lib/libbsp/arm/nds/make/custom/nds.cfg @ 0441091

4.104.115
Last change on this file since 0441091 was 0441091, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 30, 2010 at 1:40:13 PM

2010-04-30 Sebastian Huber <sebastian.huber@…>

  • csb336/make/custom/csb336.cfg, csb337/make/custom/csb337.cfg, edb7312/make/custom/edb7312.cfg, gba/make/custom/gba.cfg, gdbarmsim/make/custom/arm920.cfg, gp32/make/custom/gp32.cfg, gumstix/make/custom/gumstix.cfg, lpc32xx/make/custom/lpc32xx_phycore.cfg, nds/make/custom/nds.cfg, rtl22xx/make/custom/rtl22xx.cfg, smdk2410/make/custom/smdk2410.cfg: Use VFP floating point model.
  • Property mode set to 100644
File size: 949 bytes
Line 
1##
2## Config file for Nintendo DS BSP.
3##
4## $Id$
5##
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=arm
10RTEMS_CPU_MODEL=arm9tdmi
11
12#  This contains the compiler options necessary to select the CPU model
13#  and (hopefully) optimize for it.
14#
15CPU_CFLAGS = -mstructure-size-boundary=8 -mcpu=$(RTEMS_CPU_MODEL) -mfpu=vfp -mfloat-abi=soft
16# CPU_CFLAGS += -mthumb-interwork ## -D __THUMB_INTERWORK__ -mthumb
17
18# optimize flag: typically -O2
19#CFLAGS_OPTIMIZE_V = -O0 -ggdb
20CFLAGS_OPTIMIZE_V = -O2
21#CFLAGS_OPTIMIZE_V = -Os
22
23NDSTOOL = $(PROJECT_TOOLS)/ndstool
24
25ifeq ($(RTEMS_MAKEFILE_PATH),)
26        COPROC_ELF_PATH = $(abs_builddir)/../../../lib/libbsp/arm/nds/
27else
28        COPROC_ELF_PATH = $(RTEMS_MAKEFILE_PATH)/lib
29endif
30
31define bsp-post-link
32        $(default-bsp-post-link)
33        $(OBJCOPY) -O binary $(basename $@).exe $(basename $@).bin
34        $(NDSTOOL) -c $(basename $@).nds -9 $(basename $@).bin \
35            -7 $(COPROC_ELF_PATH)/coproc.bin
36        rm -f $(basename $@).bin
37endef
Note: See TracBrowser for help on using the repository browser.