summaryrefslogtreecommitdiffstats
path: root/make/custom/nios2_iss.cfg
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--make/custom/nios2_iss.cfg20
1 files changed, 4 insertions, 16 deletions
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