source: rtems/make/custom/mvme2307.cfg @ bfc86bcb

4.104.114.84.95
Last change on this file since bfc86bcb was 39607984, checked in by Joel Sherrill <joel.sherrill@…>, on 07/12/00 at 19:23:14

Patch rtems-rc-20000712-1-cvs.diff from Ralf Corsepius <corsepiu@…>
that is yet another multilib-related structual cleanup patch:

Changes:

  • Make RTEMS_DEBUG a global per-cpu configuration option
  • Remove RTEMS_DEBUG from targopts.h
  • Add a global --enable-rtems-debug option disabled by default.
  • Add RTEMS_DEBUG to cpuopts.h
  • Remove all references to RTEMS_DEBUG from custom/*.cfg

Notes:

  • RTEMS_DEBUG is set in c/src/exec/configure.in only (RTEMS_CHECK_RTEMS_DEBUG) and should be defined in cpuopts.h only. BSPs should not redefine it, but use the value being provided by cpuopts.h. => With multilibs, users have to choose: Either enable RTEMS_DEBUG

for all BSPs and CPU_MODELs of a cpu or not.

  • Only few BSPs had RTEMS_DEBUG enabled, therefore I set the default to disabled.
  • This patch influences the per-BSP building scheme. Existing BSPs which set RTEMS_DEBUG in their make-target-options rule might have problems at runtime.
  • Property mode set to 100644
File size: 3.7 KB
Line 
1#
2#  Config file for the PowerPC 604 based mvme2307
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=powerpc
10RTEMS_CPU_MODEL=mpc604
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#  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#  CONSOLE_USE_POLLED     (mvme2307_bsp)
26#  CONSOLE_USE_INTERRUPTS (mvme2307_bsp)
27#     The mvme2307 console driver has the structure to operate in either
28#     polled or interrupt mode.  However both modes only trap to the
29#     monitor currently.
30#
31#  PPC_VECTOR_FILE_BASE (PowerPC)
32#     This defines the base address of the exception table.
33#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
34#
35#  PPC_USE_SPRG (RTEMS PowerPC port)
36#     If defined, then the PowerPC specific code in RTEMS will use some
37#     of the special purpose registers to slightly optimize interrupt
38#     response time.  The use of these registers can conflict with
39#     other tools like debuggers.
40#
41
42define make-target-options
43        @echo "/* #define NDEBUG 1 */ "                        >>$@
44        @echo "#define RTEMS_TEST_NO_PAUSE 1"                  >>$@
45        @echo "#define PPCN_60X_USE_DINK 0"                   >>$@
46        @echo "#define PPCN_60X_USE_NONE 1"                   >>$@
47        @echo "#define PPC_USE_DATA_CACHE 1"                   >>$@
48        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"            >>$@
49        @echo "#define PPC_USE_SPRG  1"
50endef
51
52#  This contains the compiler options necessary to select the CPU model
53#  and (hopefully) optimize for it.
54#
55CPU_CFLAGS = -mcpu=604 -mmultiple -mstring -mstrict-align
56
57# optimize flag: typically -0, could use -O4 or -fast
58# -O4 is ok for RTEMS
59# NOTE: some level of -O may be actually required by inline assembler
60#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
61CFLAGS_OPTIMIZE_V = -O4
62
63# debug flags: typically none, but at least -O1 is required due to this
64# BSP using inlined code
65CFLAGS_DEBUG_V = -O1
66
67# profile flags: typically none, but at least -O1 is required due to this
68# BSP using inlined code
69CFLAGS_PROFILE_V = -O1   
70
71# The following is a linkcmds file which will work without using the
72# -specs system in gcc 2.8.
73#       $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
74#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
75#       $(LD) $(XLDFLAGS) -Ttext 0x20000 \
76#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
77
78#       $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \
79#           -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \
80#            $(START_FILE) $(LINK_OBJS) \
81#            $(LD_LIBS) \
82#           -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
83define make-exe
84        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
85        $(NM) -g -n $@ > $(basename $@).num
86        $(SIZE) $@
87#    The following commands make a bootable image but will not work outside
88#    the build tree.
89#       test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin
90#       $(CP) $@ $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader/$(ARCH); \
91#       ( cd $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader; \
92#       $(MAKE) bootloader BINARY_LOADED=$@; )
93#       f=`basename $@ .exe`; \
94#        cp $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader/bootloader \
95#           ${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).exe \
96#       && chmod 755 \
97#         ${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).exe
98endef
99
100
101# Miscellaneous additions go here
102
103# No start file
104START_BASE=
Note: See TracBrowser for help on using the repository browser.