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

4.104.114.84.95
Last change on this file since acc25ee was acc25ee, checked in by Joel Sherrill <joel.sherrill@…>, on 12/02/99 at 14:31:19

Merged of mcp750 and mvme2307 BSP by Eric Valette <valette@…>.
As part of this effort, the mpc750 libcpu code is now shared with the
ppc6xx.

  • Property mode set to 100644
File size: 4.8 KB
Line 
1#
2#  Config file for a Radstone Technology Plc. PowerPC 60x based VME board
3#
4#  $Id: ppcn_60x.cfg
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=mcp750
15
16#  This section makes the target dependent options file.
17
18#  NDEBUG (C library)
19#     if defined asserts do not generate code.  This is commonly used
20#     as a command line option.
21#
22#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
23#     do not pause between screens of output in the rtems tests
24#
25#  RTEMS_DEBUG (RTEMS)
26#     If defined, debug checks in RTEMS and support library code are enabled.
27#
28#  PPCN_60X_USE_DINK           (ppcn_60x_bsp)
29#  PPCN_60X_USE_NONE          (ppcn_60x_bsp)
30#     The Score603e board can be configured with 3 ROM monitors.  Only two
31#     are appropriate for use with RTEMS.  Set exactly one of these to "1"
32#     to indicate which ROM monitor is on the board you are using.
33#
34#  PPC_VECTOR_FILE_BASE (ppc)
35#     This defines the base address of the exception table.
36#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
37#
38#  PPC_ABI (ppc)
39#     This defines the calling convention (Application Binary Interface)
40#     used in this configuration.  EABI is the only one supported.
41#
42#  PPC_ASM (ppc)
43#     This defines the assembly language format used in this configuration.
44#     ELF is the only one supported.
45#
46#  PPC_USE_SPRG (RTEMS PowerPC port)
47#     If defined, then the PowerPC specific code in RTEMS will use some
48#     of the special purpose registers to slightly optimize interrupt
49#     response time.  The use of these registers can conflict with
50#     other tools like debuggers.
51#
52#  PPC_USE_DATA_CACHE (RTEMS PowerPC port)
53#     If defined, then the PowerPC specific code in RTEMS will use
54#     data cache instructions to optimize the context switch code.
55#     This code can conflict with debuggers or emulators.
56#
57
58define make-target-options
59        @echo "/* #define NDEBUG 1 */ "                        >>$@
60        @echo "#define RTEMS_TEST_NO_PAUSE 1"                  >>$@
61        @echo "/* #define RTEMS_DEBUG  1 */"                   >>$@
62        @echo "#define PPCN_60X_USE_DINK 0"                   >>$@
63        @echo "#define PPCN_60X_USE_NONE 1"                   >>$@
64        @echo "#define PPC_USE_DATA_CACHE 1"                   >>$@
65        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"            >>$@
66        @echo "#define PPC_ABI PPC_ABI_EABI"                   >>$@
67        @echo "#define PPC_ASM PPC_ASM_ELF"                    >>$@
68        @echo "#define PPC_USE_SPRG  1"                        >>$@
69endef
70
71#  This contains the compiler options necessary to select the CPU model
72#  and (hopefully) optimize for it.
73#
74# NOTE : cheking egcc 1.1.1 source code shows that the last know processor
75# is the 604 model and that this is the default generation option.
76#
77# CPU_CFLAGS = -mcpu=750
78
79# optimize flag: typically -0, could use -O4 or -fast
80# -O4 is ok for RTEMS
81# NOTE2: some level of -O may be actually required by inline assembler (at least
82# -O2 so far.
83# NOTE2 Apparently nobody really knows the status or r2 and r13.
84# As far as I know, small data are pointer impose a very specific compliation
85# model => not used.
86# Currently the sdata2 and sbss2 sections are empty => r2 is not used...
87CFLAGS_OPTIMIZE_V=-O4 -mmultiple -mstring -mstrict-align  -mcpu=750
88#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions -fvolatile-global -fvolatile -mstrict-align -mcpu=750
89
90# The following is a ld command file which works without using the
91# -specs system in gcc 2.8.  IT HAS NEVER BEEN TESTED WITH THIS BSP!!!
92#       $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
93#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
94#       $(LD) $(XLDFLAGS) -Ttext 0x20000 \
95#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
96
97#       $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \
98#           -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \
99#            $(START_FILE) $(LINK_OBJS) \
100#            $(LD_LIBS) \
101#           -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
102define make-exe
103        $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
104        $(NM) -g -n $@ > $(basename $@).num
105        $(SIZE) $@
106        $(CP) $@ $(PROJECT_ROOT)/powerpc-rtems/c/mcp750/lib/libbsp/powerpc/mcp750/bootloader/$(ARCH); \
107        cd $(PROJECT_ROOT)/powerpc-rtems/c/mcp750/lib/libbsp/powerpc/mcp750/bootloader; \
108        $(MAKE) bootloader BINARY_LOADED=$(basename $@).exe; \
109        COMPLETE_FILE_NAME=$(basename $@).exe ;\
110        echo $${COMPLETE_FILE_NAME} ;\
111        FILE_NAME=`basename $${COMPLETE_FILE_NAME}` ;\
112        echo $${FILE_NAME} ;\
113        mkdir -p $(PROJECT_ROOT)/$(RTEMS_BSP)/bin ;\
114        $(CP) bootloader $(PROJECT_ROOT)/$(RTEMS_BSP)/bin/$${FILE_NAME}
115endef
116
117# Miscellaneous additions go here
118
119# Let the HWAPI know which set of drivers to build
120DRIVER_ARCHITECTURE=compactpci
Note: See TracBrowser for help on using the repository browser.