Date: Sun, 14 Jun 1998 08:48:19 -0700 (PDT) From: Thomas Dean <tomdean@ix.netcom.com> To: freebsd-root@i-zone.demon.co.uk Cc: freebsd-questions@FreeBSD.ORG Subject: Re: source install Message-ID: <199806141548.IAA00408@ix.netcom.com> In-Reply-To: <7dCLmNAvK4g1EwqX@i-zone.demon.co.uk> (message from John on Sun, 14 Jun 1998 08:58:39 %2B0100)
next in thread | previous in thread | raw e-mail | index | archive | help
You need a directory sub-tree,
/usr/src/sys and a link, /sys->/usr/src/sys
If you have to create the head of the tree, the modess are:
> ls -lF /usr
drwxr-xr-x 22 bin bin 512 May 4 22:28 src/
> ls -lF /usr/src
drwxr-xr-x 31 root wheel 512 Mar 8 20:37 sys/
I believe you can unpack the ssys.* files into the /usr/src/sys tree,
using the install.sh script.
If you have the files, sbin.aa, sbin.ab, ..., ssys.aa, ssys.ab, ...
in the tree, /dos/freebsd/src, you can run the install.sh script to
unpact the desired part of the tree. './install.sh sys' should unpack
the sys sources into /usr/src.
Do you know what to change to build a new kernel? Do you know the
build steps? There is lots of info on the web site, www.freebsd.org,
under documentation.
I have attached the 2.2.6 install.sh script.
Hope this helps,
tomdean
The 2.2.6 script is:
#!/bin/sh
#
if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
if [ $# -lt 1 ]; then
echo "You must specify which components of src to extract"
echo "possible subcomponents are:"
echo
echo "base bin contrib etc games gnu include lib libexec lkm"
echo "release sbin share smailcf sys ubin usbin"
echo
echo "You may also specify all to extract all subcomponents."
exit 1
fi
if [ "$1" = "all" ]; then
dists="base bin contrib etc games gnu include lib libexec lkm release sb
in share smailcf sys ubin usbin"
else
dists="$*"
fi
for i in $dists; do
echo "Extracting source component: $i"
cat s${i}.?? | tar --unlink -xpzf - -C /usr/src
done
exit 0
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806141548.IAA00408>
