source: rtems/make/custom/eth_comm.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: 2.1 KB
Line 
1#
2#  Config file for MPC860 based Ethernet Comm Board
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=powerpc
10RTEMS_CPU_MODEL=mpc860
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=eth_comm
14
15CPU_DEFINES=-DPPC_ABI=PPC_ABI_EABI \
16   -DPPC_ASM=PPC_ASM_ELF -DPPC_VECTOR_FILE_BASE=0x00000000
17
18#  This section makes the target dependent options file.
19
20#  NDEBUG (C library)
21#     if defined asserts do not generate code.  This is commonly used
22#     as a command line option.
23#
24#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
25#     do not pause between screens of output in the rtems tests
26#
27#  RTEMS_DEBUG (RTEMS)
28#     If defined, debug checks in RTEMS and support library code are enabled.
29
30define make-target-options
31        @echo "/* #define NDEBUG 1 */ "                     >>$@
32        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
33        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
34endef
35
36#  This contains the compiler options necessary to select the CPU model
37#  and (hopefully) optimize for it.
38#
39CPU_CFLAGS = -mcpu=860
40
41# optimize flag: typically -0, could use -O4 or -fast
42# -O4 is ok for RTEMS
43# NOTE: some level of -O may be actually required by inline assembler
44CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
45
46# The following are definitions of make-exe which will work using ld as
47# is currently required.  It is expected that as of gcc 2.8, the end user
48# will be able to override parts of the compilers specs and link using gcc.
49
50ifeq ($(RTEMS_USE_GCC272),yes)
51# The --defsym arguments define arguments which are required by the linkcmds
52# file which is designed for gcc 2.8
53define make-exe
54        $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
55            --defsym __fini=0 --defsym __init=0 \
56            -o $@ -u atexit -u __vectors -u download_entry \
57            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
58        $(NM) -g -n $@ > $(basename $@).num
59        $(SIZE) $@
60endef
61else
62define make-exe
63        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
64            $(LINK_OBJS) $(LINK_LIBS)
65        $(NM) -g -n $@ > $(basename $@).num
66        $(SIZE) $@
67endef
68endif
69
70# Miscellaneous additions go here
71
72
Note: See TracBrowser for help on using the repository browser.