source: rtems/make/custom/helas403.cfg @ effc2c4

Last change on this file since effc2c4 was effc2c4, checked in by Joel Sherrill <joel.sherrill@…>, on 04/03/00 at 14:44:39

Patch rtems-rc-4.5.0-6-cvs.diff from Ralf Corsepius <corsepiu@…>.
The patch contains:

  • build variants support
  • Reworked make-exe custom/*.cfg for all targets (Should be self-explanatory, may still be incomplete)
  • Several fixes to custom/*.cfgs related to setting debug flags
  • Fixes to some bsp_specs for BSPs which apparently have never been build with debugging before ;)
  • pc386.cfg fix attempts (cf. my mail from earlier today)
  • Updated ampolish (No need to run it, the patch contains the result from having applied it)

Known bugs/deficiencies related to this work:

  • "make [clean|distclean]" support is still incomplete (e.g. "make clean" does not delete all Depends-o-*)
  • Completely untested for linux/posix and hppa.
  • Build failures of i960 BSPs (make VARIANT=DEBUG) - I guess, they are not related to this patch.
  • Successfully tested for all sh, sparc, i386, ppc, m68k BSPs (make VARIANT=DEBUG)
  • make VARIANT=PROFILE not supported by all BSPs (I don't care :)
  • make VARIANT=DEBUG failures below tests/ for some BSPs (e.g. gensh1), because of the tests's binaries being too large to fit into the target memory layout.
  • Property mode set to 100644
File size: 3.3 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 section makes the target dependent options file.
26
27#  NDEBUG (C library)
28#     if defined asserts do not generate code.  This is commonly used
29#     as a command line option.
30#
31#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
32#     do not pause between screens of output in the rtems tests
33#
34#  RTEMS_DEBUG (RTEMS)
35#     If defined, debug checks in RTEMS and support library code are enabled.
36#
37#       
38#  PPC_VECTOR_FILE_BASE (PowerPC)
39#     This defines the base address of the exception table.
40#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
41#       
42#  PPC_ABI (PowerPC)
43#     This defines the calling convention (Application Binary Interface)
44#     used in this configuration.  EABI is the only one supported.
45#     This BSP was initially developed using the PowerOpen ABI.
46#
47#  PPC_ASM (PowerPC)
48#     This defines the assembly language format used in this configuration.
49#     ELF is the only one supported.
50#
51#  PPC_USE_SPRG (RTEMS PowerPC port)
52#     If defined, then the PowerPC specific code in RTEMS will use some
53#     of the special purpose registers to slightly optimize interrupt
54#     response time.  The use of these registers can conflict with
55#     other tools like debuggers.
56
57define make-target-options
58        @echo "/* #define NDEBUG 1 */ "                     >>$@
59        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
60        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
61        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"         >>$@
62        @echo "#define PPC_ABI PPC_ABI_EABI"                >>$@
63        @echo "#define PPC_ASM PPC_ASM_ELF"                 >>$@
64        @echo "#define PPC_USE_SPRG 1"                      >>$@
65endef
66
67#  This contains the compiler options necessary to select the CPU model
68#  and (hopefully) optimize for it.
69#
70CPU_CFLAGS = -mcpu=403
71
72# optimize flag: typically -0, could use -O4 or -fast
73# -O4 is ok for RTEMS
74# NOTE: some level of -O may be actually required by inline assembler
75CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
76
77# No start file
78START_BASE=
79
80# The following are definitions of make-exe which will work using ld as
81# is currently required.  It is expected that as of gcc 2.8, the end user
82# will be able to override parts of the compilers specs and link using gcc.
83
84ifeq ($(RTEMS_USE_GCC272),yes)
85# The --defsym arguments define arguments which are required by the linkcmds
86# file which is designed for gcc 2.8
87define make-exe
88        $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
89            --defsym __fini=0 --defsym __init=0 \
90            -o $@ -u atexit -u __vectors -u download_entry \
91            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
92        $(NM) -g -n $@ > $(basename $@).num
93        $(SIZE) $@
94endef
95else
96define make-exe
97        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
98            $(LINK_OBJS) $(LINK_LIBS)
99        $(NM) -g -n $@ > $(basename $@).num
100        $(SIZE) $@
101endef
102endif
103
104# Miscellaneous additions go here
105
106
Note: See TracBrowser for help on using the repository browser.