diff options
Diffstat (limited to 'make/custom/genmcf548x.cfg')
-rw-r--r-- | make/custom/genmcf548x.cfg | 22 |
1 files changed, 5 insertions, 17 deletions
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 |