source: rtems/make/custom/ts_386ex.cfg @ 123d4b7d

4.104.114.84.95
Last change on this file since 123d4b7d was 123d4b7d, checked in by Joel Sherrill <joel.sherrill@…>, on 05/14/99 at 14:34:39

Removed -fomit-frame-pointer from all i386 BSPs since it breaks C++
exceptions and makes debug stack traces impossible.

  • Property mode set to 100644
File size: 3.0 KB
Line 
1#
2#  Config file for the ts-386ex BSP
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=i386
10RTEMS_CPU_MODEL=i386_nofp
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=ts_386ex
14
15#  This contains the compiler options necessary to select the CPU model
16#  and (hopefully) optimize for it. Enables software floating-point
17#  emulation since we don't have a i387 co-processor.
18#
19CPU_CFLAGS =-msoft-float -mno-fp-ret-in-387
20
21# optimize flag: typically -0, could use -O4 or -fast
22# -O4 is ok for RTEMS
23# -fomit-frame-pointer breaks debugging and C++ exceptions
24CFLAGS_OPTIMIZE_V=-O4
25
26# This target does support the TCP/IP stack so honour requests
27# to enable it.
28HAS_NETWORKING=yes
29
30#  This section makes the target dependent options file.
31
32#  NDEBUG (C library)
33#     if defined asserts do not generate code.  This is commonly used
34#     as a command line option.
35#
36#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
37#     do not pause between screens of output in the rtems tests
38#
39#  RTEMS_DEBUG (RTEMS)
40#     If defined, debug checks in RTEMS and support library code are enabled.
41#
42#  BSP_DEBUG (BSP)
43#     Enables some debugging in the BSP package.
44#
45#  LOAD_RTC_AT_START (BSP)
46#     Initialize RTC and load into system clock at startup. This will break
47#     some tests.
48
49define make-target-options
50        @echo "/* #define NDEBUG 1 */ "                 >>$@
51        @echo "#define RTEMS_TEST_NO_PAUSE 1"           >>$@
52        @echo "#define RTEMS_DEBUG  1"                  >>$@
53        @echo "#define UARTDEBUG  1"                    >>$@
54        @echo "#define BSP_DEBUG  1"                    >>$@
55        @echo "#define LOAD_RTC_AT_START  1"            >>$@
56endef
57
58#  Something like this should produce a map file but this does not work.
59
60#     -Xlinker "-Map $(basename $@).map" $(LINK_OBJS)
61#
62#  This is a good way to get debug information.  The rdmp file is large
63#  though (1.9 Mb for hello) and greatly slows the build process.
64# $(OBJDUMP) -x -m i386 -d $(basename $@).coff > $(basename $@).rdmp
65
66# The following are definitions of make-exe which will work using ld as
67# is currently required.  It is expected that as of gcc 2.8, the end user
68# will be able to override parts of the compilers specs and link using gcc.
69
70ifeq ($(RTEMS_USE_GCC272),yes)
71define make-exe
72        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).coff \
73            -noinhibit-exec -Map $(basename $@).map \
74            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
75        $(OBJCOPY) -O srec $(basename $@).coff $(basename $@).i
76        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
77                  $(PROJECT_TOOLS)/packhex > $(basename $@).exe
78        $(NM) -g -n $(basename $@).coff > $(basename $@).num
79        $(SIZE) $(basename $@).coff
80endef
81else
82define make-exe
83        $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).coff \
84            $(LINK_OBJS) $(LINK_LIBS)
85        $(OBJCOPY) -O srec $(basename $@).coff $(basename $@).i
86        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
87                  $(PROJECT_TOOLS)/packhex > $(basename $@).exe
88        $(NM) -g -n $(basename $@).coff > $(basename $@).num
89        $(SIZE) $(basename $@).coff
90endef
91endif
92
93# Miscellaneous additions go here
94
Note: See TracBrowser for help on using the repository browser.