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/] [papyrus.cfg] - Blame information for rev 492

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

Line No. Rev Author Line
1 30 unneback
#
2
#  Config file for a PowerPC 403 based papyrus card
3
#
4
#  $Id: papyrus.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=ppc403
11
 
12
# This is the actual bsp directory used during the build process.
13
RTEMS_BSP_FAMILY=papyrus
14
 
15
#  This section makes the target dependent options file.
16
 
17
#  NDEBUG (C library)
18
#     if defined asserts do not generate code.  This is commonly used
19
#     as a command line option.
20
#
21
#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
22
#     do not pause between screens of output in the rtems tests
23
#
24
#  RTEMS_DEBUG (RTEMS)
25
#     If defined, debug checks in RTEMS and support library code are enabled.
26
#
27
#
28
#  PPC_VECTOR_FILE_BASE (PowerPC)
29
#     This defines the base address of the exception table.
30
#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
31
#
32
#  PPC_USE_SPRG (RTEMS PowerPC port)
33
#     If defined, then the PowerPC specific code in RTEMS will use some
34
#     of the special purpose registers to slightly optimize interrupt
35
#     response time.  The use of these registers can conflict with
36
#     other tools like debuggers.
37
 
38
define make-target-options
39
        @echo "/* #define NDEBUG 1 */ "                     >>$@
40
        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
41
        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
42
        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"         >>$@
43
        @echo "#define PPC_USE_SPRG 1"                      >>$@
44
endef
45
 
46
#  This contains the compiler options necessary to select the CPU model
47
#  and (hopefully) optimize for it.
48
#
49
CPU_CFLAGS = -mcpu=403
50
 
51
# optimize flag: typically -0, could use -O4 or -fast
52
# -O4 is ok for RTEMS
53
# NOTE: some level of -O may be actually required by inline assembler
54
CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
55
 
56
# No start file
57
START_BASE=
58
 
59
# The following are definitions of make-exe which will work using ld as
60
# is currently required.  It is expected that as of gcc 2.8, the end user
61
# will be able to override parts of the compilers specs and link using gcc.
62
 
63
ifeq ($(RTEMS_USE_GCC272),yes)
64
# The --defsym arguments define arguments which are required by the linkcmds
65
# file which is designed for gcc 2.8
66
define make-exe
67
        $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
68
            --defsym __fini=0 --defsym __init=0 \
69
            -o $@ -u atexit -u __vectors -u download_entry \
70
            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
71
        $(NM) -g -n $@ > $(basename $@).num
72
        $(SIZE) $@
73
endef
74
else
75
define make-exe
76
        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
77
            $(LINK_OBJS) $(LINK_LIBS)
78
        $(NM) -g -n $@ > $(basename $@).num
79
        $(SIZE) $@
80
endef
81
endif
82
 
83
# Miscellaneous additions go here
84
 
85
 

powered by: WebSVN 2.1.0

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