Use objcopy to build ramdisk object

. during build, uses much less memory,
	  disk space, and time
	. lets us throw out bintoc
This commit is contained in:
Antoine Leca
2012-01-17 16:04:58 +01:00
committed by Ben Gras
parent 5a645f22a8
commit ab0a67f7af
6 changed files with 29 additions and 159 deletions

View File

@@ -90,11 +90,12 @@ hdboot: image
cp $$i $$newname; \
if [ -d /boot/image ]; \
then ln -f $$newname /boot/`basename $$i`; \
else gzip $$newname; \
else strip -s $$newname; \
gzip $$newname; \
fi \
done
cp ../kernel/kernel /boot/minix/.temp/
strip -s /boot/minix/.temp/*
strip -s /boot/minix/.temp/kernel
[ -d /boot/image ] && ln -f /boot/minix/.temp/kernel /boot/kernel || true
sh mkboot $@ minix
exec sh update_bootcfg.sh