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

4.104.114.84.95
Last change on this file since bffb938 was bffb938, checked in by Joel Sherrill <joel.sherrill@…>, on 01/20/98 at 19:30:30

Removed PROJECT_HOME and CONFIG_DIR variables.

  • 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=ppc
10RTEMS_CPU_MODEL=ppc403
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=papyrus
14
15CPU_DEFINES=-DPPC_ABI=PPC_ABI_POWEROPEN \
16   -DPPC_ASM=PPC_ASM_ELF -DPPC_VECTOR_FILE_BASE=0x0100
17
18# This target does NOT support the KA9Q TCP/IP stack so ignore requests
19# to enable it.
20HAS_KA9Q=no
21   
22#  This section makes the target dependent options file.
23
24#  NDEBUG (C library)
25#     if defined asserts do not generate code.  This is commonly used
26#     as a command line option.
27#
28#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
29#     do not pause between screens of output in the rtems tests
30#
31#  STACK_CHECKER_ON (RTEMS support code)
32#     If defined, stack bounds checking is enabled.
33#
34#  STACK_CHECKER_REPORT_USAGE (RTEMS support code)
35#     If this and STACK_CHECKER_ON are defined, then a report on stack usage
36#     per task is printed when the program exits.
37#
38#  RTEMS_DEBUG (RTEMS)
39#     If defined, debug checks in RTEMS and support library code are enabled.
40
41define make-target-options
42        @echo "/* #define NDEBUG 1 */ "                     >>$@
43        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
44        @echo "/* #define STACK_CHECKER_ON  1 */"           >>$@
45        @echo "/* #define STACK_CHECKER_REPORT_USAGE  1 */" >>$@
46        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
47endef
48
49#  This contains the compiler options necessary to select the CPU model
50#  and (hopefully) optimize for it.
51#
52CPU_CFLAGS = -mcpu=403
53
54# optimize flag: typically -0, could use -O4 or -fast
55# -O4 is ok for RTEMS
56# NOTE: some level of -O may be actually required by inline assembler
57CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
58
59# No start file
60START_BASE=
61
62# The following are definitions of make-exe which will work using ld as
63# is currently required.  It is expected that as of gcc 2.8, the end user
64# will be able to override parts of the compilers specs and link using gcc.
65
66ifeq ($(RTEMS_USE_GCC272),yes)
67# The --defsym arguments define arguments which are required by the linkcmds
68# file which is designed for gcc 2.8
69define make-exe
70        $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
71            --defsym __fini=0 --defsym __init=0 \
72            -o $@ -u atexit -u __vectors -u download_entry \
73            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
74        $(NM) -g -n $@ > $(basename $@).num
75        $(SIZE) $@
76endef
77else
78define make-exe
79        $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe $(LINK_OBJS)
80        $(NM) -g -n $@ > $(basename $@).num
81        $(SIZE) $@
82endef
83endif
84
85# Miscellaneous additions go here
86
87
Note: See TracBrowser for help on using the repository browser.