source: rtems/make/custom/mrm332.cfg @ e9b4274a

4.104.114.84.95
Last change on this file since e9b4274a was e9b4274a, checked in by Joel Sherrill <joel.sherrill@…>, on May 25, 2001 at 4:34:14 PM

2000-05-25 Matt Cross <profesor@…>

  • New MRM332 BSP for the Mini RoboMind? board based on the 68332 microcontroller designed and build by Mark Castelluccio. For details on the MRM see http://www.robominds.com.
  • .cvsignore, ChangeLog? Makefile.am, README, bsp_specs, clock/.cvsignore, clock/Makefile.am, clock/ckinit.c, configure.in, console/.cvsignore, console/Makefile.am, console/console.c, include/.cvsignore, include/Makefile.am, include/bsp.h, include/mrm332.h, misc/dotests, misc/gdbinit68, misc/interr.c, spurious/.cvsignore, spurious/Makefile.am, spurious/spinit.c, start/.cvsignore, start/Makefile.am, start/start.c, startup/.cvsignore, startup/Makefile.am, startup/bspclean.c, startup/bspstart.c, startup/except_vect_332_ROM.S, startup/linkcmds, startup/linkcmds_ROM, timer/.cvsignore, timer/Makefile.am, timer/timer.c, times, wrapup/.cvsignore, wrapup/Makefile.am: Initial files.
  • Property mode set to 100644
File size: 3.1 KB
Line 
1#
2#  Config file for the mrm332 BSP
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=m68k
10RTEMS_CPU_MODEL=mcpu32
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=mrm332
14
15#  This contains the compiler options necessary to select the CPU model
16#  and (hopefully) optimize for it.
17CPU_CFLAGS = -mcpu32
18
19# optimize flag: typically -0, could use -O4 or -fast, -O4 is ok for RTEMS
20CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
21
22#  This section makes the target dependent options file.
23#  NDEBUG (C library)
24#     if defined asserts do not generate code.  This is commonly used
25#     as a command line option.
26#
27#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
28#     do not pause between screens of output in the rtems tests
29#
30#  RTEMS_DEBUG (RTEMS)
31#     If defined, debug checks in RTEMS and support library code are enabled.
32
33define make-target-options
34        @echo "/* #define NDEBUG 1 */ "                     >>$@
35        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
36        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
37endef
38
39# The following are definitions of make-exe which will work using ld as
40# is currently required.  It is expected that as of gcc 2.8, the end user
41# will be able to override parts of the compilers specs and link using gcc.
42
43ifeq ($(RTEMS_USE_GCC272),yes)
44define make-exe
45        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \
46            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
47        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
48        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
49            $(PACKHEX) > $(basename $@).exe
50        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
51        $(SIZE) $(basename $@).nxe
52endef
53else
54ifeq ($(MRM_IN_ROM),yes)
55# Build a rommable image - move the .data section after the .text section
56# in the image.
57CPU_CFLAGS += -qnolinkcmds -T $(PROJECT_ROOT)/mrm332/lib/linkcmds_ROM
58
59define make-exe
60        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).pxe \
61            $(LINK_OBJS) $(LINK_LIBS)
62        $(OBJCOPY) --adjust-section-vma \
63          .data=`m68k-rtems-objdump --section-headers $(basename $@).pxe | \
64          awk 'function h2d(x) { x=toupper(x); digits=length(x); s=0 ; \
65               for (p=digits; p>0; p--) \
66               s += (16^(p-1)) * ( index("0123456789ABCDEF",\
67                substr(x,1+digits-p,1)) -1 );\
68                return s } ;\
69                /\.text/ { base = $$4 ; size = $$3 };\
70                END { printf("0x%x", h2d(base) + h2d(size)) }'\
71               ` $(basename $@).pxe $(basename $@).nxe
72        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
73        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
74            $(PACKHEX) > $(basename $@).exe
75        $(NM) -g -n $(basename $@).pxe > $(basename $@).pnum
76        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
77        $(SIZE) $(basename $@).nxe
78endef
79else
80define make-exe
81        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
82            $(LINK_OBJS) $(LINK_LIBS)
83        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
84        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
85            $(PACKHEX) > $(basename $@).exe
86        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
87        $(SIZE) $(basename $@).nxe
88endef
89endif
90endif
91
92
93# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.