source: rtems/make/custom/helas403.cfg @ 4d20133

4.104.114.84.95
Last change on this file since 4d20133 was e125ad3, checked in by Joel Sherrill <joel.sherrill@…>, on 10/01/98 at 18:48:43

Switched from HAS_KA9Q=no to HAS_NETWORKING=no.

  • Property mode set to 100644
File size: 3.4 KB
Line 
1#
2#  Config file for a PowerPC 403 based helas403 card
3#
4#  $Id$
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
13include $(RTEMS_ROOT)/make/custom/default.cfg
14
15RTEMS_CPU=powerpc
16RTEMS_CPU_MODEL=ppc403
17
18# This is the actual bsp directory used during the build process.
19RTEMS_BSP_FAMILY=helas403
20
21#  These should be defined in targopt.h now.
22#CPU_DEFINES=-DPPC_ABI=PPC_ABI_POWEROPEN \
23#   -DPPC_ASM=PPC_ASM_ELF -DPPC_VECTOR_FILE_BASE=0x0100
24
25# This target does NOT support the TCP/IP stack so ignore requests
26# to enable it.
27HAS_NETWORKING=no
28   
29#  This section makes the target dependent options file.
30
31#  NDEBUG (C library)
32#     if defined asserts do not generate code.  This is commonly used
33#     as a command line option.
34#
35#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
36#     do not pause between screens of output in the rtems tests
37#
38#  RTEMS_DEBUG (RTEMS)
39#     If defined, debug checks in RTEMS and support library code are enabled.
40#
41#       
42#  PPC_VECTOR_FILE_BASE (PowerPC)
43#     This defines the base address of the exception table.
44#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
45#       
46#  PPC_ABI (PowerPC)
47#     This defines the calling convention (Application Binary Interface)
48#     used in this configuration.  EABI is the only one supported.
49#     This BSP was initially developed using the PowerOpen ABI.
50#
51#  PPC_ASM (PowerPC)
52#     This defines the assembly language format used in this configuration.
53#     ELF is the only one supported.
54#
55#  PPC_USE_SPRG (RTEMS PowerPC port)
56#     If defined, then the PowerPC specific code in RTEMS will use some
57#     of the special purpose registers to slightly optimize interrupt
58#     response time.  The use of these registers can conflict with
59#     other tools like debuggers.
60
61define make-target-options
62        @echo "/* #define NDEBUG 1 */ "                     >>$@
63        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
64        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
65        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"         >>$@
66        @echo "#define PPC_ABI PPC_ABI_EABI"                >>$@
67        @echo "#define PPC_ASM PPC_ASM_ELF"                 >>$@
68        @echo "#define PPC_USE_SPRG 1"                      >>$@
69endef
70
71#  This contains the compiler options necessary to select the CPU model
72#  and (hopefully) optimize for it.
73#
74CPU_CFLAGS = -mcpu=403
75
76# optimize flag: typically -0, could use -O4 or -fast
77# -O4 is ok for RTEMS
78# NOTE: some level of -O may be actually required by inline assembler
79CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
80
81# No start file
82START_BASE=
83
84# The following are definitions of make-exe which will work using ld as
85# is currently required.  It is expected that as of gcc 2.8, the end user
86# will be able to override parts of the compilers specs and link using gcc.
87
88ifeq ($(RTEMS_USE_GCC272),yes)
89# The --defsym arguments define arguments which are required by the linkcmds
90# file which is designed for gcc 2.8
91define make-exe
92        $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
93            --defsym __fini=0 --defsym __init=0 \
94            -o $@ -u atexit -u __vectors -u download_entry \
95            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
96        $(NM) -g -n $@ > $(basename $@).num
97        $(SIZE) $@
98endef
99else
100define make-exe
101        $(CC) $(CFLAGS) -o $(basename $@).exe \
102            $(LINK_OBJS) $(LINK_LIBS)
103        $(NM) -g -n $@ > $(basename $@).num
104        $(SIZE) $@
105endef
106endif
107
108# Miscellaneous additions go here
109
110
Note: See TracBrowser for help on using the repository browser.