summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-02-11 03:03:49 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-02-11 03:03:49 +0000
commit6a7d0bb916bd5bea7b6ab9a8d9248f6574389ed7 (patch)
tree08a07610f2b99cf9d3d54b747e06fd773367f22b /Tools
parentCatch up to changes on bento: (diff)
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.
Notes
Notes: svn path=/head/; revision=54522
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 82a36f5f0b08..4cb8351a031d 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