source: rtems/make/custom/p4000.cfg @ 39607984

4.104.114.84.95
Last change on this file since 39607984 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: 1.8 KB
Line 
1#
2#  Config file for the algorithmics p4000 evaluation board
3#
4#  $Id$
5#
6
7# NOTE: this file is broken !
8
9CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3
10
11# This is the actual bsp directory used during the build process.
12RTEMS_BSP_FAMILY=p4000
13
14#  This section makes the target dependent options file.
15
16#  NDEBUG (C library)
17#     if defined asserts do not generate code.  This is commonly used
18#     as a command line option.
19#
20#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
21#     do not pause between screens of output in the rtems tests
22#
23
24define make-target-options
25        @echo "/* #define NDEBUG 1 */ "                     >>$@
26        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
27endef
28
29
30# optimize flag: typically -0, could use -O4 or -fast
31# -O4 is ok for RTEMS
32CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
33
34# The following are definitions of make-exe which will work using ld as
35# is currently required.  It is expected that as of gcc 2.8, the end user
36# will be able to override parts of the compilers specs and link using gcc.
37
38ifeq ($(RTEMS_USE_GCC272),yes)
39define make-exe
40        $(CC) $(LDFLAGS) -nostdlib -o $(basename $@).exe \
41            -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_OBJS) $(LINK_LIBS) $(LD_PATHS:%=-L %)
42        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
43        $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
44        $(RM) $(basename $@).srec1
45        $(NM) -n $(basename $@).exe > $(basename $@).num
46        $(SIZE) $(basename $@).exe
47endef
48else
49define make-exe
50        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
51            $(LINK_OBJS) $(LINK_LIBS)
52        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
53        $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
54        $(RM) $(basename $@).srec1
55        $(NM) -n $(basename $@).exe > $(basename $@).num
56        $(SIZE) $(basename $@).exe
57endef
58endif
59
60# Miscellaneous additions go here
61
Note: See TracBrowser for help on using the repository browser.