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

Subversion Repositories openrisc

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

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 helas403 card
3
#
4
#  $Id: helas403.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $
5
#
6
#  this is derived from:
7
#
8
#  Config file for a PowerPC 403 based papyrus card
9
#
10
#  Id: papyrus.cfg,v 1.7 1998/06/27 17:09:47 joel Exp
11
#
12
 
13
include $(RTEMS_ROOT)/make/custom/default.cfg
14
 
15
RTEMS_CPU=powerpc
16
RTEMS_CPU_MODEL=ppc403
17
 
18
# This is the actual bsp directory used during the build process.
19
RTEMS_BSP_FAMILY=helas403
20
 
21
#  This section makes the target dependent options file.
22
 
23
#  NDEBUG (C library)
24
#     if defined asserts do not generate code.  This is commonly used
25
#     as a command line option.
26
#
27
#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
28
#     do not pause between screens of output in the rtems tests
29
#
30
#  RTEMS_DEBUG (RTEMS)
31
#     If defined, debug checks in RTEMS and support library code are enabled.
32
#
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
define make-target-options
45
        @echo "/* #define NDEBUG 1 */ "                     >>$@
46
        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
47
        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
48
        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"         >>$@
49
        @echo "#define PPC_USE_SPRG 1"                      >>$@
50
endef
51
 
52
#  This contains the compiler options necessary to select the CPU model
53
#  and (hopefully) optimize for it.
54
#
55
CPU_CFLAGS = -mcpu=403
56
 
57
# optimize flag: typically -0, could use -O4 or -fast
58
# -O4 is ok for RTEMS
59
# NOTE: some level of -O may be actually required by inline assembler
60
CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
61
 
62
# No start file
63
START_BASE=
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
 
69
ifeq ($(RTEMS_USE_GCC272),yes)
70
# The --defsym arguments define arguments which are required by the linkcmds
71
# file which is designed for gcc 2.8
72
define make-exe
73
        $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
74
            --defsym __fini=0 --defsym __init=0 \
75
            -o $@ -u atexit -u __vectors -u download_entry \
76
            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
77
        $(NM) -g -n $@ > $(basename $@).num
78
        $(SIZE) $@
79
endef
80
else
81
define make-exe
82
        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
83
            $(LINK_OBJS) $(LINK_LIBS)
84
        $(NM) -g -n $@ > $(basename $@).num
85
        $(SIZE) $@
86
endef
87
endif
88
 
89
# Miscellaneous additions go here
90
 
91
 

powered by: WebSVN 2.1.0

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