source: rtems/make/custom/eth_comm.cfg @ b8a30d07

4.104.114.84.9
Last change on this file since b8a30d07 was b8a30d07, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 13, 2000 at 3:05:38 PM

Patch rtems-rc-20000713-1-cvs.diff from Ralf Corsepius <corsepiu@…>
that is yet another multilib-related structual cleanup patch:

Changes:

  • Make RTEMS_TEST_NO_PAUSE a tests/ subpackage specific option.
    • Remove RTEMS_TEST_NO_PAUSE from custom/*.cfg, targopts.h and cpuopts.h.
    • Add autoconf macros RTEMS_*_RTEMS_TEST_NO_PAUSE (aclocal/rtems-test-no-pause.m4).
    • Add RTEMS_*_RTEMS_TEST_NO_PAUSE support to sptests/configure.ins and tmtests/configure.in. These are the only subdirectories which currently apply RTEMS_TEST_NO_PAUSE.
    • Add autoconf-DEFS support to all test subpackages' configure.ins below tests/. I.e. AC_DEFINES now get explicitly propagated as preprocessor defines into Makefiles, cf. AM_CPPFLAGS in tests/*/*.am, instead of using a global config-files.
    • Remove NDEBUG from custom/*.cfg.
  • AC_DEFINE POSIX_API, ITRON_API and MULTIPROCESSING in exec/configure.in, only.
    • All other sources now should relay on the values from cpuopts.h and should not define them themselves.
    • Several related changes to many configure.ins
  • Bug-fixes to RTEMS_*_RTEMS_DEBUG macros (Actually workarounds to quoting bugs in autoconf).

Notes:

  • This patch is rather immature and only tested for a small subset of BSPs (requires the tests to be enabled and therefore takes an tremendous amount of disc space and time.)
  • The patches to *cfg were generated by a script. Expect file formating changes :)
  • Property mode set to 100644
File size: 2.8 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=mpc8xx
11CPU_TYPE=860
12
13# This is the actual bsp directory used during the build process.
14RTEMS_BSP_FAMILY=eth_comm
15
16CPU_DEFINES=
17
18#  This section makes the target dependent options file.
19
20#  PPC_VECTOR_FILE_BASE (PowerPC)
21#     This defines the base address of the exception table.
22#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
23#       
24#  PPC_ABI (PowerPC)
25#     This defines the calling convention (Application Binary Interface)
26#     used in this configuration.  EABI is the only one supported.
27#     This BSP was initially developed using the PowerOpen ABI.
28#
29#  PPC_ASM (PowerPC)
30#     This defines the assembly language format used in this configuration.
31#     ELF is the only one supported.
32#
33#  PPC_USE_SPRG (RTEMS PowerPC port)
34#     If defined (=1), then the PowerPC specific code in RTEMS will use some
35#     of the special purpose registers to slightly optimize interrupt
36#     response time.  The use of these registers can conflict with
37#     other tools like debuggers.
38
39define make-target-options
40        @echo "#ifdef mpc$(CPU_TYPE)"                       >>$@
41        @echo "#undef mpc$(CPU_TYPE)"                       >>$@
42        @echo "#endif"                                      >>$@
43        @echo "#define mpc$(CPU_TYPE) 1"                    >>$@
44        @echo                                               >>$@
45        @echo "#define PPC_VECTOR_FILE_BASE 0x0000"         >>$@
46        @echo "#define PPC_ABI PPC_ABI_EABI"                >>$@
47        @echo "#define PPC_ASM PPC_ASM_ELF"                 >>$@
48        @echo "#define PPC_USE_SPRG 1"                      >>$@
49endef
50
51#  This contains the compiler options necessary to select the CPU model
52#  and (hopefully) optimize for it.
53#
54CPU_CFLAGS = -mcpu=$(CPU_TYPE)
55
56# optimize flag: typically -0, could use -O4 or -fast
57# -O4 is ok for RTEMS
58# NOTE: some level of -O may be actually required by inline assembler
59CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
60
61# The following are definitions of make-exe which will work using ld as
62# is currently required.  It is expected that as of gcc 2.8, the end user
63# will be able to override parts of the compilers specs and link using gcc.
64
65ifeq ($(RTEMS_USE_GCC272),yes)
66# The --defsym arguments define arguments which are required by the linkcmds
67# file which is designed for gcc 2.8
68define make-exe
69        $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
70            --defsym __fini=0 --defsym __init=0 \
71            -o $@ -u atexit -u __vectors -u download_entry \
72            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
73        $(NM) -g -n $@ > $(basename $@).num
74        $(SIZE) $@
75endef
76else
77define make-exe
78        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
79            $(LINK_OBJS) $(LINK_LIBS)
80        $(NM) -g -n $@ > $(basename $@).num
81        $(SIZE) $@
82endef
83endif
84
85# Miscellaneous additions go here
86
Note: See TracBrowser for help on using the repository browser.