source: rtems/make/custom/mcp750.cfg @ fdfa5b9

4.104.114.84.95
Last change on this file since fdfa5b9 was fdfa5b9, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 3, 2001 at 6:46:31 PM

2001-01-03 Emmanuel Raguet <raguet@…>

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