source: rtems/make/custom/mcp750.cfg @ 93d20478

4.104.114.84.95
Last change on this file since 93d20478 was 93d20478, checked in by Joel Sherrill <joel.sherrill@…>, on 11/21/01 at 18:39:06

2001-11-21 Ralf Corsepius <corsepiu@…>

  • custom/mvme2307.cfg: Reflect changes to motorola_powerpc/configure.ac.
  • custom/mcp750.cfg: Ditto.
  • Property mode set to 100644
File size: 2.4 KB
Line 
1#
2#  Config file for Motorola MCP750 -- a MPC750 CompactPCI board
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=powerpc
10RTEMS_CPU_MODEL=mpc750
11RTEMS_PPC_EXCEPTION_PROCESSING_MODEL=new
12
13# This is the actual bsp directory used during the build process.
14RTEMS_BSP_FAMILY=motorola_powerpc
15
16#  This contains the compiler options necessary to select the CPU model
17#  and (hopefully) optimize for it.
18#
19# NOTE : cheking egcc 1.1.1 source code shows that the last know processor
20# is the 604 model and that this is the default generation option.
21#
22CPU_CFLAGS = -mcpu=750
23
24# optimize flag: typically -0, could use -O4 or -fast
25# -O4 is ok for RTEMS
26# NOTE2: some level of -O may be actually required by inline assembler (at least
27# -O2 so far.
28# NOTE2 Apparently nobody really knows the status or r2 and r13.
29# As far as I know, small data are pointer impose a very specific compliation
30# model => not used.
31# Currently the sdata2 and sbss2 sections are empty => r2 is not used...
32CFLAGS_OPTIMIZE_V=-O4 -mmultiple -mstring -mstrict-align
33#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions -fvolatile-global -fvolatile -mstrict-align -mcpu=750
34
35# debug flags: typically none, but at least -O1 is required due to this
36# BSP using inlined code
37CFLAGS_DEBUG_V = -O1 -mmultiple -mstring -mstrict-align
38
39# The following is a ld command file which works without using the
40# -specs system in gcc 2.8.  IT HAS NEVER BEEN TESTED WITH THIS BSP!!!
41#       $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
42#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
43#       $(LD) $(XLDFLAGS) -Ttext 0x20000 \
44#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
45
46#       $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \
47#           -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \
48#            $(START_FILE) $(LINK_OBJS) \
49#            $(LD_LIBS) \
50#           -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
51define make-exe
52        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
53           -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
54        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
55        $(SIZE) $(basename $@).nxe
56        $(OBJCOPY) $(basename $@).nxe rtems -O binary -R .comment -S
57        gzip -vf9 rtems
58        $(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \
59        -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \
60        -Map $(basename $@).map && chmod 755 $@
61        rm -f rtems.gz
62endef
63
64# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.