OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 30 unneback
#
2
#  Config file for the PowerPC 604 based mvme2307
3
#
4
#  $Id: mvme2307.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $
5
#
6
 
7
include $(RTEMS_ROOT)/make/custom/default.cfg
8
 
9
RTEMS_CPU=powerpc
10
RTEMS_CPU_MODEL=mpc604
11
RTEMS_PPC_EXCEPTION_PROCESSING_MODEL=new
12
 
13
# This is the actual bsp directory used during the build process.
14
RTEMS_BSP_FAMILY=motorola_powerpc
15
 
16
#  This section makes the target dependent options file.
17
 
18
#  NDEBUG (C library)
19
#     if defined asserts do not generate code.  This is commonly used
20
#     as a command line option.
21
#
22
#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
23
#     do not pause between screens of output in the rtems tests
24
#
25
#  RTEMS_DEBUG (RTEMS)
26
#     If defined, debug checks in RTEMS and support library code are enabled.
27
#
28
#  CONSOLE_USE_POLLED     (mvme2307_bsp)
29
#  CONSOLE_USE_INTERRUPTS (mvme2307_bsp)
30
#     The mvme2307 console driver has the structure to operate in either
31
#     polled or interrupt mode.  However both modes only trap to the
32
#     monitor currently.
33
#
34
#  PPC_VECTOR_FILE_BASE (PowerPC)
35
#     This defines the base address of the exception table.
36
#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
37
#
38
#  PPC_USE_SPRG (RTEMS PowerPC port)
39
#     If defined, then the PowerPC specific code in RTEMS will use some
40
#     of the special purpose registers to slightly optimize interrupt
41
#     response time.  The use of these registers can conflict with
42
#     other tools like debuggers.
43
#
44
 
45
define make-target-options
46
        @echo "/* #define NDEBUG 1 */ "                        >>$@
47
        @echo "#define RTEMS_TEST_NO_PAUSE 1"                  >>$@
48
        @echo "/* #define RTEMS_DEBUG  1 */"                   >>$@
49
        @echo "#define PPCN_60X_USE_DINK 0"                   >>$@
50
        @echo "#define PPCN_60X_USE_NONE 1"                   >>$@
51
        @echo "#define PPC_USE_DATA_CACHE 1"                   >>$@
52
        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"            >>$@
53
        @echo "#define PPC_USE_SPRG  1"
54
endef
55
 
56
#  This contains the compiler options necessary to select the CPU model
57
#  and (hopefully) optimize for it.
58
#
59
CPU_CFLAGS = -mcpu=604 -mmultiple -mstring -mstrict-align
60
 
61
# optimize flag: typically -0, could use -O4 or -fast
62
# -O4 is ok for RTEMS
63
# NOTE: some level of -O may be actually required by inline assembler
64
#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
65
CFLAGS_OPTIMIZE_V = -O4
66
 
67
# debug flags: typically none, but at least -O1 is required due to this
68
# BSP using inlined code
69
CFLAGS_DEBUG_V = -O1
70
 
71
# profile flags: typically none, but at least -O1 is required due to this
72
# BSP using inlined code
73
CFLAGS_PROFILE_V = -O1
74
 
75
# The following is a linkcmds file which will work without using the
76
# -specs system in gcc 2.8.
77
#       $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
78
#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
79
#       $(LD) $(XLDFLAGS) -Ttext 0x20000 \
80
#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
81
 
82
#       $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \
83
#           -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \
84
#            $(START_FILE) $(LINK_OBJS) \
85
#            $(LD_LIBS) \
86
#           -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
87
define make-exe
88
        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
89
        $(NM) -g -n $@ > $(basename $@).num
90
        $(SIZE) $@
91
#    The following commands make a bootable image but will not work outside
92
#    the build tree.
93
#       test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin
94
#       $(CP) $@ $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader/$(ARCH); \
95
#       ( cd $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader; \
96
#       $(MAKE) bootloader BINARY_LOADED=$@; )
97
#       f=`basename $@ .exe`; \
98
#        cp $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader/bootloader \
99
#           ${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).exe \
100
#       && chmod 755 \
101
#         ${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).exe
102
endef
103
 
104
 
105
# Miscellaneous additions go here
106
 
107
# No start file
108
START_BASE=

powered by: WebSVN 2.1.0

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