Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Oct 2017 05:57:06 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Eitan Adler <eadler@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r325097 - head
Message-ID:  <CANCZdfrd5AbdQanz47Axf2Qprs2nFcbp3ujK38uMzrCeXf7fMw@mail.gmail.com>
In-Reply-To: <201710290825.v9T8PV3W047519@repo.freebsd.org>
References:  <201710290825.v9T8PV3W047519@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Oct 29, 2017 2:25 AM, "Eitan Adler" <eadler@freebsd.org> wrote:

Author: eadler
Date: Sun Oct 29 08:25:31 2017
New Revision: 325097
URL: https://svnweb.freebsd.org/changeset/base/325097

Log:
  Update UPDATING

  - Remove FreeBSD 4.x of building the kernel.


It is not the 4.x way of building the kernel. It's a completely supported
alte restive for those situations where buildkernel is not a good fit.

  While it might technically work, it is better to
  document the 'correct' way than how to shoot oneself
  in the foot


Neither way is more correct. Both have foot shooting issues in different
ways.

While the removal of the text many be ok for UPDATING, these
characterizations are bogus.

Warner


  - Remove reference to CVS -P for src.

Modified:
  head/UPDATING

Modified: head/UPDATING
============================================================
==================
--- 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=YOUR_KERNEL_HERE KODIR=/boot/testkernel
        nextboot -k testkernel

-       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:

        <make sure you have good level 0 dumps>
        make buildworld
-       make kernel KERNCONF=YOUR_KERNEL_HERE
+       make buildkernel KERNCONF=YOUR_KERNEL_HERE
+       make installkernel KERNCONF=YOUR_KERNEL_HERE
                                                        [1]
        <reboot in single user>                         [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.

-       [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
the
        "?=" instead of the "=" assignment operator, so that buildworld can
        override the CPUTYPE if it needs to.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfrd5AbdQanz47Axf2Qprs2nFcbp3ujK38uMzrCeXf7fMw>