source: rtems/make/custom/i386ex.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: 2.5 KB
Line 
1#
2#  Config file for the i386ex 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=i386ex
14
15#  This contains the compiler options necessary to select the CPU model
16#  and (hopefully) optimize for it.
17#
18CPU_CFLAGS =
19
20# optimize flag: typically -0, could use -O4 or -fast
21# -O4 is ok for RTEMS
22# -fomit-frame-pointer breaks debugging and C++ exceptions
23CFLAGS_OPTIMIZE_V=-O4
24
25# This BSP does not support librdbg
26HAS_RDBG=no
27
28#  This section makes the target dependent options file.
29
30#  NDEBUG (C library)
31#     if defined asserts do not generate code.  This is commonly used
32#     as a command line option.
33#
34#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
35#     do not pause between screens of output in the rtems tests
36#
37#  RTEMS_DEBUG (RTEMS)
38#     If defined, debug checks in RTEMS and support library code are enabled.
39
40define make-target-options
41        @echo "/* #define NDEBUG 1 */ "                     >>$@
42        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
43        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
44endef
45
46#  Something like this should produce a map file but this does not work.
47
48#     -Xlinker "-Map $(basename $@).map" $(LINK_OBJS)
49#
50#  This is a good way to get debug information.  The rdmp file is large
51#  though (1.9 Mb for hello) and greatly slows the build process.
52# $(OBJDUMP) -x -m i386 -d $(basename $@).coff > $(basename $@).rdmp
53
54# The following are definitions of make-exe which will work using ld as
55# is currently required.  It is expected that as of gcc 2.8, the end user
56# will be able to override parts of the compilers specs and link using gcc.
57
58ifeq ($(RTEMS_USE_GCC272),yes)
59define make-exe
60        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).coff \
61            -noinhibit-exec -Map $(basename $@).map \
62            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
63        $(OBJCOPY) -O srec $(basename $@).coff $(basename $@).i
64        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
65                  $(PACKHEX) > $(basename $@).exe
66        $(NM) -g -n $(basename $@).coff > $(basename $@).num
67        $(SIZE) $(basename $@).coff
68endef
69else
70define make-exe
71        $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).coff \
72            $(LINK_OBJS) $(LINK_LIBS)
73        $(OBJCOPY) -O srec $(basename $@).coff $(basename $@).i
74        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
75                  $(PACKHEX) > $(basename $@).exe
76        $(NM) -g -n $(basename $@).coff > $(basename $@).num
77        $(SIZE) $(basename $@).coff
78endef
79endif
80
81# Miscellaneous additions go here
82
Note: See TracBrowser for help on using the repository browser.