source: rtems/make/custom/gen68340.cfg @ b8bf934

4.104.114.84.95
Last change on this file since b8bf934 was 4233e1f, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/18/07 at 06:05:27

Cosmetics.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1#
2#  Config file for a "generic 68340" BSP
3#
4#  $Id$
5#
6
7RTEMS_CPU=m68k
8
9RTEMS_CPU_MODEL=m68340
10
11include $(RTEMS_ROOT)/make/custom/default.cfg
12
13# This is the actual bsp directory used during the build process.
14RTEMS_BSP_FAMILY=gen68340
15
16CPU_CFLAGS = -mcpu32
17
18# optimize flag: typically -O2
19CFLAGS_OPTIMIZE_V = -O4 -fomit-frame-pointer
20
21# The following are definitions of make-exe which will work using ld as
22# is currently required.  It is expected that as of gcc 2.8, the end user
23# will be able to override parts of the compilers specs and link using gcc.
24
25define make-exe
26        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
27            -o $@ $(LINK_OBJS) $(LINK_LIBS)
28        $(NM) -g -n $@ > $(basename $@).num
29        $(SIZE) $@
30endef
31#        if you want to make a prom image
32#        m68k-rtems-objcopy --adjust-section-vma \
33#         .data=`m68k-rtems-objdump --section-headers $(basename $@).exe | \
34#         awk 'function h2d(x) { x=toupper(x); digits=length(x); s=0 ; \
35#              for (p=digits; p>0; p--) \
36#              s += (16^(p-1)) * ( index("0123456789ABCDEF",\
37#               substr(x,1+digits-p,1)) -1 );\
38#               return s } ;\
39#               /\.text/ { base = $$4 ; size = $$3 };\
40#               END { printf("0x%x", h2d(base) + h2d(size)) }'\
41#              ` $(basename $@).exe
42#        if you want to convert it to ieee
43#        m68k-rtems-objcopy --output-target=ieee --debugging \
44#              $(basename $@).exe $(basename $@).ieee
45
46# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.