summaryrefslogtreecommitdiffstats
path: root/make/custom/mcp750.cfg
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-01-03 18:46:31 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-01-03 18:46:31 +0000
commitfdfa5b9f5cb03c4441d3f15c0e341d9cb85a83be (patch)
tree72375b975c5147634b937fc7e84c27449caebdbe /make/custom/mcp750.cfg
parentc2bbfb5255611f9052632e955b964b54836d20c0 (diff)
downloadrtems-fdfa5b9f5cb03c4441d3f15c0e341d9cb85a83be.tar.bz2
2001-01-03 Emmanuel Raguet <raguet@crf.canon.fr>
* custom/mcp750.cfg (make-exe): Rewrite to avoid writing to install point or assuming BSP build tree is available.
Diffstat (limited to 'make/custom/mcp750.cfg')
-rw-r--r--make/custom/mcp750.cfg23
1 files changed, 10 insertions, 13 deletions
diff --git a/make/custom/mcp750.cfg b/make/custom/mcp750.cfg
index 695cef2795..8d54f40d62 100644
--- a/make/custom/mcp750.cfg
+++ b/make/custom/mcp750.cfg
@@ -75,19 +75,16 @@ CFLAGS_DEBUG_V = -O1 -mmultiple -mstring -mstrict-align
# $(LD_LIBS) \
# -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
define make-exe
- $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
- -o $@ $(LINK_OBJS) $(LINK_LIBS)
- $(NM) -g -n $@ > $(basename $@).num
- $(SIZE) $@
- test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin
- cp $@ $(PROJECT_ROOT)/c/mcp750/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader/$(ARCH); \
- ( cd $(PROJECT_ROOT)/c/mcp750/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader; \
- $(MAKE) bootloader BINARY_LOADED=$@; )
- f=`basename $@ .exe`; \
- cp $(PROJECT_ROOT)/c/mcp750/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader/bootloader \
- ${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).exe \
- && chmod 755 \
- ${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).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) $(basename $@).nxe rtems -O binary -R .comment -S
+ 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