From fb2205a11b25796f47b950ab64ff9e2446a55301 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 9 Sep 2008 16:30:27 +0000 Subject: 2008-09-09 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. --- make/custom/genmcf548x.cfg | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'make/custom/genmcf548x.cfg') diff --git a/make/custom/genmcf548x.cfg b/make/custom/genmcf548x.cfg index 680ac6d0d2..480a7a4c40 100644 --- a/make/custom/genmcf548x.cfg +++ b/make/custom/genmcf548x.cfg @@ -21,22 +21,10 @@ CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer #MTARGET=ram #endif +LDFLAGS = -qnolinkcmds -Wl,-T$(RTEMS_LINKCMDS) -# The following are definitions of make-exe which will work using ld as -# is currently required. - - -define make-exe - $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \ - $(LINK_OBJS) $(LINK_LIBS) -qnolinkcmds -Wl,-T$(RTEMS_LINKCMDS) - $(OBJCOPY) -O binary --strip-all $(basename $@).nxe $@ - $(SIZE) $(basename $@).nxe +define bsp-post-link + $(OBJCOPY) -O binary --strip-all $(basename $@).exe \ + $(basename $@)$(DOWNEXT) + $(default-bsp-post-link) endef -define make-cxx-exe - $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \ - $(LINK_OBJS) $(LINK_LIBS) -qnolinkcmds -Wl,-T$(RTEMS_LINKCMDS) - $(OBJCOPY) -O binary --strip-all $(basename $@).nxe $@ - $(SIZE) $(basename $@).nxe -endef - -# Miscellaneous additions go here -- cgit v1.2.3