When building grubdisk, use strip from toolchain

This commit is contained in:
Jan Stoess 2011-11-18 10:55:13 +01:00
parent 922cffc6e8
commit 5c1b29b9c7
1 changed files with 4 additions and 2 deletions

View File

@ -35,11 +35,13 @@ top_srcdir= @top_srcdir@
top_builddir= @top_builddir@
APP=${top_builddir}/apps/bench/pingpong/pingpong
STRIP= $(TOOLPREFIX)strip
include $(top_srcdir)/Mk/l4.base.mk
do-all: bootdisk.img
bootdisk.img: grub.img mtoolsrc ${srcdir}/menu.lst ${top_builddir}/util/kickstart/kickstart ${top_builddir}/serv/sigma0/sigma0 \
${APP} ${kerneldir}/${KERNEL}
@# Create a disk image
@ -49,7 +51,7 @@ bootdisk.img: grub.img mtoolsrc ${srcdir}/menu.lst ${top_builddir}/util/kickstar
dd if=grub.img of=bootdisk.img conv=notrunc > /dev/null
#@ Strip and zip binaries
cp -u ${top_builddir}/*/*/{kickstart,sigma0} ${kerneldir}/${KERNEL} ${APP} . || exit 0
strip ${notdir ${APP}} sigma0 kickstart ${KERNEL}
$(STRIP) ${notdir ${APP}} sigma0 kickstart ${KERNEL}
gzip -f ${notdir ${APP}} sigma0 kickstart ${KERNEL}
cat ${srcdir}/menu.lst | sed -e "s/APP/${notdir ${APP}}/" > menu.lst
@# Copy the binaries to it