source: rtems/make/custom/gen68360.cfg @ 43b78f15

4.104.114.84.95
Last change on this file since 43b78f15 was 43b78f15, checked in by Joel Sherrill <joel.sherrill@…>, on 06/25/98 at 16:21:07

Added definition of RTEMSmcpu32p per patch from Robin Kirkham.

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