source: rtems/make/custom/arm_bare_bsp.cfg @ 48ad47cc

4.104.114.84.95
Last change on this file since 48ad47cc was 48ad47cc, checked in by Joel Sherrill <joel.sherrill@…>, on 03/01/01 at 20:46:21

2001-02-22 Ralf Corsepius <corsepiu@…>

  • configure.in: Reworked for Canadian Cross support.
  • Makefile.am: Reflect changes to configure.in.
  • config.guess, config.sub: Update from subversions.gnu.org.
  • README.cdn-X: New file.
  • tools/Makefile.am: Remove build, tools from SUBDIRS.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1#
2#  Config file for  ARM BOARD --
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=arm
10RTEMS_CPU_MODEL=arm7tdmi
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=arm_bare_bsp
14
15#  This section makes the target dependent options file.
16define make-target-options
17endef
18
19#  This contains the compiler options necessary to select the CPU model
20#  and (hopefully) optimize for it.
21#
22#CPU_CFLAGS = -mcpu=arm7tdmi
23CPU_CFLAGS =
24
25# optimize flag: typically -0, could use -O4 or -fast
26# -O4 is ok for RTEMS
27# NOTE2: some level of -O may be actually required by inline assembler (at least
28# -O2 so far.
29CFLAGS_OPTIMIZE_V=
30#CFLAGS_OPTIMIZE_V=-O4 -mmultiple -mstring -mstrict-align
31
32# debug flags: typically none, but at least -O1 is required due to this
33# BSP using inlined code
34CFLAGS_DEBUG_V = -O1
35#CFLAGS_DEBUG_V = -O1 -mmultiple -mstring -mstrict-align
36
37define make-exe
38        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).obj \
39            $(LINK_OBJS) $(LINK_LIBS)
40        $(OBJCOPY) -O binary \
41            --only-section=.text \
42            --only-section=.data \
43            --only-section=.rodata \
44            --strip-unneeded $(basename $@).obj $(basename $@).bin
45        $(NM) -g -n $(basename $@).obj > $(basename $@).num
46        $(SIZE) $(basename $@).obj
47        test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin
48        f=`basename $@ .exe`; \
49        cp $(basename $@).bin  $(basename $@).exe
50        cp $(basename $@).bin  ${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).exe
51
52endef
53
54# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.