Changeset fb2205a in rtems for make/custom


Ignore:
Timestamp:
09/09/08 16:30:27 (16 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, 5, 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/custom
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.