source: rtems/make/custom/mcp750.cfg @ 4cf56006

4.104.114.84.95
Last change on this file since 4cf56006 was 96344c8, checked in by Joel Sherrill <joel.sherrill@…>, on 11/30/99 at 13:49:04

Patch rtems-rc-19991123-rc-0.diff from Ralf Corsepius <corsepiu@…>
which (among other things) converted the mptests to automake.

SUB_DIRS was used instead of SUBDIRS in some Makefile.ins
(apparently a leftover from moving the start* directories)

Addtional major bugs:

  • psxtests/include was empty (incomplete psxtests changes).
  • bogus handling of *.scn in itrontests (screens/sptests vs. screens/itrontests installation dirs)

In addition I have added a few more changes (I couldn't resist)

  • automake support for itrontests
  • OPERATION_COUNT support in tmitrontests/
  • automake support for tmitrontests
  • automake suppport for mptests
  • Some (minor) corrections to several configure.in/Makefile.ams

=> c/src/tests/ is completly under automake control, now.
=> we could start to sort out the structural issues with c/src/tests

(tests/support, stubdr, tools, get "make dist" working)

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