source: rtems/make/custom/mrm332.cfg @ 19c7f30b

4.104.115
Last change on this file since 19c7f30b was 84fff68d, checked in by Chris Johns <chrisj@…>, on 06/11/08 at 08:17:27

hris Johns <chrisj@…>

  • custom/av5282.cfg, custom/csb360.cfg, custom/gen68302.cfg, custom/gen68340.cfg, custom/gen68360.cfg, custom/mcf5206elite.cfg, custom/mcf5235.cfg, custom/mrm332.cfg, custom/mvme136.cfg, custom/mvme147.cfg, custom/mvme162.cfg, custom/mvme162lx.cfg, custom/mvme167.cfg, custom/ods68302.cfg, custom/sim68000.cfg, custom/simcpu32.cfg, custom/uC5282.cfg: Change CCFLAGS to use the -mcpu= option for Coldfires now supported in GCC 4.3.0.

2008-06-10 Matthew Riek <matthew.riek@…>

  • custom/mcf52235.cfg: New.
  • Property mode set to 100644
File size: 1.7 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=m68332
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 = -mcpu=cpu32
18
19# optimize flag: typically -O2
20CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
21
22ifeq ($(MRM_IN_ROM),yes)
23# Build a rommable image - move the .data section after the .text section
24# in the image.
25CPU_CFLAGS += -qnolinkcmds -T $(exec_prefix)/mrm332/lib/linkcmds_ROM
26endif
27
28ifeq ($(MRM_IN_ROM),yes)
29define bsp-post-link
30        $(OBJCOPY) --adjust-section-vma \
31          .data=`m68k-rtems-objdump --section-headers $(basename $@).pxe | \
32          awk 'function h2d(x) { x=toupper(x); digits=length(x); s=0 ; \
33               for (p=digits; p>0; p--) \
34               s += (16^(p-1)) * ( index("0123456789ABCDEF",\
35                substr(x,1+digits-p,1)) -1 );\
36                return s } ;\
37                /\.text/ { base = $$4 ; size = $$3 };\
38                END { printf("0x%x", h2d(base) + h2d(size)) }'\
39               ` $(basename $@).pxe $(basename $@).exe
40        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec
41        sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \
42            $(PACKHEX) > $(basename $@)$(DOWNEXT)
43        $(NM) -g -n $(basename $@).pxe > $(basename $@).pnum
44        rm -f $(basename $@).srec $(basename $@).srec
45        $(default-bsp-post-link)
46endef
47else
48define bsp-post-link
49        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec
50        sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \
51            $(PACKHEX) > $(basename $@)$(DOWNEXT)
52        rm -f $(basename $@).srec
53        $(default-bsp-post-link)
54endef
55endif
Note: See TracBrowser for help on using the repository browser.