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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [make/] [custom/] [gen68340.cfg] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
#
2
#  Config file for a "generic 68340" BSP
3
#
4
#  gen68340.cfg,v 1.13 2002/08/06 20:15:43 joel Exp
5
#
6
 
7
RTEMS_CPU=m68k
8
 
9
RTEMS_CPU_MODEL=m68340
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
# The following are definitions of make-exe which will work using ld as
23
# is currently required.  It is expected that as of gcc 2.8, the end user
24
# will be able to override parts of the compilers specs and link using gcc.
25
 
26
define make-exe
27
        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
28
            -o $@ $(LINK_OBJS) $(LINK_LIBS)
29
        $(NM) -g -n $@ > $(basename $@).num
30
        $(SIZE) $@
31
endef
32
#        if you want to make a prom image
33
#        m68k-rtems-objcopy --adjust-section-vma \
34
#         .data=`m68k-rtems-objdump --section-headers $(basename $@).exe | \
35
#         awk 'function h2d(x) { x=toupper(x); digits=length(x); s=0 ; \
36
#              for (p=digits; p>0; p--) \
37
#              s += (16^(p-1)) * ( index("0123456789ABCDEF",\
38
#               substr(x,1+digits-p,1)) -1 );\
39
#               return s } ;\
40
#               /\.text/ { base = $$4 ; size = $$3 };\
41
#               END { printf("0x%x", h2d(base) + h2d(size)) }'\
42
#              ` $(basename $@).exe
43
#        if you want to convert it to ieee
44
#        m68k-rtems-objcopy --output-target=ieee --debugging \
45
#              $(basename $@).exe $(basename $@).ieee
46
 
47
# Miscellaneous additions go here

powered by: WebSVN 2.1.0

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