diff options
Diffstat (limited to '')
-rw-r--r-- | make/custom/gba.cfg | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/make/custom/gba.cfg b/make/custom/gba.cfg index 618f98651f..3e4a5b3573 100644 --- a/make/custom/gba.cfg +++ b/make/custom/gba.cfg @@ -21,28 +21,10 @@ CPU_CFLAGS = -mcpu=$(RTEMS_CPU_MODEL) -msoft-float -mstructure-size-boundary=8 # optimize flag: typically -O2 CFLAGS_OPTIMIZE_V = -O2 -g -define make-exe - $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ - -Wl,-Map,$(basename $@).map -o $(basename $@).nxe \ - $(LINK_OBJS) $(LINK_LIBS) - $(OBJCOPY) -O binary $(basename $@).nxe $@ +# Some GBA simulators want a .gba extension. +define bsp-post-link $(OBJCOPY) -O binary --remove-section=.comment \ --remove-section=.note --strip-unneeded \ - $(basename $@).nxe $(basename $@).gba - $(NM) -g -n $(basename $@).nxe > $(basename $@).num - $(SIZE) $(basename $@).nxe + $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) + $(default-bsp-post-link) endef - -define make-cxx-exe - $(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \ - -Wl,-Map,$(basename $@).map -o $(basename $@).nxe \ - $(LINK_OBJS) $(LINK_LIBS) - $(OBJCOPY) -O binary $(basename $@).nxe $@ - $(OBJCOPY) -O binary --remove-section=.comment \ - --remove-section=.note --strip-unneeded \ - $(basename $@).nxe $(basename $@).gba - $(NM) -g -n $(basename $@).nxe > $(basename $@).num - $(SIZE) $(basename $@).nxe -endef - -# Miscellaneous additions go here |