OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [make/] [custom/] [gen68360.cfg] - Blame information for rev 645

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
#
2
#  Config file for a "generic 68360" BSP
3
#
4
#  $Id: gen68360.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $
5
#
6
 
7
RTEMS_CPU=m68k
8
 
9
ifeq ($(RTEMS_GEN68360_COMPANION_MODE),yes)
10
RTEMS_CPU_MODEL=m68040
11
else
12
RTEMS_CPU_MODEL=mcpu32
13
endif
14
 
15
include $(RTEMS_ROOT)/make/custom/default.cfg
16
 
17
# This is the actual bsp directory used during the build process.
18
RTEMS_BSP_FAMILY=gen68360
19
 
20
#
21
# You must use versions of gcc and gas that support the -mcpu32 option.
22
#
23
ifeq ($(RTEMS_GEN68360_COMPANION_MODE),yes)
24
CPU_CFLAGS= -m68040
25
else
26
CPU_CFLAGS = -mcpu32
27
endif
28
 
29
# optimize flag: typically -0, could use -O4 or -fast
30
# -O4 is ok for RTEMS
31
CFLAGS_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
 
45
ifeq ($(RTEMS_GEN68360_COMPANION_MODE),yes)
46
define make-target-options
47
        @echo "/* #define NDEBUG 1 */ "                     >>$@
48
        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
49
        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
50
endef
51
else
52
define 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"                  >>$@
57
endef
58
endif
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
 
64
ifeq ($(RTEMS_USE_GCC272),yes)
65
 
66
# override default location of Standard C Library
67
LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/m68000/msoft-float/libc.a
68
LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/m68000/msoft-float/libm.a
69
 
70
define 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
78
endef
79
else
80
 
81
define make-exe
82
        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
83
            $(LINK_OBJS) $(LINK_LIBS)
84
        $(NM) -g -n $@ > $(basename $@).num
85
        $(SIZE) $@
86
endef
87
endif
88
 
89
 
90
# Miscellaneous additions go here

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.