Subject: Re: kernel compiling - few questions
To: None <netbsd-users@netbsd.org>
From: Julio Merino <jmmv@hispabsd.org>
List: netbsd-users
Date: 05/31/2002 14:43:49
--6TrnltStXW4iwmi0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Fri, May 31, 2002 at 02:24:40PM +0200, Wojciech Puchar wrote:
> 1) is it possible to compile kernel without root privileges? (for
> compiling for other machines)

Yes, it is. To be simple, you can change the owner of the sys tree:

chown -R myuser:mygroup /sys

and you will be able to build it perfectly. OTOH, you may be able to
set some variables to change obj and compile directories. Take a look
to the BUILDING document included in /usr/src.


> 2) if i will upgrade whole system to 1.6 when it will be available, can i
> still compile 1.5.2 kernel?

Yes, too. Although to build 1.5 userland you will need to use a "virtual"
root with chroot, so the build process can find all needed files in place
(include's, lib's, etc). With 1.6, this problem disapperes.

HTH

--
Of course it runs NetBSD - http://www.netbsd.org
HispaBSD member - http://www.hispabsd.org
Julio Merino <jmmv@hispabsd.org>

--6TrnltStXW4iwmi0
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (NetBSD)

iD8DBQE893AEzz00ZOPKycwRAoXqAJwM03A4fJAv5c/xEjYGctm/F439DwCfTR5e
gV68mZlKE89pKTHX2bQhIeI=
=cQVh
-----END PGP SIGNATURE-----

--6TrnltStXW4iwmi0--