OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [make/] [custom/] [eth_comm.cfg] - Blame information for rev 173

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.