source: rtems/make/custom/dmv152.cfg @ 4d20133

4.104.114.84.95
Last change on this file since 4d20133 was 011677f, checked in by Joel Sherrill <joel.sherrill@…>, on 02/18/99 at 17:54:03

Part of automake VI Patch from Ralf Corsepius <corsepiu@…>.

Adds variables to the custom/*cfg files to specify the location of
tools. The purpose is to remove hard-coded paths from the Makefiles.

In later steps this eases moving the tools to other locations.

  • Property mode set to 100644
File size: 2.6 KB
Line 
1#
2#  Config file for the dmv152 BSP
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=m68k
10RTEMS_CPU_MODEL=m68020
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=dmv152
14
15#
16#  This contains the compiler options necessary to select the CPU model
17#  and (hopefully) optimize for it.
18#
19
20CPU_CFLAGS =
21
22# optimize flag: typically -0, could use -O4 or -fast
23# -O4 is ok for RTEMS
24CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
25
26# This target does NOT support the TCP/IP stack so ignore requests
27# to enable it.
28HAS_NETWORKING=no
29
30#  This section makes the target dependent options file.
31#  NDEBUG (C library)
32#     if defined asserts do not generate code.  This is commonly used
33#     as a command line option.
34#
35#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
36#     do not pause between screens of output in the rtems tests
37#
38#  RTEMS_DEBUG (RTEMS)
39#     If defined, debug checks in RTEMS and support library code are enabled.
40#
41#  USE_CHANNEL_A (DMV152)
42#  USE_CHANNEL_B (DMV152)
43#     One and only one of these should be set to 1 to indicate which
44#     serial port is used as the RTEMS console.
45
46define make-target-options
47        @echo "/* #define NDEBUG 1 */ "                     >>$@
48        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
49        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
50        @echo "#define USE_CHANNEL_A  1"                    >>$@
51        @echo "#define USE_CHANNEL_B  0"                    >>$@
52endef
53
54# Here is the rule to actually build a $(ARCH)/foo.exe
55# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm
56# Usage ref: src/tests/sptest/sp1/Makefile
57
58# The following are definitions of make-exe which will work using ld as
59# is currently required.  It is expected that as of gcc 2.8, the end user
60# will be able to override parts of the compilers specs and link using gcc.
61
62ifeq ($(RTEMS_USE_GCC272),yes)
63define make-exe
64        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \
65            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
66        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
67        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
68            $(PACKHEX) > $(basename $@).exe
69        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
70        $(SIZE) $(basename $@).nxe
71endef
72else
73define make-exe
74        $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
75            $(LINK_OBJS) $(LINK_LIBS)
76        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
77        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
78            $(PACKHEX) > $(basename $@).exe
79        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
80        $(SIZE) $(basename $@).nxe
81endef
82endif
83
84# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.