source: rtems/make/custom/papyrus.cfg @ b938d3d4

4.104.114.84.95
Last change on this file since b938d3d4 was b938d3d4, checked in by Joel Sherrill <joel.sherrill@…>, on 06/03/98 at 18:39:53

Changed ppc to PowerPC in comments.

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