From: Bagas Sanjaya <bagasdotme@gmail.com>
To: Thorsten Leemhuis <linux@leemhuis.info>,
Jonathan Corbet <corbet@lwn.net>
Cc: Randy Dunlap <rdunlap@infradead.org>,
Lukas Bulwahn <lukas.bulwahn@gmail.com>,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
regressions@lists.linux.dev, Greg KH <gregkh@linuxfoundation.org>,
Jani Nikula <jani.nikula@linux.intel.com>
Subject: Re: [PATCH v2] docs: describe how to quickly build a trimmed kernel
Date: Wed, 15 Feb 2023 10:51:34 +0700 [thread overview]
Message-ID: <Y+xWxpuRdtuCpsO6@debian.me> (raw)
In-Reply-To: <8cfcf069d48c1b8d7b83aafe0132f8dad0f1d0ea.1676400947.git.linux@leemhuis.info>
[-- Attachment #1: Type: text/plain, Size: 2420 bytes --]
On Tue, Feb 14, 2023 at 07:58:09PM +0100, Thorsten Leemhuis wrote:
> + Execute the following command to retrieve a fresh mainline codebase::
> +
> + git clone --no-checkput --depth 1 -b master \
> + https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git \
> + ~/linux/sources/
> + cd ~/linux/sources/
> +
> + If you want to access recent mainline releases and pre-releases, deepen you
> + clone's history to the oldest version you are interested in::
> +
> + git fetch --shallow-exclude=v6.0
For me, another way is to use `git fetch --shallow-since="<some-date>"
&& git repack -a -d`. This requires knowing version release date. If
you want that version, the date used should be one or two days before
that version's release date. Repacking is important!
Nevertheless, you need to go to Git ML and ask why repacking is required
in that case (I have tried searching threads there, but inconclusive).
> +The make target olddefconfig and the ``yes "" |`` used when utilizing
> +localmodconfig will set any undefined build options to their default value. This
> +among others will disable many kernel features that were introduced after your
> +base kernel was released.
> +
> +If you want to set these configurations options manually, use ``oldconfig``
> +instead of ``olddefconfig`` or omit the ``yes "" |`` when utilizing
> +localmodconfig. Then for each undefined configuration option you will be asked
> +how to proceed. In case you are unsure what to answer, simply hit 'enter' to
> +apply the default value.
olddefconfig and `yes "" | make localmodconfig` can produce different
config, since the default value for new config symbols may not be Y.
Often, for new drivers, the default is N.
> + * Remove a stale reference to a certificate file that would cause your build to
> + fail::
> +
> + ./scripts/config --file ~/linux/build/.config --set-str SYSTEM_TRUSTED_KEYS ''
> +
> + Alternatively, download the needed certificate and make that configuration
> + option point to it, as `the Debian handbook explains in more detail
> + <https://debian-handbook.info/browse/stable/sect.kernel-compilation.html>`_ .
> +
Another way is to generate the certificate yourself (see
Documentation/admin-guide/module-signing.rst for the instructions).
Thanks.
--
An old man doll... just what I always wanted! - Clara
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2023-02-15 3:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-14 18:58 [PATCH v2] docs: describe how to quickly build a trimmed kernel Thorsten Leemhuis
2023-02-15 3:51 ` Bagas Sanjaya [this message]
2023-02-15 7:45 ` Thorsten Leemhuis
2023-02-17 0:30 ` Jonathan Corbet
2023-02-17 9:29 ` Thorsten Leemhuis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y+xWxpuRdtuCpsO6@debian.me \
--to=bagasdotme@gmail.com \
--cc=corbet@lwn.net \
--cc=gregkh@linuxfoundation.org \
--cc=jani.nikula@linux.intel.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@leemhuis.info \
--cc=lukas.bulwahn@gmail.com \
--cc=rdunlap@infradead.org \
--cc=regressions@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).