From 6087a6925701db0d0da461fc38ec39bd73d02390 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 6 Mar 2008 21:51:01 +0000 Subject: 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. --- make/custom/nios2_iss.cfg | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'make/custom/nios2_iss.cfg') diff --git a/make/custom/nios2_iss.cfg b/make/custom/nios2_iss.cfg index 11eef1f6b8..2e38d22e22 100644 --- a/make/custom/nios2_iss.cfg +++ b/make/custom/nios2_iss.cfg @@ -23,20 +23,8 @@ CPU_CFLAGS = -mno-hw-mul -mno-hw-div # ATM, doesn't work with optimization levels > 0 CFLAGS_OPTIMIZE_V = -O0 -g -# 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) - $(OBJCOPY) -O binary --strip-all $(basename $@).nxe -R entry -R exceptions $@ - $(SIZE) $(basename $@).nxe -endef -define make-cxx-exe - $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \ - $(LINK_OBJS) $(LINK_LIBS) - $(OBJCOPY) -O binary --strip-all $(basename $@).nxe -R entry -R exceptions $@ - $(SIZE) $(basename $@).nxe +define bsp-post-link + $(OBJCOPY) -O binary --strip-all $(basename $@)$(EXEEXT) \ + -R entry -R exceptions $(basename $@)$(DOWNEXT) + $(default-bsp-post-link) endef - -# Miscellaneous additions go here -- cgit v1.2.3