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

4.104.114.84.9
Last change on this file since a0b7a07 was a0b7a07, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 1, 1998 at 6:38:53 PM

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
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#
23# You must use versions of gcc and gas that support the -mcpu32 option.
24#
25ifeq ($(RTEMS_GEN68360_COMPANION_MODE),yes)
26CPU_CFLAGS= -m68040
27else
28CPU_CFLAGS = -mcpu32
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
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
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
63endif
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
76        @ echo
77        @ echo "WARNING: newlib may use bit test instructions!!"
78        @ echo
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
87        $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
88            $(LINK_OBJS) $(LINK_LIBS)
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.