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

4.115
Last change on this file since 7b46d7a was 7b46d7a, checked in by Sebastian Huber <sebastian.huber@…>, on Aug 15, 2011 at 8:12:49 AM

2011-08-15 Julien Delange <julien.delange@…>

  • irq/irq.c: Removed printk() before the interrupt initialization because it somehow destroys the interrupt context.
  • make/custom/nds.cfg: Enable Thumb interwork.
  • startup/bspstart.c: Set default exception handler.
  • Property mode set to 100644
File size: 947 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
16CPU_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.