From owner-freebsd-stable Thu Aug 8 11:17:55 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41BF537B400; Thu, 8 Aug 2002 11:17:51 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01CAA43E6A; Thu, 8 Aug 2002 11:17:46 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g78IGEl34600; Thu, 8 Aug 2002 21:16:14 +0300 (EEST) (envelope-from ru) Date: Thu, 8 Aug 2002 21:16:14 +0300 From: Ruslan Ermilov To: "Steve O'Hara-Smith" Cc: marck@rinet.ru, jonc@chen.org.nz, craig@meoqu.gank.org, freebsd-stable@FreeBSD.ORG, imp@FreeBSD.ORG Subject: Re: Kernel config problem with 4.6-STABLE... [solution] Message-ID: <20020808181614.GA33981@sunbay.com> References: <20020720185121.6d99ae98.steve@sohara.org> <20020720220854.R49174-100000@woozle.rinet.ru> <20020807173011.GB48823@sunbay.com> <20020808194052.3dfe1cc6.steve@sohara.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline In-Reply-To: <20020808194052.3dfe1cc6.steve@sohara.org> User-Agent: Mutt/1.3.99i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 08, 2002 at 07:40:52PM +0200, Steve O'Hara-Smith wrote: > On Wed, 7 Aug 2002 20:30:11 +0300 > Ruslan Ermilov wrote: >=20 > RE> Nope, bootstrap is not enough. Kernel may also require a new set of > RE> cross-tools (compiler and binutils, amongst others) to be buildable. >=20 > Let me see if I can get this right. >=20 > You can buildkernel with no world if and only if the sources > and installed world match and you are not cross building. You might be > lucky if they are not too different. >=20 Yes. > You can buildkernel with just bootstrap if you are not cross > building. You will need to buildworld sooner or later if sources don't > match the world so you might as well do it now. >=20 There are different types of "cross". Cross-architecture is only one of them. The other one being cross-release, cross-API, etc., i.e. where some incompatible changes are made. For the buildkernel, OTOH, you only need the new version of cross-tools (compiler and binutils) and bootstrap-tools (config(8) is most important thing), i.e. you only need the _bootstrap-tools and _cross-tools stages of buildworld. We don't currently provide a user-visible API to run only these stages. > You need to buildworld if you are cross building. >=20 If you are cross building the whole world, yes. If you are cross building the kernel only (e.g. building a 5.0 kernel on 4.x), see above. > ISTM that it would be nice to identify the first case and make > buildkernel depend on a built world otherwise. I'm not sure the first is > automatically identifiable though. >=20 I'm affraid this is not possible to automate. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --/04w6evG8XlLl3ft Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9UrVuUkv4P6juNwoRAm9eAJwJ9tLqD3CgOidl78Got6ZQjnsAvQCeO11V HPfp/iwoe2c3ppgFKKNhreY= =o/Yw -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message