Changeset fb2205a in rtems


Ignore:
Timestamp:
Sep 9, 2008, 4:30:27 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
e59d23ad
Parents:
5aa1855
Message:

2008-09-09 Joel Sherrill <joel.sherrill@…>

  • leaf.cfg, compilers/gcc-target-default.cfg, custom/bf537Stamp.cfg, custom/gen5200.cfg, custom/gen83xx.cfg, custom/genmcf548x.cfg, custom/mbx8xx.cfg, custom/mpc55xx.cfg, custom/nds.cfg, custom/pc386.cfg, custom/tqm8xx.cfg: Remove use of AM_LDFLAGS. Ensure LDFLAGS works all the time. Clean up BSPs which defined their own make-exe rules inappropriately.
Location:
make
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • make/ChangeLog

    r5aa1855 rfb2205a  
     12008-09-09      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * leaf.cfg, compilers/gcc-target-default.cfg, custom/bf537Stamp.cfg,
     4        custom/gen5200.cfg, custom/gen83xx.cfg, custom/genmcf548x.cfg,
     5        custom/mbx8xx.cfg, custom/mpc55xx.cfg, custom/nds.cfg,
     6        custom/pc386.cfg, custom/tqm8xx.cfg: Remove use of AM_LDFLAGS. Ensure
     7        LDFLAGS works all the time. Clean up BSPs which defined their own
     8        make-exe rules inappropriately.
     9
    1102008-09-03      Sebastian Huber <sebastian.huber@embedded-brains.de>
    211
  • make/compilers/gcc-target-default.cfg

    r5aa1855 rfb2205a  
    6969LD_PATHS= $(PROJECT_RELEASE)/lib
    7070
    71 # libraries you want EVERYONE to link with
    72 #LD_LIBS=
    73 
    74 # ld flag to ensure pure-text
    75 #LDFLAGS_MUST_BE_PURE_V =
    76 
    77 # ld flag for [un]shared objects
    78 #LDFLAGS_STATIC_LIBRARIES_V =
    79 #LDFLAGS_SHARED_LIBRARIES_V =
    80 
    8171# ld flag for incomplete link
    8272LDFLAGS_INCOMPLETE = -r
    8373
    84 # Special linker options when building lib.so
    85 LDFLAGS_DYNAMIC_V = ??
    86 
    87 # Some dynamic linking systems want the preferred name recorded in the binary
    88 # ref: src/libxil/Makefile
    89 LDFLAGS_DYNAMIC_LIBNAME_V = -h $(DYNAMIC_VERSION_LIBNAME)
    90 
    9174# ld flags for profiling, debugging
    9275LDFLAGS_DEBUG_V = -qrtems_debug
    9376
    94 LDFLAGS=$(LDFLAGS_DEBUG) $(LD_PATHS:%=-L %)
     77LDFLAGS += $(LDFLAGS_DEBUG) $(LD_PATHS:%=-L %)
    9578
    9679#
  • make/custom/bf537Stamp.cfg

    r5aa1855 rfb2205a  
    1313#  This contains the compiler options necessary to select the CPU model
    1414#  and (hopefully) optimize for it.
    15 #
    1615CPU_CFLAGS =
    1716
     
    1918# gcc-4.2.0 segfaults on -OX > -O0
    2019CFLAGS_OPTIMIZE_V = -O2 -g
    21 
    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             $(LDLIBS) -o $@ \
    28             $(LINK_OBJS) $(LINK_LIBS)
    29         $(NM) -g -n $@ > $(basename $@).num
    30         $(SIZE) $@
    31 endef
    32 
    33 # Miscellaneous additions go here
  • make/custom/gen5200.cfg

    r5aa1855 rfb2205a  
    2323CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
    2424
    25 AM_LDFLAGS += -qnolinkcmds -T $(RTEMS_LINKCMDS)
     25LDFLAGS += -qnolinkcmds -T $(RTEMS_LINKCMDS)
  • make/custom/gen83xx.cfg

    r5aa1855 rfb2205a  
    2727CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions -funit-at-a-time -W -Wno-unused
    2828
    29 AM_LDFLAGS+= -qnolinkcmds -T $(RTEMS_LINKCMDS)
     29LDFLAGS += -qnolinkcmds -T $(RTEMS_LINKCMDS)
  • make/custom/genmcf548x.cfg

    r5aa1855 rfb2205a  
    2222#endif
    2323
     24LDFLAGS = -qnolinkcmds -Wl,-T$(RTEMS_LINKCMDS)
    2425
    25 # The following are definitions of make-exe which will work using ld as
    26 # is currently required.
    27 
    28 
    29 define make-exe
    30         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
    31             $(LINK_OBJS) $(LINK_LIBS) -qnolinkcmds -Wl,-T$(RTEMS_LINKCMDS)
    32         $(OBJCOPY) -O binary --strip-all $(basename $@).nxe $@
    33         $(SIZE) $(basename $@).nxe
     26define bsp-post-link
     27        $(OBJCOPY) -O binary --strip-all $(basename $@).exe \
     28            $(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) -qnolinkcmds -Wl,-T$(RTEMS_LINKCMDS)
    38         $(OBJCOPY) -O binary --strip-all $(basename $@).nxe $@
    39         $(SIZE) $(basename $@).nxe
    40 endef
    41 
    42 # Miscellaneous additions go here
  • make/custom/mbx8xx.cfg

    r5aa1855 rfb2205a  
    5252START_BASE=
    5353
    54 AM_LDFLAGS += $(MBX8xx_LDFLAGS)
     54LDFLAGS += $(MBX8xx_LDFLAGS)
    5555
    5656define bsp-post-link
  • make/custom/mpc55xx.cfg

    r5aa1855 rfb2205a  
    1717
    1818# FIXME
    19 CPU_CFLAGS = -mcpu=8540 -meabi -msdata -fno-common -funit-at-a-time -D__ppc_generic -mstrict-align -D$(RTEMS_BOARD_MODEL)
     19CPU_CFLAGS = -mcpu=8540 -meabi -msdata -fno-common -funit-at-a-time \
     20    -D__ppc_generic -mstrict-align -D$(RTEMS_BOARD_MODEL)
    2021
    2122CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
    22 
    23 define make-exe
    24         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS)-o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
    25         $(NM) -g -n $(basename $@).exe > $(basename $@).num
    26         $(SIZE) $(basename $@).exe
    27 endef
  • make/custom/nds.cfg

    r5aa1855 rfb2205a  
    2424#CFLAGS_OPTIMIZE_V = -Os
    2525
    26 # The following are definitions of make-exe which will work using ld as
    27 # is currently required.
    28 
    2926NDSTOOL = $(PROJECT_TOOLS)/ndstool
    3027
     
    3835        $(default-bsp-post-link)
    3936        $(OBJCOPY) -O binary $(basename $@).exe $(basename $@).bin
    40         $(NDSTOOL) -c $(basename $@).nds -9 $(basename $@).bin -7 $(COPROC_ELF_PATH)/coproc.bin
     37        $(NDSTOOL) -c $(basename $@).nds -9 $(basename $@).bin \
     38            -7 $(COPROC_ELF_PATH)/coproc.bin
    4139        rm -f $(basename $@).bin
    4240endef
    43 
    44 # Miscellaneous additions go here
  • make/custom/pc386.cfg

    r5aa1855 rfb2205a  
    4545HEADERADDR=0x00097E00
    4646
    47 AM_LDFLAGS+= -Wl,-Ttext,$(RELOCADDR)
     47LDFLAGS += -Wl,-Ttext,$(RELOCADDR)
    4848
    4949define bsp-post-link
  • make/custom/tqm8xx.cfg

    r5aa1855 rfb2205a  
    1919
    2020RTEMS_LINKCMDS=linkcmds.tqm8xx
    21 AM_LDFLAGS+= -qnolinkcmds -T $(RTEMS_LINKCMDS)
     21LDFLAGS += -qnolinkcmds -T $(RTEMS_LINKCMDS)
    2222
    2323define bsp-post-link
  • make/leaf.cfg

    r5aa1855 rfb2205a  
    118118
    119119define bsp-link-c
    120         $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
     120        $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
    121121            -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
    122122endef
    123123
    124124define bsp-link-cxx
    125         $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
     125        $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
    126126            -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
    127127endef
Note: See TracChangeset for help on using the changeset viewer.