source: rtems/make/custom/dmv152.cfg @ 270e3cc

4.104.114.84.95
Last change on this file since 270e3cc was 270e3cc, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 11, 2000 at 2:56:04 PM

Patch rtems-rc-20000711-1-cvs.diff from Ralf Corsepius <corsepiu@…>
that decouples exec/ for the sh, m68k and i960 from targopts.h.

NOTE: The change to system.h is a hack to enable cpuopts.h
for some targets, but keep using targopts.h for others - I know it
does *not* work for sparc, mips, i386 and ppc. This will have
to be addressed as work continues on multilibing.

  • 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# 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#  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        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -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) > $@
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.