source: rtems/make/custom/gen68340.cfg @ 9e4fa6ae

4.104.114.84.95
Last change on this file since 9e4fa6ae was 26f2783, checked in by Joel Sherrill <joel.sherrill@…>, on 08/06/02 at 20:15:43

2002-08-06 Joel Sherrill <joel@…>

  • custom/efi332.cfg, custom/gen68340.cfg, custom/gen68360.cfg, custom/mrm332.cfg: Use more proper CPU models so libcpu knows more.
  • 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 -0, could use -O4 or -fast
19# -O4 is ok for RTEMS
20CFLAGS_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
26define make-exe
27        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
28            -o $@ $(LINK_OBJS) $(LINK_LIBS)
29        $(NM) -g -n $@ > $(basename $@).num
30        $(SIZE) $@
31endef
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
Note: See TracBrowser for help on using the repository browser.