source: rtems/make/custom/gen68340.cfg @ 97dbdde1

4.104.114.84.95
Last change on this file since 97dbdde1 was 97dbdde1, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 7, 2001 at 12:32:10 PM

2001-12-04 Ralf Corsepius <corsepiu@…>

  • custom/bare.cfg: Remove make-target-options.
  • custom/c4xsim.cfg: Ditto.
  • custom/cvme961.cfg: Ditto.
  • custom/efi68k.cfg: Ditto.
  • custom/gen68302.cfg: Ditto.
  • custom/gen68340.cfg: Ditto.
  • custom/genmongoosev.cfg: Ditto.
  • custom/gensh4.cfg: Remove make-target-options, remove GCC272 make-exe, remove empty lines.
  • custom/h8sim.cfg: Remove make-target-options.
  • custom/mcf5206elite.cfg: Ditto.
  • custom/mrm332.cfg: Ditto.
  • custom/mvme147.cfg: Ditto.
  • custom/ods68302.cfg: Ditto.
  • custom/p4000.cfg: Ditto.
  • custom/p4600.cfg: Ditto.
  • custom/p4650.cfg: Ditto.
  • custom/pc386.cfg: Ditto.
  • custom/portsw.cfg: Ditto.
  • custom/simsh4.cfg: Ditto.
  • Property mode set to 100644
File size: 1.9 KB
Line 
1#
2#  Config file for a "generic 68340" BSP
3#
4#  $Id$
5#
6
7RTEMS_CPU=m68k
8
9RTEMS_CPU_MODEL=mcpu32
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
26ifeq ($(RTEMS_USE_GCC272),yes)
27
28# override default location of Standard C Library
29# LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/m68000/msoft-float/libc.a
30# LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/m68000/msoft-float/libm.a
31
32define make-exe
33        @ echo
34        @ echo "WARNING: newlib may use bit test instructions!!"
35        @ echo
36        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
37            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
38        $(NM) -g -n $(basename $@).exe > $(basename $@).num
39        $(SIZE) $(basename $@).exe
40endef
41else
42
43define make-exe
44        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
45            -o $@ $(LINK_OBJS) $(LINK_LIBS)
46        $(NM) -g -n $@ > $(basename $@).num
47        $(SIZE) $@
48endef
49#        if you want to make a prom image
50#        m68k-rtems-objcopy --adjust-section-vma \
51#         .data=`m68k-rtems-objdump --section-headers $(basename $@).exe | \
52#         awk 'function h2d(x) { x=toupper(x); digits=length(x); s=0 ; \
53#              for (p=digits; p>0; p--) \
54#              s += (16^(p-1)) * ( index("0123456789ABCDEF",\
55#               substr(x,1+digits-p,1)) -1 );\
56#               return s } ;\
57#               /\.text/ { base = $$4 ; size = $$3 };\
58#               END { printf("0x%x", h2d(base) + h2d(size)) }'\
59#              ` $(basename $@).exe
60#        if you want to convert it to ieee
61#        m68k-rtems-objcopy --output-target=ieee --debugging \
62#              $(basename $@).exe $(basename $@).ieee
63endif
64
65# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.