source: rtems/make/custom/dmv152.cfg @ 8725d7c

4.104.114.84.95
Last change on this file since 8725d7c was 8725d7c, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 1, 2000 at 2:21:40 PM

Patch rtems-rc-20000731-2-cvs.diff from Ralf Corsepius <corsepiu@…>
that does the following:

Changes:

Remove $(SED) and $(CP) from make/custom/*.cfg

Motivation:

  • autoconf and automake presuppose sed and cp to be present.
  • make/host.cfg.in already contains SED = sed hard-coded into it for a long time.
  • Elimination of make-variables
  • Eliminate make/*.cfg files or at least reduce their complexity :)
  • Property mode set to 100644
File size: 2.1 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# BSP specific preprocessor flags.
23# These should only be used in BSP dependent directories.
24BSP_CPPFLAGS = -DUSE_CHANNEL_A
25
26# optimize flag: typically -0, could use -O4 or -fast
27# -O4 is ok for RTEMS
28CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
29
30#  This section makes the target dependent options file.
31#  USE_CHANNEL_A (DMV152)
32#  USE_CHANNEL_B (DMV152)
33#     One and only one of these should be set to 1 to indicate which
34#     serial port is used as the RTEMS console.
35
36define make-target-options
37#       @echo "#define USE_CHANNEL_A  1"                    >>$@
38#       @echo "#define USE_CHANNEL_B  0"                    >>$@
39endef
40
41# Here is the rule to actually build a $(ARCH)/foo.exe
42# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm
43# Usage ref: src/tests/sptest/sp1/Makefile
44
45# The following are definitions of make-exe which will work using ld as
46# is currently required.  It is expected that as of gcc 2.8, the end user
47# will be able to override parts of the compilers specs and link using gcc.
48
49ifeq ($(RTEMS_USE_GCC272),yes)
50define make-exe
51        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \
52            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
53        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
54        sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
55            $(PACKHEX) > $(basename $@).exe
56        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
57        $(SIZE) $(basename $@).nxe
58endef
59else
60define make-exe
61        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
62            $(LINK_OBJS) $(LINK_LIBS)
63        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
64        sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
65            $(PACKHEX) > $@
66        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
67        $(SIZE) $(basename $@).nxe
68endef
69endif
70
71# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.