source: rtems/make/custom/gen68360.cfg @ a0b7a07

4.104.114.84.95
Last change on this file since a0b7a07 was a0b7a07, checked in by Joel Sherrill <joel.sherrill@…>, on 10/01/98 at 18:38:53

Patch from Eric Norum <eric@…>:

Here's a patch to get rid of the `#define RTEMSmcpu32p 1' when
gen68360.cfg is being used as a companion for gen68360_040.cfg. The
old version worked because of the order of the conditional tests in
m68k.h (the check for mc68040 is before the test for
RTEMSmcpu32p) , but I think it might have been a little confusing
to others just getting started.

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