source: rtems/make/custom/ppcn_60x.cfg @ 1896a650

4.104.114.84.95
Last change on this file since 1896a650 was 1896a650, checked in by Joel Sherrill <joel.sherrill@…>, on 07/30/99 at 17:52:50

Patch from Ralf Corsepius <corsepiu@…>:

The main topic is replacing the hard-coded values for HAS_MP and
HAS_RDBG in custom/*.cfg with per-bsp configuration-time autoconf checks
(This is the patch I had mentioned before earlier this week).

CHANGES

  • HAS_MP removed from custom/*.cfg, replaced with configuration time autoconf check
  • HAS_RDBG removed from custom/*.cfg, replaced with configuration-time autoconf check
  • NEW: c/src/make/bsp.cfg.in, takes configuration-time checked per-bsp values (i.e. HAS_MP, HAS_RDBG), gets installed as $(prefix)/<bsp>/make/bsp.cfg
  • NEW: default.cfg includes bsp.cfg - this change is backward compatible.
  • IMPORT_SRC: apply VPATH instead for ts_386ex/i386ex subdirectory Makefile.ins
  • HACK: a bug in acpolish mis-handles addtions to makefile variables which are enclosed in gmake conditionals: c/src/lib/libbsp/m68k/ods68302/start302/Makefile.in
  • Apply inline_dir, HAS_MP and HAS_RDBG for avoiding configuration of unneeded subdirectories in various configure.in files.
  • Several minor changes in Makefile.ins and configure.ins, wrt. to the order of including *.cfg and defining Makefile variables

APPLYING THE PATCH:

patch -p1 < rtems-rc-19990709-4.diff
./autogen

  • 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        $(CC) $(CPPFLAGS) $(CFLAGS) \
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
104# No start file
105START_BASE=
106
107DRIVER_ARCHITECTURE=vmebus
Note: See TracBrowser for help on using the repository browser.