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

4.104.114.84.95
Last change on this file since bffb938 was bffb938, checked in by Joel Sherrill <joel.sherrill@…>, on 01/20/98 at 19:30:30

Removed PROJECT_HOME and CONFIG_DIR variables.

  • Property mode set to 100644
File size: 2.8 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# Define this to yes if this target supports multiprocessor environments.
25HAS_MP=yes
26
27# This target does NOT support the KA9Q TCP/IP stack so ignore requests
28# to enable it.
29HAS_KA9Q=no
30
31#  This section makes the target dependent options file.
32
33#  NDEBUG (C library)
34#     if defined asserts do not generate code.  This is commonly used
35#     as a command line option.
36#
37#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
38#     do not pause between screens of output in the rtems tests
39#
40#  STACK_CHECKER_ON (RTEMS support code)
41#     If defined, stack bounds checking is enabled.
42#
43#  STACK_CHECKER_REPORT_USAGE (RTEMS support code)
44#     If this and STACK_CHECKER_ON are defined, then a report on stack usage
45#     per task is printed when the program exits.
46#
47#  RTEMS_DEBUG (RTEMS)
48#     If defined, debug checks in RTEMS and support library code are enabled.
49
50define make-target-options
51        @echo "/* #define NDEBUG 1 */ "                     >>$@
52        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
53        @echo "/* #define STACK_CHECKER_ON  1 */"           >>$@
54        @echo "/* #define STACK_CHECKER_REPORT_USAGE  1 */" >>$@
55        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
56endef
57
58# Here is the rule to actually build a $(ARCH)/foo.exe
59# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm
60# Usage ref: src/tests/sptest/sp1/Makefile
61
62# The following are definitions of make-exe which will work using ld as
63# is currently required.  It is expected that as of gcc 2.8, the end user
64# will be able to override parts of the compilers specs and link using gcc.
65
66ifeq ($(RTEMS_USE_GCC272),yes)
67define make-exe
68        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \
69            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
70        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
71        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
72            $(PROJECT_TOOLS)/packhex > $(basename $@).exe
73        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
74        $(SIZE) $(basename $@).nxe
75endef
76else
77define make-exe
78        $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe $(LINK_OBJS)
79        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
80        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
81            $(PROJECT_TOOLS)/packhex > $(basename $@).exe
82        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
83        $(SIZE) $(basename $@).nxe
84endef
85endif
86
87# Miscellaneous additions go here
88
Note: See TracBrowser for help on using the repository browser.