source: rtems/make/custom/mcp750.cfg @ 1614be8

4.104.114.84.95
Last change on this file since 1614be8 was 1614be8, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 14, 2001 at 8:44:46 PM

2001-11-14 Joel Sherrill <joel@…>

  • custom/eth_comm.cfg, custom/mbx860_005b.cfg, custom/mbx8xx.cfg, custom/mcp750.cfg, custom/mpc8260ads.cfg, custom/mvme2307.cfg: These are new exception processing model BSPs and thus do not need to define PPC_USE_SPRG.
  • Property mode set to 100644
File size: 3.1 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 section makes the target dependent options file.
17
18#  PPC_VECTOR_FILE_BASE (ppc)
19#     This defines the base address of the exception table.
20#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
21#
22#  PPC_USE_DATA_CACHE (RTEMS PowerPC port)
23#     If defined, then the PowerPC specific code in RTEMS will use
24#     data cache instructions to optimize the context switch code.
25#     This code can conflict with debuggers or emulators.
26#
27
28define make-target-options
29        @echo "#define PPCN_60X_USE_DINK 0"                   >>$@
30        @echo "#define PPCN_60X_USE_NONE 1"                   >>$@
31        @echo "#define PPC_USE_DATA_CACHE 1"                   >>$@
32        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"            >>$@
33endef
34
35#  This contains the compiler options necessary to select the CPU model
36#  and (hopefully) optimize for it.
37#
38# NOTE : cheking egcc 1.1.1 source code shows that the last know processor
39# is the 604 model and that this is the default generation option.
40#
41CPU_CFLAGS = -mcpu=750
42
43# optimize flag: typically -0, could use -O4 or -fast
44# -O4 is ok for RTEMS
45# NOTE2: some level of -O may be actually required by inline assembler (at least
46# -O2 so far.
47# NOTE2 Apparently nobody really knows the status or r2 and r13.
48# As far as I know, small data are pointer impose a very specific compliation
49# model => not used.
50# Currently the sdata2 and sbss2 sections are empty => r2 is not used...
51CFLAGS_OPTIMIZE_V=-O4 -mmultiple -mstring -mstrict-align
52#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions -fvolatile-global -fvolatile -mstrict-align -mcpu=750
53
54# debug flags: typically none, but at least -O1 is required due to this
55# BSP using inlined code
56CFLAGS_DEBUG_V = -O1 -mmultiple -mstring -mstrict-align
57
58# The following is a ld command file which works without using the
59# -specs system in gcc 2.8.  IT HAS NEVER BEEN TESTED WITH THIS BSP!!!
60#       $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
61#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
62#       $(LD) $(XLDFLAGS) -Ttext 0x20000 \
63#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
64
65#       $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \
66#           -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \
67#            $(START_FILE) $(LINK_OBJS) \
68#            $(LD_LIBS) \
69#           -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
70define make-exe
71        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
72           -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
73        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
74        $(SIZE) $(basename $@).nxe
75        $(OBJCOPY) $(basename $@).nxe rtems -O binary -R .comment -S
76        gzip -vf9 rtems
77        $(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \
78        -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \
79        -Map $(basename $@).map && chmod 755 $@
80        rm -f rtems.gz
81endef
82
83# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.