2005-11-22 Ralf Corsepius <ralf.corsepius@rtems.org>

* custom/gba.cfg, custom/pc386.cfg: Use .elf instead of .obj.
This commit is contained in:
Ralf Corsepius
2005-11-22 14:12:15 +00:00
parent dd8b491ef2
commit 63606e2329
3 changed files with 24 additions and 20 deletions

View File

@@ -1,3 +1,7 @@
2005-11-22 Ralf Corsepius <ralf.corsepius@rtems.org>
* custom/gba.cfg, custom/pc386.cfg: Use .elf instead of .obj.
2005-11-22 Ralf Corsepius <ralf.corsepius@rtems.org> 2005-11-22 Ralf Corsepius <ralf.corsepius@rtems.org>
* custom/dmv152.cfg, custom/i386ex.cfg, custom/idp.cfg, * custom/dmv152.cfg, custom/i386ex.cfg, custom/idp.cfg,

View File

@@ -31,26 +31,26 @@ CXXFLAGS_DEBUG_V=-O1 -ggdb
define make-exe define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-Wl,-Map,$(basename $@).map -o $(basename $@).obj \ -Wl,-Map,$(basename $@).map -o $(basename $@).elf \
$(LINK_OBJS) $(LINK_LIBS) $(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O binary $(basename $@).obj $@ $(OBJCOPY) -O binary $(basename $@).elf $@
$(OBJCOPY) -O binary --remove-section=.comment \ $(OBJCOPY) -O binary --remove-section=.comment \
--remove-section=.note --strip-unneeded \ --remove-section=.note --strip-unneeded \
$(basename $@).obj $(basename $@).gba $(basename $@).elf $(basename $@).gba
$(NM) -g -n $(basename $@).obj > $(basename $@).num $(NM) -g -n $(basename $@).elf > $(basename $@).num
$(SIZE) $(basename $@).obj $(SIZE) $(basename $@).elf
endef endef
define make-cxx-exe define make-cxx-exe
$(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \ $(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \
-Wl,-Map,$(basename $@).map -o $(basename $@).obj \ -Wl,-Map,$(basename $@).map -o $(basename $@).elf \
$(LINK_OBJS) $(LINK_LIBS) $(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O binary $(basename $@).obj $@ $(OBJCOPY) -O binary $(basename $@).elf $@
$(OBJCOPY) -O binary --remove-section=.comment \ $(OBJCOPY) -O binary --remove-section=.comment \
--remove-section=.note --strip-unneeded \ --remove-section=.note --strip-unneeded \
$(basename $@).obj $(basename $@).gba $(basename $@).elf $(basename $@).gba
$(NM) -g -n $(basename $@).obj > $(basename $@).num $(NM) -g -n $(basename $@).elf > $(basename $@).num
$(SIZE) $(basename $@).obj $(SIZE) $(basename $@).elf
endef endef
# Miscellaneous additions go here # Miscellaneous additions go here

View File

@@ -50,18 +50,18 @@ HEADERADDR=0x00097E00
define make-exe define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Ttext,$(RELOCADDR) \ $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Ttext,$(RELOCADDR) \
-o $(basename $@).obj \ -o $(basename $@).elf \
$(LINK_OBJS) $(LINK_LIBS) $(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O elf32-i386 \ $(OBJCOPY) -O elf32-i386 \
--remove-section=.rodata \ --remove-section=.rodata \
--remove-section=.comment \ --remove-section=.comment \
--remove-section=.note \ --remove-section=.note \
--strip-unneeded $(basename $@).obj $@ --strip-unneeded $(basename $@).elf $@
$(OBJCOPY) -O binary $(basename $@).obj $(basename $@).bin $(OBJCOPY) -O binary $(basename $@).elf $(basename $@).bin
$(PROJECT_TOOLS)/bin2boot -v $(basename $@).bt $(HEADERADDR)\ $(PROJECT_TOOLS)/bin2boot -v $(basename $@).bt $(HEADERADDR)\
$(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0 $(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0
$(NM) -g -n $(basename $@).obj > $(basename $@).num $(NM) -g -n $(basename $@).elf > $(basename $@).num
$(SIZE) $(basename $@).obj $(SIZE) $(basename $@).elf
# test -d ${PROJECT_RELEASE}/BootImgs \ # test -d ${PROJECT_RELEASE}/BootImgs \
# || mkdir ${PROJECT_RELEASE}/BootImgs # || mkdir ${PROJECT_RELEASE}/BootImgs
# f=`basename $@ .exe`; \ # f=`basename $@ .exe`; \
@@ -74,18 +74,18 @@ define make-exe
endef endef
define make-cxx-exe define make-cxx-exe
$(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \ $(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \
-Wl,-Ttext,$(RELOCADDR) -o $(basename $@).obj \ -Wl,-Ttext,$(RELOCADDR) -o $(basename $@).elf \
$(LINK_OBJS) $(LINK_LIBS) $(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O elf32-i386 \ $(OBJCOPY) -O elf32-i386 \
--remove-section=.rodata \ --remove-section=.rodata \
--remove-section=.comment \ --remove-section=.comment \
--remove-section=.note \ --remove-section=.note \
--strip-unneeded $(basename $@).obj $@ --strip-unneeded $(basename $@).elf $@
$(OBJCOPY) -O binary $(basename $@).obj $(basename $@).bin $(OBJCOPY) -O binary $(basename $@).elf $(basename $@).bin
$(PROJECT_TOOLS)/bin2boot -v $(basename $@).bt $(HEADERADDR)\ $(PROJECT_TOOLS)/bin2boot -v $(basename $@).bt $(HEADERADDR)\
$(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0 $(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0
$(NM) -g -n $(basename $@).obj > $(basename $@).num $(NM) -g -n $(basename $@).elf > $(basename $@).num
$(SIZE) $(basename $@).obj $(SIZE) $(basename $@).elf
endef endef
# Miscellaneous additions go here # Miscellaneous additions go here