source: rtems/make/custom/gen68360.cfg @ 9e52b29

4.104.114.84.95
Last change on this file since 9e52b29 was df49c60, checked in by Joel Sherrill <joel.sherrill@…>, on 06/12/00 at 15:00:15

Merged from 4.5.0-beta3a

  • Property mode set to 100644
File size: 2.4 KB
Line 
1#
2#  Config file for a "generic 68360" BSP
3#
4#  $Id$
5#
6
7RTEMS_CPU=m68k
8
9ifeq ($(RTEMS_GEN68360_COMPANION_MODE),yes)
10RTEMS_CPU_MODEL=m68040
11else
12RTEMS_CPU_MODEL=mcpu32
13endif
14
15include $(RTEMS_ROOT)/make/custom/default.cfg
16
17# This is the actual bsp directory used during the build process.
18RTEMS_BSP_FAMILY=gen68360
19
20#
21# You must use versions of gcc and gas that support the -mcpu32 option.
22#
23ifeq ($(RTEMS_GEN68360_COMPANION_MODE),yes)
24CPU_CFLAGS= -m68040
25else
26CPU_CFLAGS = -mcpu32
27endif
28
29# optimize flag: typically -0, could use -O4 or -fast
30# -O4 is ok for RTEMS
31CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
32
33#  This section makes the target dependent options file.
34#  NDEBUG (C library)
35#     if defined asserts do not generate code.  This is commonly used
36#     as a command line option.
37#
38#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
39#     do not pause between screens of output in the rtems tests
40#
41#  RTEMS_DEBUG (RTEMS)
42#     If defined, debug checks in RTEMS and support library code are enabled.
43#
44
45ifeq ($(RTEMS_GEN68360_COMPANION_MODE),yes)
46define make-target-options
47        @echo "/* #define NDEBUG 1 */ "                     >>$@
48        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
49        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
50endef
51else
52define make-target-options
53        @echo "/* #define NDEBUG 1 */ "                     >>$@
54        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
55        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
56        @echo "#define RTEMS__mcpu32p__ 1"                  >>$@
57endef
58endif
59
60# The following are definitions of make-exe which will work using ld as
61# is currently required.  It is expected that as of gcc 2.8, the end user
62# will be able to override parts of the compilers specs and link using gcc.
63
64ifeq ($(RTEMS_USE_GCC272),yes)
65
66# override default location of Standard C Library
67LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/m68000/msoft-float/libc.a
68LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/m68000/msoft-float/libm.a
69
70define make-exe
71        @ echo
72        @ echo "WARNING: newlib may use bit test instructions!!"
73        @ echo
74        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
75            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
76        $(NM) -g -n $(basename $@).exe > $(basename $@).num
77        $(SIZE) $(basename $@).exe
78endef
79else
80
81define make-exe
82        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
83            $(LINK_OBJS) $(LINK_LIBS)
84        $(NM) -g -n $@ > $(basename $@).num
85        $(SIZE) $@
86endef
87endif
88
89
90# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.