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

4.104.114.84.95
Last change on this file since db4aaf8 was db4aaf8, checked in by Joel Sherrill <joel.sherrill@…>, on 03/20/98 at 17:39:56

Patch from Eric Norum <eric@…>:

I've included a version of make/custom/gen68360.cfg that works with
this. Note that I've removed the option of using `-m68020
-msoft-float -mno-bitfield' as an alternative to using `-mcpu32'.
The alternative won't work with the new system (since it predefines
mc68020 and not mcpu32), and didn't really work before anyway
(since the newlib that gets linked was built with `-m68020
-msoft-float' and so could contain bitfield operators).

  • Property mode set to 100644
File size: 3.0 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=m68360
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#  STACK_CHECKER_ON (RTEMS support code)
54#     If defined, stack bounds checking is enabled.
55#
56#  STACK_CHECKER_REPORT_USAGE (RTEMS support code)
57#     If this and STACK_CHECKER_ON are defined, then a report on stack usage
58#     per task is printed when the program exits.
59#
60#  RTEMS_DEBUG (RTEMS)
61#     If defined, debug checks in RTEMS and support library code are enabled.
62#
63
64define make-target-options
65        @echo "/* #define NDEBUG 1 */ "                     >>$@
66        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
67        @echo "/* #define STACK_CHECKER_ON  1 */"           >>$@
68        @echo "/* #define STACK_CHECKER_REPORT_USAGE  1 */" >>$@
69        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
70endef
71
72# The following are definitions of make-exe which will work using ld as
73# is currently required.  It is expected that as of gcc 2.8, the end user
74# will be able to override parts of the compilers specs and link using gcc.
75
76ifeq ($(RTEMS_USE_GCC272),yes)
77
78# override default location of Standard C Library
79LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/m68000/msoft-float/libc.a
80LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/m68000/msoft-float/libm.a
81
82ifeq ($(RTEMS_GEN68360_COMPANION_MODE),yes)
83        RTEMS_GEN68360_EXTRA_LDFLAGS=--defsym RamSize=0x100000
84else
85        RTEMS_GEN68360_EXTRA_LDFLAGS=
86endif
87
88define make-exe
89        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
90            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
91        $(NM) -g -n $(basename $@).exe > $(basename $@).num
92        $(SIZE) $(basename $@).exe
93endef
94else
95
96ifeq ($(RTEMS_GEN68360_COMPANION_MODE),yes)
97        CFLAGS_LD=-Wl,--defsym -Wl,RamSize=0x100000
98else
99        CFLAGS_LD=
100endif
101
102define make-exe
103        $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe $(LINK_OBJS)
104        $(NM) -g -n $(basename $@).exe > $(basename $@).num
105        $(SIZE) $(basename $@).exe
106endef
107endif
108
109
110# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.