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

Last change on this file since d102375e was d102375e, checked in by Joel Sherrill <joel.sherrill@…>, on May 28, 2000 at 5:52:30 PM

Removed definition of PPC_ABI and PPC_ASM as there are now defaults
that reflect the GNU toolset.

  • Property mode set to 100644
File size: 2.6 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#  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
38define 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"                      >>$@
44endef
45
46#  This contains the compiler options necessary to select the CPU model
47#  and (hopefully) optimize for it.
48#
49CPU_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
54CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
55
56# No start file
57START_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
63ifeq ($(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
66define 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) $@
73endef
74else
75define 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) $@
80endef
81endif
82
83# Miscellaneous additions go here
84
85
Note: See TracBrowser for help on using the repository browser.