diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-03-06 21:51:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-03-06 21:51:01 +0000 |
commit | 6087a6925701db0d0da461fc38ec39bd73d02390 (patch) | |
tree | 8c6b313b671f943f5c661ea16c6b0c645c0c6473 /make/custom/mvme2100.cfg | |
parent | Switch back to old GCC_RPMREL versioning scheme. (diff) | |
download | rtems-6087a6925701db0d0da461fc38ec39bd73d02390.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | make/custom/mvme2100.cfg | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/make/custom/mvme2100.cfg b/make/custom/mvme2100.cfg index 8e45b01a83..d4ee157f7d 100644 --- a/make/custom/mvme2100.cfg +++ b/make/custom/mvme2100.cfg @@ -19,30 +19,14 @@ CPU_CFLAGS = -mcpu=603e -Dmpc603e -Dppc603e # optimize flag: typically -O2 CFLAGS_OPTIMIZE_V = -O2 -g -mmultiple -mstring -mstrict-align -define make-exe - $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ - -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS) - $(NM) -g -n $(basename $@).nxe > $(basename $@).num - $(SIZE) $(basename $@).nxe - $(OBJCOPY) -O binary -R .comment -S $(basename $@).nxe rtems +define bsp-post-link + $(default-bsp-post-link) + $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems gzip -vf9 rtems - $(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \ - -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ - -Map $(basename $@).map && chmod 755 $@ + $(LD) -o $(basename $@)$(DOWNEXT) \ + $(PROJECT_RELEASE)/lib/bootloader.o \ + --just-symbols=$(basename $@)$(EXEEXT) \ + -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ + -Map $(basename $@).map && chmod 755 $@ rm -f rtems.gz endef - -define make-cxx-exe - $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) \ - -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS) - $(NM) -g -n $(basename $@).nxe > $(basename $@).num - $(SIZE) $(basename $@).nxe - $(OBJCOPY) -O binary -R .comment -S $(basename $@).nxe rtems - gzip -vf9 rtems - $(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \ - -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ - -Map $(basename $@).map && chmod 755 $@ - rm -f rtems.gz -endef - -# Miscellaneous additions go here |