source: rtems/make/custom/force386.cfg @ a0b94685

4.104.114.84.95
Last change on this file since a0b94685 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.4 KB
Line 
1#
2#  Config file for the force386 BSP
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=i386
10RTEMS_CPU_MODEL=i386_fp
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=force386
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 target does NOT support the TCP/IP stack so ignore requests
26# to enable it.
27HAS_NETWORKING=no
28
29# This BSP does not support librdbg
30HAS_RDBG=no
31
32#  This section makes the target dependent options file.
33
34#  NDEBUG (C library)
35#     if defined asserts do not generate code.  This is commonly used
36#     as a command line option.
37#
38#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
39#     do not pause between screens of output in the rtems tests
40#
41#  RTEMS_DEBUG (RTEMS)
42#     If defined, debug checks in RTEMS and support library code are enabled.
43
44define make-target-options
45        @echo "/* #define NDEBUG 1 */ "                     >>$@
46        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
47        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
48endef
49
50# Here is the rule to actually build a $(ARCH)/foo.exe
51# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm
52# Usage ref: src/tests/sptest/sp1/Makefile
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 $@).nxe \
61            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
62        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
63        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
64            $(PACKHEX) > $(basename $@).exe
65        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
66        $(SIZE) $(basename $@).nxe
67endef
68else
69define make-exe
70        $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
71            $(LINK_OBJS) $(LINK_LIBS)
72        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
73        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
74            $(PACKHEX) > $(basename $@).exe
75        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
76        $(SIZE) $(basename $@).nxe
77endef
78endif
79
80# Miscellaneous additions go here
81
Note: See TracBrowser for help on using the repository browser.