source: rtems/make/custom/ppcn_60x.cfg @ effc2c4

Last change on this file since effc2c4 was effc2c4, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 3, 2000 at 2:44:39 PM

Patch rtems-rc-4.5.0-6-cvs.diff from Ralf Corsepius <corsepiu@…>.
The patch contains:

  • build variants support
  • Reworked make-exe custom/*.cfg for all targets (Should be self-explanatory, may still be incomplete)
  • Several fixes to custom/*.cfgs related to setting debug flags
  • Fixes to some bsp_specs for BSPs which apparently have never been build with debugging before ;)
  • pc386.cfg fix attempts (cf. my mail from earlier today)
  • Updated ampolish (No need to run it, the patch contains the result from having applied it)

Known bugs/deficiencies related to this work:

  • "make [clean|distclean]" support is still incomplete (e.g. "make clean" does not delete all Depends-o-*)
  • Completely untested for linux/posix and hppa.
  • Build failures of i960 BSPs (make VARIANT=DEBUG) - I guess, they are not related to this patch.
  • Successfully tested for all sh, sparc, i386, ppc, m68k BSPs (make VARIANT=DEBUG)
  • make VARIANT=PROFILE not supported by all BSPs (I don't care :)
  • make VARIANT=DEBUG failures below tests/ for some BSPs (e.g. gensh1), because of the tests's binaries being too large to fit into the target memory layout.
  • Property mode set to 100644
File size: 3.9 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=ppc603e
11
12# This is the actual bsp directory used during the build process.
13
14RTEMS_BSP_FAMILY=ppcn_60x
15
16#  This contains the compiler options necessary to select the CPU model
17#  This section makes the target dependent options file.
18
19#  NDEBUG (C library)
20#     if defined asserts do not generate code.  This is commonly used
21#     as a command line option.
22#
23#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
24#     do not pause between screens of output in the rtems tests
25#
26#  RTEMS_DEBUG (RTEMS)
27#     If defined, debug checks in RTEMS and support library code are enabled.
28#
29#  PPCN_60X_USE_DINK           (ppcn_60x_bsp)
30#  PPCN_60X_USE_NONE          (ppcn_60x_bsp)
31#     The Score603e board can be configured with 3 ROM monitors.  Only two
32#     are appropriate for use with RTEMS.  Set exactly one of these to "1"
33#     to indicate which ROM monitor is on the board you are using.
34#
35#  PPC_VECTOR_FILE_BASE (ppc)
36#     This defines the base address of the exception table.
37#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
38#
39#  PPC_ABI (ppc)
40#     This defines the calling convention (Application Binary Interface)
41#     used in this configuration.  EABI is the only one supported.
42#
43#  PPC_ASM (ppc)
44#     This defines the assembly language format used in this configuration.
45#     ELF is the only one supported.
46#
47#  PPC_USE_SPRG (RTEMS PowerPC port)
48#     If defined, then the PowerPC specific code in RTEMS will use some
49#     of the special purpose registers to slightly optimize interrupt
50#     response time.  The use of these registers can conflict with
51#     other tools like debuggers.
52#
53#  PPC_USE_DATA_CACHE (RTEMS PowerPC port)
54#     If defined, then the PowerPC specific code in RTEMS will use
55#     data cache instructions to optimize the context switch code.
56#     This code can conflict with debuggers or emulators.
57#
58
59define make-target-options
60        @echo "/* #define NDEBUG 1 */ "                        >>$@
61        @echo "#define RTEMS_TEST_NO_PAUSE 1"                  >>$@
62        @echo "/* #define RTEMS_DEBUG  1 */"                   >>$@
63        @echo "#define PPCN_60X_USE_DINK 1"                   >>$@
64        @echo "#define PPCN_60X_USE_NONE 0"                   >>$@
65        @echo "#define PPC_USE_DATA_CACHE 1"                   >>$@
66        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"            >>$@
67        @echo "#define PPC_ABI PPC_ABI_EABI"                   >>$@
68        @echo "#define PPC_ASM PPC_ASM_ELF"                    >>$@
69        @echo "#define PPC_USE_SPRG  0"                        >>$@
70endef
71
72#  This contains the compiler options necessary to select the CPU model
73#  and (hopefully) optimize for it.
74#
75CPU_CFLAGS = -mcpu=603
76
77# optimize flag: typically -0, could use -O4 or -fast
78# -O4 is ok for RTEMS
79# NOTE: some level of -O may be actually required by inline assembler
80CFLAGS_OPTIMIZE_V=-O0 -fno-keep-inline-functions -fvolatile-global -fvolatile
81#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions -fvolatile-global -fvolatile
82
83# The following is a linkcmds file which will work without using the
84# -specs system in gcc 2.8.
85#       $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
86#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
87#       $(LD) $(XLDFLAGS) -Ttext 0x20000 \
88#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
89
90#       $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \
91#           -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \
92#            $(START_FILE) $(LINK_OBJS) \
93#            $(LD_LIBS) \
94#           -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
95define make-exe
96        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
97            -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
98        $(NM) -g -n $(basename $@).exe > $(basename $@).num
99        $(SIZE) $(basename $@).exe
100endef
101
102# Miscellaneous additions go here
103
104DRIVER_ARCHITECTURE=vmebus
Note: See TracBrowser for help on using the repository browser.