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

Subversion Repositories openrisc

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
#
2
#  Config file for a "generic 68340" BSP
3
#
4
#  $Id: gen68340.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $
5
#
6
 
7
RTEMS_CPU=m68k
8
 
9
RTEMS_CPU_MODEL=mcpu32
10
 
11
include $(RTEMS_ROOT)/make/custom/default.cfg
12
 
13
# This is the actual bsp directory used during the build process.
14
RTEMS_BSP_FAMILY=gen68340
15
 
16
CPU_CFLAGS = -mcpu32
17
 
18
# optimize flag: typically -0, could use -O4 or -fast
19
# -O4 is ok for RTEMS
20
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
21
 
22
#  This section makes the target dependent options file.
23
#  NDEBUG (C library)
24
#     if defined asserts do not generate code.  This is commonly used
25
#     as a command line option.
26
#
27
#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
28
#     do not pause between screens of output in the rtems tests
29
#
30
#  RTEMS_DEBUG (RTEMS)
31
#     If defined, debug checks in RTEMS and support library code are enabled.
32
#
33
 
34
define make-target-options
35
        @echo "/* #define NDEBUG 1 */ "                     >>$@
36
        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
37
        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
38
endef
39
 
40
# The following are definitions of make-exe which will work using ld as
41
# is currently required.  It is expected that as of gcc 2.8, the end user
42
# will be able to override parts of the compilers specs and link using gcc.
43
 
44
ifeq ($(RTEMS_USE_GCC272),yes)
45
 
46
# override default location of Standard C Library
47
LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/m68000/msoft-float/libc.a
48
LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/m68000/msoft-float/libm.a
49
 
50
define make-exe
51
        @ echo
52
        @ echo "WARNING: newlib may use bit test instructions!!"
53
        @ echo
54
        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
55
            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
56
        $(NM) -g -n $(basename $@).exe > $(basename $@).num
57
        $(SIZE) $(basename $@).exe
58
endef
59
else
60
 
61
define make-exe
62
        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
63
            -o $@ $(LINK_OBJS) $(LINK_LIBS)
64
        $(NM) -g -n $@ > $(basename $@).num
65
        $(SIZE) $@
66
endef
67
#        if you want to make a prom image
68
#        m68k-rtems-objcopy --adjust-section-vma \
69
#         .data=`m68k-rtems-objdump --section-headers $(basename $@).exe | \
70
#         awk 'function h2d(x) { x=toupper(x); digits=length(x); s=0 ; \
71
#              for (p=digits; p>0; p--) \
72
#              s += (16^(p-1)) * ( index("0123456789ABCDEF",\
73
#               substr(x,1+digits-p,1)) -1 );\
74
#               return s } ;\
75
#               /\.text/ { base = $$4 ; size = $$3 };\
76
#               END { printf("0x%x", h2d(base) + h2d(size)) }'\
77
#              ` $(basename $@).exe
78
#        if you want to convert it to ieee
79
#        m68k-rtems-objcopy --output-target=ieee --debugging \
80
#              $(basename $@).exe $(basename $@).ieee
81
endif
82
 
83
 
84
# Miscellaneous additions go here

powered by: WebSVN 2.1.0

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