summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-02-11 03:03:49 +0000
committerkris <kris@FreeBSD.org>2002-02-11 03:03:49 +0000
commit4bd777e613fe76379fe30ea2731ca11d0c1de36a (patch)
tree7c05b7dfc60d73fddcf6d9ae3b2c76f59fe045a9 /Tools
parentde2476b8fd01002dae4b92bb510cd68386b87e45 (diff)
downloadFreeBSD-ports-4bd777e613fe76379fe30ea2731ca11d0c1de36a.zip
FreeBSD-ports-4bd777e613fe76379fe30ea2731ca11d0c1de36a.tar.gz
Catch up to changes on bento:
* Run mtree in the temporary directory to create the filesystem hierarchy * Use the correct kernel compile directory on both 5.x and earlier versions.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/mkbindist9
1 files changed, 8 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/mkbindist b/Tools/portbuild/scripts/mkbindist
index 82a36f5..4cb8351 100755
--- a/Tools/portbuild/scripts/mkbindist
+++ b/Tools/portbuild/scripts/mkbindist
@@ -35,6 +35,9 @@ fi
rm -rf $(cat ${here}/bindist/delete)
mkdir -p $(cat ${here}/bindist/dirlist)
(cd ${here}/bindist/files; find -dx . | cpio -dump ${tmpdir})
+mtree -deU -f ${here}/src/etc/mtree/BSD.root.dist -p ${tmpdir}/
+mtree -deU -f ${here}/src/etc/mtree/BSD.var.dist -p ${tmpdir}/var
+mtree -deU -f ${here}/src/etc/mtree/BSD.usr.dist -p ${tmpdir}/usr
#echo "HAVE_MOTIF=t" >> etc/make.conf
#echo "MOTIF_STATIC=t" >> etc/make.conf
#echo "LOADER_TFTP_SUPPORT=YES" >> etc/make.conf
@@ -50,7 +53,11 @@ chroot ${tmpdir} /sbin/ldconfig -aout /usr/lib/aout
#sed -e "s/%%KERNEL%%/${kernel}/g" ${here}/dokernel > ${tmpdir}/dokernel
mount localhost:${here}/src ${tmpdir}/usr/src
sleep 5
-chroot ${tmpdir} sh -c "cd /usr/src/sys/i386/conf && config ${kernel} && cd /sys/compile/${kernel} && make depend && make all install"
+if [ -d ${here}/src/sys/i386/compile ]; then
+ chroot ${tmpdir} sh -c "cd /usr/src/sys/i386/conf && config ${kernel} && cd /sys/i386/compile/${kernel} && make depend -DNO_MODULES && make all install -DNO_MODULES"
+else
+ chroot ${tmpdir} sh -c "cd /usr/src/sys/i386/conf && config ${kernel} && cd /sys/compile/${kernel} && make depend -DNO_MODULES && make all install -DNO_MODULES"
+fi
#chroot ${tmpdir} sh -c "cd /usr/src/sys/boot && make obj && make depend && make all install"
umount -f ${tmpdir}/usr/src
rm -rf ${tmpdir}/kernel.old ${tmpdir}/modules.old ${tmpdir}/boot/kernel.old
OpenPOWER on IntegriCloud