Changeset 6087a692 in rtems


Ignore:
Timestamp:
Mar 6, 2008, 9:51:01 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, 5, master
Children:
97a40898
Parents:
44cc441
Message:

Make all BSPs use the same rules for invoking gcc and g++ to link an application. Share as much logic as possible for .num file and size information. Let BSPs provide custom rules to tranform executable from linked .exe to downloadable RTEMS Application Loadable File (RALF) .ralf file.

Location:
make/custom
Files:
73 edited

Legend:

Unmodified
Added
Removed
  • make/custom/Cygwin-posix.cfg

    r44cc441 r6087a692  
    1717# optimize flag: typically -O2
    1818CFLAGS_OPTIMIZE_V = -O2 -g
    19 
    20 define make-exe
    21         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
    22         $(NM) -g -n $@ > $(basename $@).num
    23         $(SIZE) $@
    24 endef
    25 
    26 # *****************************************************************
    27 # Miscellaneous additions go here
  • make/custom/FreeBSD-posix.cfg

    r44cc441 r6087a692  
    1414# optimize flag: typically -O2
    1515CFLAGS_OPTIMIZE_V = -O2 -g
    16 
    17 define make-exe
    18         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
    19         $(NM) -g -n $@ > $(basename $@).num
    20         $(SIZE) $@
    21 endef
    22 
    23 # *****************************************************************
    24 # Miscellaneous additions go here
  • make/custom/HPUX9-posix.cfg

    r44cc441 r6087a692  
    1818# optimize flag: typically -O2
    1919CFLAGS_OPTIMIZE_V = -O2 -g
    20 
    21 define make-exe
    22         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
    23         $(NM) -g -n $@ > $(basename $@).num
    24         $(SIZE) $@
    25 endef
    26 
    27 # Miscellaneous additions go here
    28 
  • make/custom/Linux-posix.cfg

    r44cc441 r6087a692  
    2020
    2121# optimize flag: typically -O2
    22 CFLAGS_OPTIMIZE_V = -O2 -g
    23 
    24 define make-exe
    25         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
    26         $(NM) -g -n $@ > $(basename $@).num
    27         $(SIZE) $@
    28 endef
    29 
    30 # *****************************************************************
    31 # Miscellaneous additions go here
     22CFLAGS_OPTIMIZE_V = -O0 -g
  • make/custom/Solaris-posix.cfg

    r44cc441 r6087a692  
    2121# optimize flag: typically -O2
    2222CFLAGS_OPTIMIZE_V = -O2 -g
    23 
    24 define make-exe
    25         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
    26         $(NM) -g -n $@ > $(basename $@).num
    27         $(SIZE) $@
    28 endef
    29 
    30 # *****************************************************************
    31 
    32 # Miscellaneous additions go here
  • make/custom/av5282.cfg

    r44cc441 r6087a692  
    2323endif
    2424
    25 
    26 # The following are definitions of make-exe which will work using ld as
    27 # is currently required.
    28 
    29 
    30 define make-exe
    31         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
    32             $(LINK_OBJS) $(LINK_LIBS) -Wl,-Tlinkcmds
    33         $(OBJCOPY) -O binary --strip-all $(basename $@).nxe $@
    34         $(SIZE) $(basename $@).nxe
     25define bsp-post-link
     26        $(default-bsp-post-link)
     27        $(OBJCOPY) -O binary --strip-all \
     28            $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
    3529endef
    36 define make-cxx-exe
    37         $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
    38             $(LINK_OBJS) $(LINK_LIBS) -Wl,-Tlinkcmds
    39         $(OBJCOPY) -O binary --strip-all $(basename $@).nxe $@
    40         $(SIZE) $(basename $@).nxe
    41 endef
    42 
    43 # Miscellaneous additions go here
  • make/custom/bare.cfg

    r44cc441 r6087a692  
    2929define make-exe
    3030        @echo "*** Cannot do a link with the bare bsp. ***"
    31         @echo "#!/bin/sh" > $(basename $@).exe
    32         @echo "echo \"Cannot do a link with the bare bsp.\"" >> $(basename $@).exe
     31        @echo "#!/bin/sh" > $(basename $@)$(EXEEXT)
     32        @echo "echo \"Cannot do a link with the bare bsp.\"" >> $(basename $@)$(EXEEXT)
    3333endef
    3434
    3535define make-cxx-exe
    3636        @echo "*** Cannot do a link with the bare bsp. ***"
    37         @echo "#!/bin/sh" > $(basename $@).exe
    38         @echo "echo \"Cannot do a link with the bare bsp.\"" >> $(basename $@).exe
     37        @echo "#!/bin/sh" > $(basename $@)$(EXEEXT)
     38        @echo "echo \"Cannot do a link with the bare bsp.\"" >> $(basename $@)$(EXEEXT)
    3939endef
    4040
  • make/custom/c3xsim.cfg

    r44cc441 r6087a692  
    2323# this target has no start file
    2424START_BASE=
    25 
    26 # The following are definitions of make-exe which will work using ld as
    27 # is currently required.
    28 
    29 define make-exe
    30         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    31             $(LDLIBS) -o $@ \
    32             $(LINK_OBJS) $(LINK_LIBS)
    33         $(NM) -g -n $@ > $(basename $@).num
    34         $(SIZE) $@
    35 endef
    36 
    37 # Miscellaneous additions go here
  • make/custom/c4xsim.cfg

    r44cc441 r6087a692  
    2323# this target has no start file
    2424START_BASE=
    25 
    26 # The following are definitions of make-exe which will work using ld as
    27 # is currently required.
    28 
    29 define make-exe
    30         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    31             $(LDLIBS) -o $@ \
    32             $(LINK_OBJS) $(LINK_LIBS)
    33         $(NM) -g -n $@ > $(basename $@).num
    34         $(SIZE) $@
    35 endef
    36 
    37 # Miscellaneous additions go here
  • make/custom/csb336.cfg

    r44cc441 r6087a692  
    1515#  This contains the compiler options necessary to select the CPU model
    1616#  and (hopefully) optimize for it.
    17 #
    1817CPU_CFLAGS = -mcpu=arm920 -mstructure-size-boundary=8
    1918
    2019# optimize flag: typically -O2
    2120CFLAGS_OPTIMIZE_V = -O2 -g
    22 
    23 define make-exe
    24         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
    25             $(LINK_OBJS) $(LINK_LIBS)
    26         $(NM) -g -n $(basename $@).exe > $(basename $@).num
    27         $(SIZE) $(basename $@).exe
    28 endef
    29 
    30 # Miscellaneous additions go here
  • make/custom/csb337.cfg

    r44cc441 r6087a692  
    1515#  This contains the compiler options necessary to select the CPU model
    1616#  and (hopefully) optimize for it.
    17 #
    1817CPU_CFLAGS = -mcpu=arm920 -mstructure-size-boundary=8
    1918
    2019# optimize flag: typically -O2
    2120CFLAGS_OPTIMIZE_V = -O2 -g
    22 
    23 
    24 define make-exe
    25         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
    26             $(LINK_OBJS) $(LINK_LIBS)
    27         $(NM) -g -n $(basename $@).exe > $(basename $@).num
    28         $(SIZE) $(basename $@).exe
    29 endef
    30 
    31 # Miscellaneous additions go here
  • make/custom/csb350.cfg

    r44cc441 r6087a692  
    2121# optimize flag: typically -O2
    2222CFLAGS_OPTIMIZE_V = -O2 -g
    23 
    24 # The following are definitions of make-exe which will work using ld as
    25 # is currently required.
    26 
    27 define make-exe
    28         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    29             $(LDLIBS) -o $@ \
    30             $(LINK_OBJS) $(LINK_LIBS)
    31         $(NM) -g -n $@ > $(basename $@).num
    32         $(SIZE) $@
    33 endef
    34 
    35 # Miscellaneous additions go here
    36 
  • make/custom/csb360.cfg

    r44cc441 r6087a692  
    2121# optimize flag: typically -O2
    2222CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
    23 
    24 # The following are definitions of make-exe which will work using ld as
    25 # is currently required.
    26 
    27 define make-exe
    28         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
    29             $(LINK_OBJS) $(LINK_LIBS)
    30         $(NM) -g -n $@ > $(basename $@).num
    31         $(SIZE) $@
    32 endef
    33 
    34 # Miscellaneous additions go here
  • make/custom/default.cfg

    r44cc441 r6087a692  
    44#
    55# Created by Jiri Gaisler, 16-03-97  (who is owed a debt of gratitude
    6 #   for converting RTEMS to autoconf.  Thanks. --joel)
     6#   for the initial RTEMS autoconf support.  Thanks. --joel)
    77#
    88#  $Id$
     
    2121START_BASE=start
    2222
     23## what to do about $(EXEEXT) --> $(EXEEXT)
     24##    -o $(basename $@)$(EXEEXT)             OR
     25##    -o $(basename $@)$(EXEEXT)                  OR
     26
     27EXEEXT=.exe
     28DOWNEXT=.ralf
     29
     30define bsp-link-c
     31        $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
     32            -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS)
     33endef
     34
     35define bsp-link-cxx
     36        $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
     37            -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS)
     38endef
     39
     40define default-bsp-post-link
     41        $(NM) -g -n $@ > $(basename $@).num
     42        $(SIZE) $@
     43endef
     44
     45define bsp-post-link
     46        $(default-bsp-post-link)
     47        cp $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
     48endef
     49
     50define make-exe
     51       $(bsp-link-c)
     52       $(bsp-post-link)
     53endef
     54
     55define make-cxx-exe
     56       $(bsp-link-cxx)
     57       $(bsp-post-link)
     58endef
  • make/custom/eZKit533.cfg

    r44cc441 r6087a692  
    2121# gcc-4.2.0 segfaults on -OX > -O0
    2222CFLAGS_OPTIMIZE_V = -O0 -g
    23 
    24 # The following are definitions of make-exe which will work using ld as
    25 # is currently required.
    26 
    27 define make-exe
    28         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    29             $(LDLIBS) -o $@ \
    30             $(LINK_OBJS) $(LINK_LIBS)
    31         $(NM) -g -n $@ > $(basename $@).num
    32         $(SIZE) $@
    33 endef
    34 
    35 # Miscellaneous additions go here
  • make/custom/edb7312.cfg

    r44cc441 r6087a692  
    2020# optimize flag: typically -O2
    2121CFLAGS_OPTIMIZE_V = -O2 -g
    22 
    23 define make-exe
    24         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
    25             $(LINK_OBJS) $(LINK_LIBS)
    26         $(NM) -g -n $(basename $@).exe > $(basename $@).num
    27         $(SIZE) $(basename $@).exe
    28 endef
    29 
    30 # Miscellaneous additions go here
  • make/custom/ep1a.cfg

    r44cc441 r6087a692  
    1919# optimize flag: typically -O2
    2020CFLAGS_OPTIMIZE_V = -O2 -g
    21 
    22 define make-exe
    23         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
    24             $(LINK_OBJS) $(LINK_LIBS)
    25         $(NM) -g -n $@ > $(basename $@).num
    26         $(SIZE) $@
    27 endef
    28 
    29 # Miscellaneous additions go here
  • make/custom/erc32.cfg

    r44cc441 r6087a692  
    2020# optimize flag: typically -O2
    2121CFLAGS_OPTIMIZE_V = -O2 -g
    22 
    23 # The following are definitions of make-exe which will work using ld as
    24 # is currently required.
    25 
    26 define make-exe
    27         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
    28             $(LINK_OBJS) $(LINK_LIBS) -Wl,-Map,$(basename $@).map
    29         $(NM) -g -n $(basename $@).exe > $(basename $@).num
    30         $(SIZE) $(basename $@).exe
    31 endef
    32 # Miscellaneous additions go here
  • make/custom/gba.cfg

    r44cc441 r6087a692  
    2222CFLAGS_OPTIMIZE_V = -O2 -g
    2323
    24 define make-exe
    25         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    26             -Wl,-Map,$(basename $@).map -o $(basename $@).nxe \
    27             $(LINK_OBJS) $(LINK_LIBS)
    28         $(OBJCOPY) -O binary  $(basename $@).nxe $@
     24# Some GBA simulators want a .gba extension.
     25define bsp-post-link
    2926        $(OBJCOPY) -O binary --remove-section=.comment \
    3027            --remove-section=.note --strip-unneeded \
    31             $(basename $@).nxe $(basename $@).gba
    32         $(NM) -g -n $(basename $@).nxe > $(basename $@).num
    33         $(SIZE) $(basename $@).nxe
     28            $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
     29        $(default-bsp-post-link)
    3430endef
    35 
    36 define make-cxx-exe
    37         $(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \
    38             -Wl,-Map,$(basename $@).map -o $(basename $@).nxe \
    39             $(LINK_OBJS) $(LINK_LIBS)
    40         $(OBJCOPY) -O binary  $(basename $@).nxe $@
    41         $(OBJCOPY) -O binary --remove-section=.comment \
    42             --remove-section=.note --strip-unneeded  \
    43             $(basename $@).nxe $(basename $@).gba
    44         $(NM) -g -n $(basename $@).nxe > $(basename $@).num
    45         $(SIZE) $(basename $@).nxe
    46 endef
    47 
    48 # Miscellaneous additions go here
  • make/custom/gen5200.cfg

    r44cc441 r6087a692  
    2121CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
    2222
    23 # The following are definitions of make-exe which will work using ld as
    24 # is currently required.
    25 
    26 define make-exe
    27         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    28         -qnolinkcmds -T $(RTEMS_LINKCMDS) -o $(basename $@).exe \
    29             $(LINK_OBJS) $(LINK_LIBS)
    30         $(NM) -g -n $(basename $@).exe > $(basename $@).num
    31         $(SIZE) $(basename $@).exe
    32 endef
    33 
    34 # Miscellaneous additions go here
     23AM_LDFLAGS += -qnolinkcmds -T $(RTEMS_LINKCMDS)
  • make/custom/gen68302.cfg

    r44cc441 r6087a692  
    2020# optimize flag: typically -O2
    2121CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
    22 
    23 # The following are definitions of make-exe which will work using ld as
    24 # is currently required.
    25 
    26 define make-exe
    27         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
    28             $(LINK_OBJS) $(LINK_LIBS)
    29         $(NM) -g -n $@ > $(basename $@).num
    30         $(SIZE) $@
    31 endef
    32 # Miscellaneous additions go here
  • make/custom/gen68340.cfg

    r44cc441 r6087a692  
    2020# optimize flag: typically -O2
    2121CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
    22 
    23 # The following are definitions of make-exe which will work using ld as
    24 # is currently required.
    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 
    33 # Miscellaneous additions go here
  • make/custom/gen68360.cfg

    r44cc441 r6087a692  
    2828# optimize flag: typically -O2
    2929CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
    30 
    31 # The following are definitions of make-exe which will work using ld as
    32 # is currently required.
    33 
    34 define make-exe
    35         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
    36             $(LINK_OBJS) $(LINK_LIBS)
    37         $(NM) -g -n $@ > $(basename $@).num
    38         $(SIZE) $@
    39 endef
    40 
    41 # Miscellaneous additions go here
  • make/custom/gen68360_040.cfg

    r44cc441 r6087a692  
    1313
    1414include $(RTEMS_ROOT)/make/custom/gen68360.cfg
    15 
  • make/custom/gen83xx.cfg

    r44cc441 r6087a692  
    2626CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
    2727
    28 # The following are definitions of make-exe which will work using ld as
    29 # is currently required.
    30 
    31 define make-exe
    32         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    33         -qnolinkcmds -T $(RTEMS_LINKCMDS) -o $(basename $@).exe \
    34             $(LINK_OBJS) $(LINK_LIBS)
    35         $(NM) -g -n $(basename $@).exe > $(basename $@).num
    36         $(SIZE) $(basename $@).exe
    37 endef
    38 
    39 define make-cxx-exe
    40         $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) \
    41         -qnolinkcmds -T $(RTEMS_LINKCMDS) -o $(basename $@).exe \
    42             $(LINK_OBJS) $(LINK_LIBS)
    43         $(NM) -g -n $(basename $@).exe > $(basename $@).num
    44         $(SIZE) $(basename $@).exe
    45 endef
    46 
    47 # Miscellaneous additions go here
     28AM_LDFLAGS+= -qnolinkcmds -T $(RTEMS_LINKCMDS)
  • make/custom/genmongoosev.cfg

    r44cc441 r6087a692  
    2020# optimize flag: typically -O2
    2121CFLAGS_OPTIMIZE_V = -O2 -g
    22 
    23 # The following are definitions of make-exe which will work using ld as
    24 # is currently required.
    25 
    26 define make-exe
    27         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    28             $(LDLIBS) -o $@ \
    29             $(LINK_OBJS) $(LINK_LIBS)
    30         $(NM) -g -n $@ > $(basename $@).num
    31         $(SIZE) $@
    32 endef
    33 
    34 # Miscellaneous additions go here
    35 
  • make/custom/gensh1.cfg

    r44cc441 r6087a692  
    2525# optimize flag: typically -O2
    2626CFLAGS_OPTIMIZE_V = -O2 -g
    27 
    28 # The following are definitions of make-exe which will work using ld as
    29 # is currently required.
    30 
    31 define make-exe
    32         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    33             -Wl,-Map,$(basename $@).map \
    34             $(LDLIBS) -o $@ \
    35             $(LINK_OBJS) $(LINK_LIBS)
    36         $(NM) -g -n $@ > $(basename $@).num
    37         $(SIZE) $@
    38 endef
    39 
    40 # Miscellaneous additions go here
  • make/custom/gensh2.cfg

    r44cc441 r6087a692  
    2525# optimize flag: typically -O2
    2626CFLAGS_OPTIMIZE_V = -O2 -g
    27 
    28 # The following are definitions of make-exe which will work using ld as
    29 # is currently required.
    30 
    31 define make-exe
    32         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Map,$(basename $@).map \
    33             $(LDLIBS) -o $@ \
    34             $(LINK_OBJS) $(LINK_LIBS)
    35         $(NM) -g -n $@ > $(basename $@).num
    36         $(SIZE) $@
    37 endef
    38 
    39 # Miscellaneous additions go here
  • make/custom/gensh4.cfg

    r44cc441 r6087a692  
    3232# optimize flag: typically -O2
    3333CFLAGS_OPTIMIZE_V = -O2 -g
    34 
    35 # The following are definitions of make-exe which will work using ld as
    36 # is currently required.
    37 
    38 define make-exe
    39         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Map,$(basename $@).map \
    40             $(LDLIBS) -o $@ \
    41             $(LINK_OBJS) $(LINK_LIBS)
    42         $(NM) -g -n $@ > $(basename $@).num
    43         $(SIZE) $@
    44 endef
    45 
    46 # Miscellaneous additions go here
  • make/custom/gp32.cfg

    r44cc441 r6087a692  
    2121CFLAGS_OPTIMIZE_V = -O2 -g
    2222
    23 define make-exe
    24         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
    25             $(LINK_OBJS) $(LINK_LIBS)
    26         $(OBJCOPY) -O binary $(basename $@).exe $(basename $@).nxe
    27         $(NM) -g -n $(basename $@).exe > $(basename $@).num
    28         $(SIZE) $(basename $@).exe
     23define bsp-post-link
     24        $(OBJCOPY) -O binary $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
     25        $(default-bsp-post-link)
    2926endef
    30 
    31 define make-cxx-exe
    32         $(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) -o $@ \
    33             $(LINK_OBJS) $(LINK_LIBS)
    34         $(OBJCOPY) -O binary $(basename $@).exe $(basename $@).nxe
    35         $(NM) -g -n $(basename $@).exe > $(basename $@).num
    36         $(SIZE) $(basename $@).exe
    37 endef
    38 
    39 # Miscellaneous additions go here
  • make/custom/h8sim.cfg

    r44cc441 r6087a692  
    2020# optimize flag: typically -O2
    2121CFLAGS_OPTIMIZE_V = -O2 -g
    22 
    23 # The following are definitions of make-exe which will work using ld as
    24 # is currently required.
    25 
    26 define make-exe
    27         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    28             $(LDLIBS) -o $@ \
    29             $(LINK_OBJS) $(LINK_LIBS)
    30         $(NM) -g -n $@ > $(basename $@).num
    31         $(SIZE) $@
    32 endef
    33 
    34 # Miscellaneous additions go here
    35 
  • make/custom/hurricane.cfg

    r44cc441 r6087a692  
    1919CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
    2020
    21 # The following are definitions of make-exe which will work using ld as
    22 # is currently required.
    23 
    24 define make-exe
    25         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    26             -o $@ -Xlinker -Map -Xlinker $(basename $@).map $(LINK_OBJS) $(LINK_LIBS)
     21define bsp-post-link
    2722        $(OBJCOPY) -O srec $@ $(basename $@).srec1
    28         $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
     23        $(PACKHEX) < $(basename $@).srec1 > $(basename $@)$(DOWNEXT)
    2924        $(RM) $(basename $@).srec1
    30         $(NM) -g -n $@ > $(basename $@).num
    31         $(SIZE) $@
     25        $(default-bsp-post-link)
    3226endef
    33 
    34 # Miscellaneous additions go here
    35 
  • make/custom/i386ex.cfg

    r44cc441 r6087a692  
    2121CFLAGS_OPTIMIZE_V = -O2 -g
    2222
    23 #  Something like this should produce a map file but this does not work.
    24 
    25 # The following are definitions of make-exe which will work using ld as
    26 # is currently required.
    27 
    28 define make-exe
    29         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
    30             $(LINK_OBJS) $(LINK_LIBS)
    31         $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).srec
     23define bsp-post-link
     24        $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec
    3225        sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \
    33                   $(PACKHEX) > $(basename $@).exe
    34         $(NM) -g -n $(basename $@).nxe > $(basename $@).num
    35         $(SIZE) $(basename $@).nxe
     26                  $(PACKHEX) > $(basename $@)$(DOWNEXT)
     27        $(default-bsp-post-link)
    3628endef
    37 
    38 # Miscellaneous additions go here
    39 
  • make/custom/idp.cfg

    r44cc441 r6087a692  
    2121CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
    2222
    23 # The following are definitions of make-exe which will work using ld as
    24 # is currently required.
    25 
    26 define make-exe
    27         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
    28             $(LINK_OBJS) $(LINK_LIBS)
    29         $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).srec
     23define bsp-post-link
     24        $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec
    3025        sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \
    31             $(PACKHEX) > $(basename $@).exe
    32         $(NM) -g -n $(basename $@).nxe > $(basename $@).num
    33         $(SIZE) $(basename $@).nxe
     26            $(PACKHEX) > $(basename $@)$(DOWNEXT)
     27        rm -f  $(basename $@).srec
     28        $(default-bsp-post-link)
    3429endef
    35 
    36 # Miscellaneous additions go here
  • make/custom/jmr3904.cfg

    r44cc441 r6087a692  
    2323# optimize flag: typically -O2
    2424CFLAGS_OPTIMIZE_V = -O2 -g
    25 
    26 # The following are definitions of make-exe which will work using ld as
    27 # is currently required.
    28 
    29 define make-exe
    30         $(LINK.c) $(AM_CFLAGS) -G0 $(AM_LDFLAGS) \
    31             $(LDLIBS) -o $@ \
    32             $(LINK_OBJS) $(LINK_LIBS)
    33         $(NM) -g -n $@ > $(basename $@).num
    34         $(SIZE) $@
    35 endef
    36 
    37 # Miscellaneous additions go here
    38 
  • make/custom/leon2.cfg

    r44cc441 r6087a692  
    1818# optimize flag: typically -O2
    1919CFLAGS_OPTIMIZE_V = -O2 -g
    20 
    21 # The following are definitions of make-exe which will work using ld as
    22 # is currently required.
    23 
    24 define make-exe
    25         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
    26             $(LINK_OBJS) $(LINK_LIBS)
    27         $(NM) -g -n $(basename $@).exe > $(basename $@).num
    28         $(SIZE) $(basename $@).exe
    29 endef
    30 # Miscellaneous additions go here
  • make/custom/leon3.cfg

    r44cc441 r6087a692  
    2020# optimize flag: typically -O2
    2121CFLAGS_OPTIMIZE_V = -O2 -g
    22 
    23 # The following are definitions of make-exe which will work using ld as
    24 # is currently required.
    25 
    26 define make-exe
    27         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
    28            $(LINK_OBJS) $(LINK_LIBS)
    29         $(NM) -g -n $(basename $@).exe > $(basename $@).num
    30         $(SIZE) $(basename $@).exe
    31 endef
    32 # Miscellaneous additions go here
    33 
  • make/custom/mbx8xx.cfg

    r44cc441 r6087a692  
    4646CPU_CFLAGS = -mcpu=$(8XX_CPU_TYPE) -Dmpc$(8XX_CPU_TYPE) -D$(RTEMS_MBX_MODEL)
    4747
    48 
    4948# optimize flag: typically -O2
    5049CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
    51 
    52 define make-exe
    53         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) $(MBX8xx_LDFLAGS) \
    54             -o $(basename $@)_sym.exe $(LINK_OBJS) $(LINK_LIBS)
    55         $(NM) -g -n $(basename $@)_sym.exe > $(basename $@).nm
    56         cp $(basename $@)_sym.exe $(basename $@).exe
    57         $(STRIP) $(basename $@).exe
    58         $(SIZE) $(basename $@)_sym.exe
    59 endef
    60 
    61 # Miscellaneous additions go here
    6250
    6351# Override default start file
    6452START_BASE=
    6553
     54AM_LDFLAGS += $(MBX8xx_LDFLAGS)
     55
     56define bsp-post-link
     57        cp $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
     58        $(STRIP) $(basename $@)$(DOWNEXT)
     59        $(default-bsp-post-link)
     60endef
  • make/custom/mcf5206elite.cfg

    r44cc441 r6087a692  
    2121# optimize flag: typically -O2
    2222CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
    23 
    24 # The following are definitions of make-exe which will work using ld as
    25 # is currently required.
    26 
    27 define make-exe
    28         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
    29             $(LINK_OBJS) $(LINK_LIBS)
    30         $(NM) -g -n $@ > $(basename $@).num
    31         $(SIZE) $@
    32 endef
    33 
    34 # Miscellaneous additions go here
  • make/custom/mcf5235.cfg

    r44cc441 r6087a692  
    2121CPU_CFLAGS = -m528x
    2222
    23 
    2423# optimize flag: typically -O2
    2524CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
    26 
    2725
    2826ifndef MTARGET
     
    3028endif
    3129
    32 # The following are definitions of make-exe which will work using ld as
     30# This defines the operations performed on the linked executable.
    3331# is currently required.
    34 
    35 define bsp-link-c
    36         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    37             -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS)
    38 endef
    39 
    40 define bsp-link-cxx
    41         $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) \
    42             -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS)
    43 endef
    44 
    4532define bsp-post-link
    46         $(OBJCOPY) -O binary --strip-all $(basename $@)$(EXEEXT) $(basename $@).nxe
     33        $(OBJCOPY) -O binary --strip-all \
     34            $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
    4735        $(SIZE) $(basename $@)$(EXEEXT)
    4836endef
    49 
    50 define make-exe
    51        $(bsp-link-c)
    52        $(bsp-post-link)
    53 endef
    54 
    55 define make-cxx-exe
    56        $(bsp-link-cxx)
    57        $(bsp-post-link)
    58 endef
    59 
    60 # Miscellaneous additions go here
  • make/custom/mcp750.cfg

    r44cc441 r6087a692  
    2121CFLAGS_OPTIMIZE_V = -O2 -g -mmultiple -mstring -mstrict-align
    2222
    23 define make-exe
    24         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    25            -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
    26         $(NM) -g -n $(basename $@).nxe > $(basename $@).num
    27         $(SIZE) $(basename $@).nxe
    28         $(OBJCOPY) -O binary -R .comment -S $(basename $@).nxe rtems
     23define bsp-post-link
     24        $(default-bsp-post-link)
     25        $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems
    2926        gzip -vf9 rtems
    30         $(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \
    31         -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \
    32         -Map $(basename $@).map && chmod 755 $@
     27        $(LD) -o $(basename $@)$(DOWNEXT) \
     28            $ $(PROJECT_RELEASE)/lib/bootloader.o \
     29            --just-symbols=$(basename $@)$(EXEEXT) \
     30            -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \
     31            -Map $(basename $@).map && chmod 755 $@
    3332        rm -f rtems.gz
    3433endef
    35 
    36 # Miscellaneous additions go here
  • make/custom/mpc8260ads.cfg

    r44cc441 r6087a692  
    2222# optimize flag: typically -O2
    2323CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
    24 
    25 # The following are definitions of make-exe which will work using ld as
    26 # is currently required.
    27 
    28 define make-exe
    29         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
    30             $(LINK_OBJS) $(LINK_LIBS)
    31         $(NM) -g -n $@ > $(basename $@).num
    32         $(SIZE) $@
    33 endef
    34 
    35 # Miscellaneous additions go here
  • make/custom/mrm332.cfg

    r44cc441 r6087a692  
    2020CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
    2121
    22 # The following are definitions of make-exe which will work using ld as
    23 # is currently required.
    24 
    2522ifeq ($(MRM_IN_ROM),yes)
    2623# Build a rommable image - move the .data section after the .text section
     
    2825CPU_CFLAGS += -qnolinkcmds -T $(exec_prefix)/mrm332/lib/linkcmds_ROM
    2926endif
    30 
    31 #  This is a good way to get debug information.  The output file is large
    32 #  though and greatly slows the build process so only do this if needed.
    33 #       $(OBJDUMP) -dxC $(basename $@).nxe > $(basename $@).dump
    34 #
    35 #  chrisj: This is questionable. Why not keep unstipped ELF files
    36 #          about the use objdump and nm to get at the debug
    37 #          information rather than subject everyone to this.
    38 #
    39 
    40 define bsp-link-c
    41         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@)$(EXEEXT) \
    42             $(LINK_OBJS) $(LINK_LIBS)
    43 endef
    44 define bsp-link-cxx
    45         $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@)$(EXEEXT) \
    46             $(LINK_OBJS) $(LINK_LIBS)
    47 endef
    4827
    4928ifeq ($(MRM_IN_ROM),yes)
     
    6140        $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec
    6241        sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \
    63             $(PACKHEX) > $(basename $@).nxe
     42            $(PACKHEX) > $(basename $@)$(DOWNEXT)
    6443        $(NM) -g -n $(basename $@).pxe > $(basename $@).pnum
    65         $(NM) -g -n $(basename $@).nxe > $(basename $@).num
    66         $(SIZE) $(basename $@)$(EXEEXT)
     44        rm -f $(basename $@).srec $(basename $@).srec
     45        $(default-bsp-post-link)
    6746endef
    6847else
    6948define bsp-post-link
    7049        $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec
    71 #       m68k-rtems-objdump -dxC $(basename $@).nxe > $(basename $@).dump
    7250        sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \
    73             $(PACKHEX) > $(basename $@).nxe
    74         $(NM) -g -n $(basename $@)$(EXEEXT) > $(basename $@).num
    75         $(SIZE) $(basename $@)$(EXEEXT)
     51            $(PACKHEX) > $(basename $@)$(DOWNEXT)
     52        rm -f $(basename $@).srec
     53        $(default-bsp-post-link)
    7654endef
    7755endif
    78 
    79 define make-exe
    80        $(bsp-link-c)
    81        $(bsp-post-link)
    82 endef
    83 
    84 define make-cxx-exe
    85        $(bsp-link-cxx)
    86        $(bsp-post-link)
    87 endef
    88 
    89 # Miscellaneous additions go here
  • make/custom/mtx603e.cfg

    r44cc441 r6087a692  
    2020CFLAGS_OPTIMIZE_V = -O2 -g -mmultiple -mstring -mstrict-align
    2121
    22 define make-exe
    23         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    24            -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
    25         $(NM) -g -n $(basename $@).nxe > $(basename $@).num
    26         $(SIZE) $(basename $@).nxe
    27         $(OBJCOPY) -O binary -R .comment -S $(basename $@).nxe rtems
     22define bsp-post-link
     23        $(default-bsp-post-link)
     24        $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems
    2825        gzip -vf9 rtems
    29         $(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \
    30         -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \
    31         -Map $(basename $@).map && chmod 755 $@
     26        $(LD) -o $(basename $@)$(DOWNEXT) \
     27           $(PROJECT_RELEASE)/lib/bootloader.o \
     28            --just-symbols=$(basename $@)$(EXEEXT) \
     29            -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \
     30            -Map $(basename $@).map && chmod 755 $@
    3231        rm -f rtems.gz
    3332endef
  • make/custom/mvme136.cfg

    r44cc441 r6087a692  
    2222CFLAGS_OPTIMIZE_V = -Os -g -fomit-frame-pointer -DNDEBUG
    2323
    24 # The following are definitions of make-exe which will work using ld as
    25 # is currently required.
     24define bsp-post-link
     25        $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec
     26        sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \
     27            $(PACKHEX) > $(basename $@)$(DOWNEXT)
     28        rm -f $(basename $@).srec
     29        $(default-bsp-post-link)
     30endef
    2631
    27 define make-exe
    28         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
    29             $(LINK_OBJS) $(LINK_LIBS)
    30         $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).srec
    31         sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \
    32             $(PACKHEX) > $(basename $@).exe
    33         $(NM) -g -n $(basename $@).nxe > $(basename $@).num
    34         $(SIZE) $(basename $@).nxe
    35 endef
    36 # Miscellaneous additions go here
    37 
  • make/custom/mvme147.cfg

    r44cc441 r6087a692  
    2020CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
    2121
    22 # The following are definitions of make-exe which will work using ld as
    23 # is currently required.
    24 
    25 define make-exe
    26         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
    27             $(LINK_OBJS) $(LINK_LIBS)
    28         $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).srec
     22define bsp-post-link
     23        $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec
    2924        sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \
    30             $(PACKHEX) > $(basename $@).exe
    31         $(NM) -g -n $(basename $@).nxe > $(basename $@).num
    32         $(SIZE) $(basename $@).nxe
     25            $(PACKHEX) > $(basename $@)$(DOWNEXT)
     26        rm -f $(basename $@).srec
     27        $(default-bsp-post-link)
    3328endef
    34 # Miscellaneous additions go here
    35 
  • make/custom/mvme162.cfg

    r44cc441 r6087a692  
    2424CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
    2525
    26 # The following are definitions of make-exe which will work using ld as
    27 # is currently required.
    28 
    29 define make-exe
    30         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    31             -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
    32         #$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).srec
    33         #sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \
    34         #    $(PACKHEX) > $(basename $@).exe
    35         $(OBJCOPY) -O binary $(basename $@).nxe $(basename $@).exe
    36         $(NM) -g -n $(basename $@).nxe > $(basename $@).num
    37         $(SIZE) $(basename $@).nxe
     26define bsp-post-link
     27        $(default-bsp-post-link)
     28        $(OBJCOPY) -O binary $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
    3829endef
    39 
    40 # Miscellaneous additions go here
    4130
    4231# BSP-specific tools
  • make/custom/mvme162lx.cfg

    r44cc441 r6087a692  
    3030CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
    3131
    32 # The following are definitions of make-exe which will work using ld as
    33 # is currently required.
    34 
    35 define make-exe
    36         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    37             -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
    38         #$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).srec
    39         #sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \
    40         #    $(PACKHEX) > $(basename $@).exe
    41         $(OBJCOPY) -O binary $(basename $@).nxe $(basename $@).exe
    42         $(NM) -g -n $(basename $@).nxe > $(basename $@).num
    43         $(SIZE) $(basename $@).nxe
     32define bsp-post-link
     33        $(default-bsp-post-link)
     34        $(OBJCOPY) -O binary $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
    4435endef
    45 
    46 # Miscellaneous additions go here
    4736
    4837# BSP-specific tools
  • make/custom/mvme167.cfg

    r44cc441 r6087a692  
    2828CFLAGS_OPTIMIZE_V = -O2 -g -fno-omit-frame-pointer
    2929
    30 # Here is the rule to actually build a $(ARCH)/foo.exe
    31 # It also builds $(ARCH)/foo.nm
    32 # Usage ref: src/tests/sptest/sp1/Makefile
    33 #
    3430# We use TFTP to transfer files to the MVME167. We generate binary files
    3531# rather than S-records. We skip the header during downloads.
    36 
    37 # The following are definitions of make-exe which will work using ld as
    38 # is currently required.
    3932
    4033# The MC68040 does not implement all MC68881/MC68882 instructions, so use
     
    4841# Floating-point support will then be limited. See the mvme167 README file
    4942# for more details.
    50 define make-exe
    51         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@)_sym.exe \
    52             $(LINK_OBJS) $(LINK_LIBS)
    53         $(NM) -g -n $(basename $@)_sym.exe > $(basename $@).nm
    54         cp $(basename $@)_sym.exe $(basename $@).exe
    55         $(STRIP) $(basename $@).exe
    56         $(SIZE) $(basename $@)_sym.exe
     43define bsp-post-link
     44        $(default-bsp-post-link)
     45        cp $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
     46        $(STRIP) $(basename $@)$(DOWNEXT)
    5747endef
    58 
    59 # Miscellaneous additions go here
  • make/custom/mvme2100.cfg

    r44cc441 r6087a692  
    2020CFLAGS_OPTIMIZE_V = -O2 -g -mmultiple -mstring -mstrict-align
    2121
    22 define make-exe
    23         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    24            -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
    25         $(NM) -g -n $(basename $@).nxe > $(basename $@).num
    26         $(SIZE) $(basename $@).nxe
    27         $(OBJCOPY) -O binary -R .comment -S $(basename $@).nxe rtems
     22define bsp-post-link
     23        $(default-bsp-post-link)
     24        $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems
    2825        gzip -vf9 rtems
    29         $(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \
    30         -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \
    31         -Map $(basename $@).map && chmod 755 $@
     26        $(LD) -o $(basename $@)$(DOWNEXT) \
     27            $(PROJECT_RELEASE)/lib/bootloader.o \
     28            --just-symbols=$(basename $@)$(EXEEXT) \
     29            -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \
     30            -Map $(basename $@).map && chmod 755 $@
    3231        rm -f rtems.gz
    3332endef
    34 
    35 define make-cxx-exe
    36         $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) \
    37            -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
    38         $(NM) -g -n $(basename $@).nxe > $(basename $@).num
    39         $(SIZE) $(basename $@).nxe
    40         $(OBJCOPY) -O binary -R .comment -S $(basename $@).nxe rtems
    41         gzip -vf9 rtems
    42         $(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \
    43         -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \
    44         -Map $(basename $@).map && chmod 755 $@
    45         rm -f rtems.gz
    46 endef
    47 
    48 # Miscellaneous additions go here
  • make/custom/mvme2307.cfg

    r44cc441 r6087a692  
    2121CFLAGS_OPTIMIZE_V = -O2 -g
    2222
    23 define make-exe
    24         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    25            -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
    26         $(NM) -g -n $(basename $@).nxe > $(basename $@).num
    27         $(SIZE) $(basename $@).nxe
    28         $(OBJCOPY) -O binary -R .comment -S $(basename $@).nxe rtems
     23define bsp-post-link
     24        $(default-bsp-post-link)
     25        $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems
    2926        gzip -vf9 rtems
    30         $(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \
    31         -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \
    32         -Map $(basename $@).map && chmod 755 $@
     27        $(LD) -o $(basename $@)$(DOWNEXT)  $(PROJECT_RELEASE)/lib/bootloader.o \
     28            --just-symbols=$(basename $@)$(EXEEXT) \
     29            -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \
     30            -Map $(basename $@).map && chmod 755 $@
    3331        rm -f rtems.gz
    3432endef
    3533
    36 # Miscellaneous additions go here
    37 
    3834# No start file
    3935START_BASE=
  • make/custom/mvme3100.cfg

    r44cc441 r6087a692  
    2929CFLAGS_DEBUG_V = -O1 -g
    3030
    31 define make-exe
    32         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(@:%.exe=%.nxe) $(LINK_OBJS) $(LINK_LIBS)
    33         $(NM) -g -n $(@:%.exe=%.nxe) > $(basename $(@:%.exe=%.nxe)).num
    34         $(SIZE) $(@:%.exe=%.nxe)
    35 #       test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin
    36         $(OBJCOPY) -Obinary $(@:%.exe=%.nxe) $(@:%.exe=%)$(LIB_VARIANT).exe
    37 endef
    38 
    39 define make-cxx-exe
    40         $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(@:%.exe=%.nxe) $(LINK_OBJS) $(LINK_LIBS)
    41         $(NM) -g -n $(@:%.exe=%.nxe) > $(basename $(@:%.exe=%.nxe)).num
    42         $(SIZE) $(@:%.exe=%.nxe)
    43 #       test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin
    44         $(OBJCOPY) -Obinary $(@:%.exe=%.nxe) $(@:%.exe=%)$(LIB_VARIANT).exe
    45 endef
     31define bsp-post-link
     32        $(default-bsp-post-link)
     33        $(OBJCOPY) -O binary $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
     34endif
    4635
    4736# Miscellaneous additions go here
  • make/custom/mvme5500.cfg

    r44cc441 r6087a692  
    2323CFLAGS_OPTIMIZE_V = -O2 -g
    2424
    25 define make-exe
    26         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
    27         $(NM) -g -n $@ > $(basename $@).num
    28         $(SIZE) $@
    29         $(OBJCOPY) -Obinary $@ $(@:%.exe=%)$(LIB_VARIANT).bin
     25define bsp-post-link
     26        $(default-bsp-post-link)
     27        $(OBJCOPY) -O binary $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
    3028endef
    31 
    32 # Miscellaneous additions go here
    3329
    3430# No start file
  • make/custom/nios2_iss.cfg

    r44cc441 r6087a692  
    2424CFLAGS_OPTIMIZE_V = -O0 -g
    2525
    26 # The following are definitions of make-exe which will work using ld as
    27 # is currently required.
    28 
    29 define make-exe
    30         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
    31             $(LINK_OBJS) $(LINK_LIBS)
    32         $(OBJCOPY) -O binary --strip-all $(basename $@).nxe -R entry -R exceptions $@
    33         $(SIZE) $(basename $@).nxe
     26define bsp-post-link
     27        $(OBJCOPY) -O binary --strip-all $(basename $@)$(EXEEXT) \
     28            -R entry -R exceptions $(basename $@)$(DOWNEXT)
     29        $(default-bsp-post-link)
    3430endef
    35 define make-cxx-exe
    36         $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
    37             $(LINK_OBJS) $(LINK_LIBS)
    38         $(OBJCOPY) -O binary --strip-all $(basename $@).nxe -R entry -R exceptions $@
    39         $(SIZE) $(basename $@).nxe
    40 endef
    41 
    42 # Miscellaneous additions go here
  • make/custom/ods68302.cfg

    r44cc441 r6087a692  
    2828CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
    2929
    30 # The following are definitions of make-exe which will work using ld as
    31 # is currently required.
    32 
    33 define make-exe
    34         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    35             -o $@ \
    36             $(LINK_OBJS) $(LINK_LIBS)
    37         $(NM) -g -n $@ > $(basename $@).num
    38         $(SIZE) $@
    39 endef
    40 
    41 # Miscellaneous additions go here
    42 
    4330ifeq ($(RTEMS_DEBUGGER),yes)
    4431LINKCMDS=$(PROJECT_RELEASE)/lib/debugrom
  • make/custom/pc386.cfg

    r44cc441 r6087a692  
    2424CFLAGS_OPTIMIZE_V = -O2 -g
    2525
    26 # Here is the rule to actually build a $(ARCH)/foo.exe
     26# Here is the rule to actually build a $(ARCH)/foo$(EXEEXT)
    2727# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm
    2828# Usage ref: src/tests/sptest/sp1/Makefile
     
    4343HEADERADDR=0x00097E00
    4444
    45 # The following are definitions of make-exe which will work using ld as
    46 # is currently required.
    47 
    48 define bsp-link-c
    49         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Ttext,$(RELOCADDR) \
    50             -o $(basename $@)$(EXEEXT) \
    51             $(LINK_OBJS) $(LINK_LIBS)
    52 endef
    53 
    54 define bsp-link-cxx
    55         $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Ttext,$(RELOCADDR) \
    56             -o $(basename $@)$(EXEEXT) \
    57             $(LINK_OBJS) $(LINK_LIBS)
    58 endef
     45AM_LDFLAGS+= -Wl,-Ttext,$(RELOCADDR)
    5946
    6047define bsp-post-link
     48        $(default-bsp-post-link)
    6149        $(OBJCOPY) -O elf32-i386 \
    6250            --remove-section=.rodata \
     
    6553            --strip-unneeded $(basename $@)$(EXEEXT) $(basename $@).nxe
    6654        $(OBJCOPY) -O binary $(basename $@).nxe $(basename $@).bin
    67         $(PROJECT_TOOLS)/bin2boot -v $(basename $@).bt $(HEADERADDR)\
     55        $(PROJECT_TOOLS)/bin2boot -v $(basename $@)$(DOWNEXT) $(HEADERADDR)\
    6856          $(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0
    69         $(NM) -g -n $(basename $@)$(EXEEXT) > $(basename $@).num
    70         $(SIZE) $(basename $@)$(EXEEXT)
    71 #       test -d ${PROJECT_RELEASE}/BootImgs \
    72 #         || mkdir ${PROJECT_RELEASE}/BootImgs
    73 #       f=`basename $@ .exe`; \
    74 #        cp $(basename $@).bt \
    75 #           ${PROJECT_RELEASE}/BootImgs/$${f}$(LIB_VARIANT).bt \
    76 #       && chmod 755 \
    77 #         ${PROJECT_RELEASE}/BootImgs/$${f}$(LIB_VARIANT).bt
    78 #       $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Ttext,$(RELOCADDR) \
    79 #           -o $@ $(LINK_OBJS) $(LINK_LIBS)
     57        rm -f $(basename $@).nxe
    8058endef
    81 
    82 define make-exe
    83        $(bsp-link-c)
    84        $(bsp-post-link)
    85 endef
    86 
    87 define make-cxx-exe
    88        $(bsp-link-cxx)
    89        $(bsp-post-link)
    90 endef
    91 
    92 # Miscellaneous additions go here
    9359
    9460# BSP-specific tools
  • make/custom/posix.cfg

    r44cc441 r6087a692  
    1818START_BASE=
    1919
    20 # Here is the rule to actually build a $(ARCH)/foo.exe
     20# Here is the rule to actually build a $(ARCH)/foo$(EXEEXT)
    2121# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm
    2222# Usage ref: src/tests/sptest/sp1/Makefile
  • make/custom/psim.cfg

    r44cc441 r6087a692  
    2121# optimize flag: typically -O2
    2222CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
    23 
    24 define make-exe
    25         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
    26             $(LINK_OBJS) $(LINK_LIBS)
    27         $(NM) -g -n $@ > $(basename $@).num
    28         $(SIZE) $@
    29 endef
    30 
    31 # Miscellaneous additions go here
  • make/custom/rbtx4925.cfg

    r44cc441 r6087a692  
    1919CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
    2020
    21 # The following are definitions of make-exe which will work using ld as
    22 # is currently required.
    23 
    24 define make-exe
    25         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    26             -o $@ -Xlinker -Map -Xlinker $(basename $@).map $(LINK_OBJS) $(LINK_LIBS)
     21define bsp-post-link
    2722        $(OBJCOPY) -O srec $@ $(basename $@).srec1
    28         $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
     23        $(PACKHEX) < $(basename $@).srec1 > $(basename $@)$(DOWNEXT)
    2924        $(RM) $(basename $@).srec1
    30         $(NM) -g -n $@ > $(basename $@).num
    31         $(SIZE) $@
     25        $(default-bsp-post-link)
    3226endef
    33 
    34 # Miscellaneous additions go here
    35 
  • make/custom/rbtx4938.cfg

    r44cc441 r6087a692  
    1919CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
    2020
    21 # The following are definitions of make-exe which will work using ld as
    22 # is currently required.
    23 
    24 define make-exe
    25         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    26             -o $@ -Xlinker -Map -Xlinker $(basename $@).map $(LINK_OBJS) $(LINK_LIBS)
    27         $(OBJCOPY) --srec-len=30 -O srec $@ $(basename $@).srec
     21define bsp-post-link
     22        $(OBJCOPY) --srec-len=30 -O srec $@ $(basename $@)$(DOWNEXT)
     23        $(default-bsp-post-link)
    2824endef
    29 
    30 # Miscellaneous additions go here
    31 
  • make/custom/rtl22xx.cfg

    r44cc441 r6087a692  
    2323# -O2 so far.
    2424CFLAGS_OPTIMIZE_V = -Os -g -DNDEBUG
    25 
    26 define make-exe
    27         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
    28             $(LINK_OBJS) $(LINK_LIBS) -Wl,-Map,$(basename $@).map
    29         $(NM) -g -n $(basename $@).exe > $(basename $@).num
    30         $(SIZE) $(basename $@).exe
    31 endef
    32 
    33 # Miscellaneous additions go here
  • make/custom/score603e.cfg

    r44cc441 r6087a692  
    2626CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
    2727
    28 define make-exe
    29         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    30             -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
    31         $(NM) -g -n $(basename $@).nxe > $(basename $@).num
    32         $(SIZE) $(basename $@).nxe
    33         $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).s1
     28define bsp-post-link
     29        $(default-bsp-post-link)
     30        $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).s1
    3431        sed -e 's/.$$//' $(basename $@).s1 | \
    35           $(PACKHEX) >$(basename $@).exe
     32          $(PACKHEX) >$(basename $@)$(DOWNEXT)
    3633        rm -f $(basename $@).s1
    3734endef
    38 
    39 # Miscellaneous additions go here
  • make/custom/shsim.cfg

    r44cc441 r6087a692  
    2020# optimize flag: typically -O2
    2121CFLAGS_OPTIMIZE_V = -O2 -g
    22 
    23 # The following are definitions of make-exe which will work using ld as
    24 # is currently required.
    25 
    26 define make-exe
    27         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    28             $(LDLIBS) -o $@ \
    29             $(LINK_OBJS) $(LINK_LIBS)
    30         $(NM) -g -n $@ > $(basename $@).num
    31         $(SIZE) $@
    32 endef
    33 
    34 # Miscellaneous additions go here
    35 
  • make/custom/sim68000.cfg

    r44cc441 r6087a692  
    2020CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
    2121
    22 # The following are definitions of make-exe which will work using ld as
    23 # is currently required.
    24 
    25 define make-exe
    26         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    27             -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
    28         $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).exe
    29         $(NM) -g -n $(basename $@).nxe > $(basename $@).num
    30         $(SIZE) $(basename $@).nxe
     22define bsp-post-link
     23        $(default-bsp-post-link)
     24        $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
    3125endef
    32 # Miscellaneous additions go here
  • make/custom/simcpu32.cfg

    r44cc441 r6087a692  
    2020CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
    2121
    22 # The following are definitions of make-exe which will work using ld as
    23 # is currently required.
    24 
    25 define make-exe
    26         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
    27             -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
    28         $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).exe
    29         $(NM) -g -n $@ > $(basename $@).num
    30         $(SIZE) $@
     22define bsp-post-link
     23        $(default-bsp-post-link)
     24        $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
    3125endef
    32 
    33 # Miscellaneous additions go here
  • make/custom/simsh4.cfg

    r44cc441 r6087a692  
    2929CPU_CFLAGS = -m4 -ml
    3030
    31 
    3231# optimize flag: typically -O2
    3332CFLAGS_OPTIMIZE_V = -O2 -g
    34 
    35 # The following are definitions of make-exe which will work using ld as
    36 # is currently required.
    37 
    38 define make-exe
    39         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Map,$(basename $@).map \
    40             $(LDLIBS) -o $@ \
    41             $(LINK_OBJS) $(LINK_LIBS)
    42         $(NM) -g -n $@ > $(basename $@).num
    43         $(SIZE) $@
    44 endef
    45 
    46 # Miscellaneous additions go here
  • make/custom/simsh7032.cfg

    r44cc441 r6087a692  
    2222# optimize flag: typically -O2
    2323CFLAGS_OPTIMIZE_V = -O2 -g
    24 
    25 # Miscellaneous additions go here
  • make/custom/simsh7045.cfg

    r44cc441 r6087a692  
    2222# optimize flag: typically -O2
    2323CFLAGS_OPTIMIZE_V = -O2 -g
    24 
    25 # Miscellaneous additions go here
  • make/custom/sis.cfg

    r44cc441 r6087a692  
    66
    77include $(RTEMS_ROOT)/make/custom/erc32.cfg
    8 
  • make/custom/ss555.cfg

    r44cc441 r6087a692  
    2828CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
    2929
    30 define make-exe
    31         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) $(SS555_LDFLAGS) \
    32             -o $(basename $@)_sym.exe $(LINK_OBJS) $(LINK_LIBS)
    33         $(NM) -g -n $(basename $@)_sym.exe > $(basename $@).nm
    34         cp $(basename $@)_sym.exe $(basename $@).exe
    35         $(STRIP) $(basename $@).exe
    36         $(SIZE) $(basename $@)_sym.exe
     30define bsp-post-link
     31        $(default-bsp-post-link)
     32        cp $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
     33        $(STRIP) $(basename $@)$(DOWNEXT)
    3734endef
    38 
    39 # Miscellaneous additions go here
    4035
    4136# Override default start file
  • make/custom/ts_386ex.cfg

    r44cc441 r6087a692  
    2222CFLAGS_OPTIMIZE_V = -O2 -g
    2323
    24 define make-exe
    25         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
    26             $(LINK_OBJS) $(LINK_LIBS)
    27         $(OBJCOPY) -O binary $(basename $@).nxe $(basename $@).exe
    28         $(NM) -g -n $(basename $@).nxe > $(basename $@).num
    29         $(SIZE) $(basename $@).nxe
     24define bsp-post-link
     25        $(default-bsp-post-link)
     26        $(OBJCOPY) -O binary $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
    3027endef
    31 
    32 # Miscellaneous additions go here
    33 
  • make/custom/uC5282.cfg

    r44cc441 r6087a692  
    1818CFLAGS_OPTIMIZE_V = -O2 -g
    1919
    20 # The following are definitions of make-exe which will work using ld as
    21 # is currently required.
    22 
    23 define make-exe
    24         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
    25             $(LINK_OBJS) $(LINK_LIBS)
    26         $(OBJCOPY) -O binary --strip-all $(basename $@).nxe $@
    27         $(SIZE) $(basename $@).nxe
     20define bsp-post-link
     21        $(default-bsp-post-link)
     22        $(OBJCOPY) -O binary $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
    2823endef
    29 define make-cxx-exe
    30         $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
    31             $(LINK_OBJS) $(LINK_LIBS)
    32         $(OBJCOPY) -O binary --strip-all $(basename $@).nxe $@
    33         $(SIZE) $(basename $@).nxe
    34 endef
    35 
    36 # Miscellaneous additions go here
  • make/custom/virtex.cfg

    r44cc441 r6087a692  
    33#
    44#  $Id$
    5 #
    6 #  this is derived from:
    7 #
    8 #  Config file for a PowerPC 403 based helas403 card
    9 #
    10 #  Id: helas403.cfg,v 1.8 2000/07/13 15:05:38 joel Exp
    11 #
    125#
    136
     
    3023CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
    3124
    32 
    3325# No start file
    3426START_BASE=
    3527
    36 # The following are definitions of make-exe which will work using ld as
    37 # is currently required.  It is expected that as of gcc 2.8, the end user
    38 # will be able to override parts of the compilers specs and link using gcc.
    39 
    40 define make-exe
    41         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
    42         $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec
    43         $(NM) -g -n $@ > $(basename $@).num
    44         $(SIZE) $@
     28define bsp-post-link
     29        $(default-bsp-post-link)
     30        $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
    4531endef
    46 
    47 #       $(OBJCOPY) -O srec --srec-len 120 $(basename $@).exe $(basename $@).srec
    48 define make-cxx-exe
    49         $(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \
    50             -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
    51         $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec
    52         $(NM) -g -n $@ > $(basename $@).num
    53         $(SIZE) $@
    54 endef
    55 
    56 # Miscellaneous additions go here
    57 
Note: See TracChangeset for help on using the changeset viewer.