source: rtems/make/custom/papyrus.cfg @ 92e15e0

4.104.114.84.95
Last change on this file since 92e15e0 was 92e15e0, checked in by Joel Sherrill <joel.sherrill@…>, on 04/14/98 at 21:32:56

Updates from PPC refresh

  • Property mode set to 100644
File size: 3.6 KB
RevLine 
[bffb938]1#
2#  Config file for a PowerPC 403 based papyrus card
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
[e4829a05]9RTEMS_CPU=powerpc
[bffb938]10RTEMS_CPU_MODEL=ppc403
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=papyrus
14
[92e15e0]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
[bffb938]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#  STACK_CHECKER_ON (RTEMS support code)
33#     If defined, stack bounds checking is enabled.
34#
[92e15e0]35#  STACK_CHECKER_REPORT_USAGE (RTEMS support code)
36#     If this and STACK_CHECKER_ON are defined, then a report on stack usage
37#     per task is printed when the program exits.
38#
[bffb938]39#  RTEMS_DEBUG (RTEMS)
40#     If defined, debug checks in RTEMS and support library code are enabled.
[92e15e0]41#
42#       
43#  PPC_VECTOR_FILE_BASE (ppc)
44#     This defines the base address of the exception table.
45#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
46#       
47#  PPC_ABI (ppc)
48#     This defines the calling convention (Application Binary Interface)
49#     used in this configuration.  EABI is the only one supported.
50#     This BSP was initially developed using the PowerOpen ABI.
51#
52#  PPC_ASM (ppc)
53#     This defines the assembly language format used in this configuration.
54#     ELF is the only one supported.
55#
56#  PPC_USE_SPRG (RTEMS PowerPC port)
57#     If defined, then the PowerPC specific code in RTEMS will use some
58#     of the special purpose registers to slightly optimize interrupt
59#     response time.  The use of these registers can conflict with
60#     other tools like debuggers.
[bffb938]61
62define make-target-options
63        @echo "/* #define NDEBUG 1 */ "                     >>$@
64        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
65        @echo "/* #define STACK_CHECKER_ON  1 */"           >>$@
[92e15e0]66        @echo "/* #define STACK_CHECKER_REPORT_USAGE  1 */" >>$@
[bffb938]67        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
[92e15e0]68        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"         >>$@
69        @echo "#define PPC_ABI PPC_ABI_EABI"                >>$@
70        @echo "#define PPC_ASM PPC_ASM_ELF"                 >>$@
71        @echo "#define PPC_USE_SPRG 1"                      >>$@
[bffb938]72endef
73
74#  This contains the compiler options necessary to select the CPU model
75#  and (hopefully) optimize for it.
76#
77CPU_CFLAGS = -mcpu=403
78
79# optimize flag: typically -0, could use -O4 or -fast
80# -O4 is ok for RTEMS
81# NOTE: some level of -O may be actually required by inline assembler
82CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
83
84# No start file
85START_BASE=
86
87# The following are definitions of make-exe which will work using ld as
88# is currently required.  It is expected that as of gcc 2.8, the end user
89# will be able to override parts of the compilers specs and link using gcc.
90
91ifeq ($(RTEMS_USE_GCC272),yes)
92# The --defsym arguments define arguments which are required by the linkcmds
93# file which is designed for gcc 2.8
94define make-exe
95        $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
96            --defsym __fini=0 --defsym __init=0 \
97            -o $@ -u atexit -u __vectors -u download_entry \
98            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
99        $(NM) -g -n $@ > $(basename $@).num
100        $(SIZE) $@
101endef
102else
103define make-exe
[92e15e0]104        $(CC) $(CFLAGS) -o $(basename $@).exe $(LINK_OBJS)
[bffb938]105        $(NM) -g -n $@ > $(basename $@).num
106        $(SIZE) $@
107endef
108endif
109
110# Miscellaneous additions go here
111
112
Note: See TracBrowser for help on using the repository browser.