From owner-svn-src-head@freebsd.org Sun Oct 29 11:26:07 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 84A3BE60DE9; Sun, 29 Oct 2017 11:26:07 +0000 (UTC) (envelope-from devin@shxd.cx) Received: from shxd.cx (mail.shxd.cx [64.201.244.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7720D761F9; Sun, 29 Oct 2017 11:26:07 +0000 (UTC) (envelope-from devin@shxd.cx) Received: from [64.201.244.132] (port=52639 helo=[10.0.0.105]) by shxd.cx with esmtps (TLSv1:AES256-SHA:256) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1e8jrO-000Oyh-Co; Sun, 29 Oct 2017 09:26:26 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: svn commit: r325097 - head From: Devin Teske X-Mailer: iPhone Mail (13G36) In-Reply-To: <201710290825.v9T8PV3W047519@repo.freebsd.org> Date: Sun, 29 Oct 2017 04:26:00 -0700 Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <2B94F328-D310-40B1-8B05-79689E0FD664@shxd.cx> References: <201710290825.v9T8PV3W047519@repo.freebsd.org> To: Eitan Adler X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Oct 2017 11:26:07 -0000 Can you describe said shooting of foot? Because... + I still build my kernels that way, because... + config can be given -C to retain the *entire* config file in the kernel, c= omments-and-all, because... + There has traditionally been no knob that can be set during the kernel tar= gets of the top-level Makefile that will enable "config -C" instead of just "= config". We use a version-controlled config file and want lines like "# $Smule: ... $= " retained as well as include lines, etc so we can see hierarchical topology= of the kernel config from a running system in the field simply by running "= config -x $( sysctl -n kern.bootfile ) | less" Thus, I wouldn't even call this a "FreeBSD 4.x [process] of bulding the kern= el" but instead "an alternate proceaa of building kernel" and the people tha= t use it know what they are doing and this there is no foot shooting. NB: I actually use "config -C -g" for full disclosure. --=20 Devin > On Oct 29, 2017, at 1:25 AM, Eitan Adler wrote: >=20 > Author: eadler > Date: Sun Oct 29 08:25:31 2017 > New Revision: 325097 > URL: https://svnweb.freebsd.org/changeset/base/325097 >=20 > Log: > Update UPDATING >=20 > - Remove FreeBSD 4.x of building the kernel. > While it might technically work, it is better to > document the 'correct' way than how to shoot oneself > in the foot >=20 > - Remove reference to CVS -P for src. >=20 > Modified: > head/UPDATING >=20 > Modified: head/UPDATING > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > --- head/UPDATING Sun Oct 29 08:17:03 2017 (r325096) > +++ head/UPDATING Sun Oct 29 08:25:31 2017 (r325097) > @@ -1843,21 +1843,6 @@ COMMON ITEMS: > make installkernel KERNCONF=3DYOUR_KERNEL_HERE KODIR=3D/boot/testkernel= > nextboot -k testkernel >=20 > - To just build a kernel when you know that it won't mess you up > - -------------------------------------------------------------- > - This assumes you are already running a CURRENT system. Replace > - ${arch} with the architecture of your machine (e.g. "i386", > - "arm", "amd64", "ia64", "pc98", "sparc64", "powerpc", "mips", etc). > - > - cd src/sys/${arch}/conf > - config KERNEL_NAME_HERE > - cd ../compile/KERNEL_NAME_HERE > - make depend > - make > - make install > - > - If this fails, go to the "To build a kernel" section. > - > To rebuild everything and install it on the current system. > ----------------------------------------------------------- > # Note: sometimes if you are running current you gotta do more than > @@ -1865,7 +1850,8 @@ COMMON ITEMS: >=20 > > make buildworld > - make kernel KERNCONF=3DYOUR_KERNEL_HERE > + make buildkernel KERNCONF=3DYOUR_KERNEL_HERE > + make installkernel KERNCONF=3DYOUR_KERNEL_HERE > [1] > [3] > mergemaster -Fp [5] > @@ -1965,10 +1951,7 @@ COMMON ITEMS: > Make sure that you merge any new devices from GENERIC since the > last time you updated your kernel config file. >=20 > - [9] When checking out sources, you must include the -P flag to have > - cvs prune empty directories. > - > - If CPUTYPE is defined in your /etc/make.conf, make sure to use the > + [9] If CPUTYPE is defined in your /etc/make.conf, make sure to use th= e > "?=3D" instead of the "=3D" assignment operator, so that buildworld can= > override the CPUTYPE if it needs to. >=20 >=20