source: rtems/make/custom/force386.cfg @ 97e2729d

4.104.114.84.95
Last change on this file since 97e2729d was 97e2729d, checked in by Joel Sherrill <joel.sherrill@…>, on 11/23/98 at 17:38:09

Added --disable-multiprocessing flag and modified a lot of files to make
it work.

  • Property mode set to 100644
File size: 2.3 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
22CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
23
24# This target does NOT support the TCP/IP stack so ignore requests
25# to enable it.
26HAS_NETWORKING=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# Here is the rule to actually build a $(ARCH)/foo.exe
47# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm
48# Usage ref: src/tests/sptest/sp1/Makefile
49
50# The following are definitions of make-exe which will work using ld as
51# is currently required.  It is expected that as of gcc 2.8, the end user
52# will be able to override parts of the compilers specs and link using gcc.
53
54ifeq ($(RTEMS_USE_GCC272),yes)
55define make-exe
56        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \
57            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
58        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
59        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
60            $(PROJECT_TOOLS)/packhex > $(basename $@).exe
61        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
62        $(SIZE) $(basename $@).nxe
63endef
64else
65define make-exe
66        $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
67            $(LINK_OBJS) $(LINK_LIBS)
68        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
69        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
70            $(PROJECT_TOOLS)/packhex > $(basename $@).exe
71        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
72        $(SIZE) $(basename $@).nxe
73endef
74endif
75
76# Miscellaneous additions go here
77
Note: See TracBrowser for help on using the repository browser.