From 5029cf898b71ea2fec69a1d56c6eb8cdb09912f3 Mon Sep 17 00:00:00 2001 From: projectmoon Date: Wed, 31 May 2023 19:54:08 +0200 Subject: [PATCH] Update libre kernel build docs --- docs/Updating-Kernel-Ebuild.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/Updating-Kernel-Ebuild.md b/docs/Updating-Kernel-Ebuild.md index 08c4ef5..2c132c7 100644 --- a/docs/Updating-Kernel-Ebuild.md +++ b/docs/Updating-Kernel-Ebuild.md @@ -7,20 +7,20 @@ How to update the Linux-libre Kernel ebuild for a new version 3. Check the `gentoo-kernel` ebuild for changes to the Gentoo config and patches versions. 4. If the Gentoo patchset version has changed: - 1. Update the patchset version in the `libre-kernel` ebuild. - 2. Extract the patchset from the `gentoo-kernel` ebuild and see if - there are any new patches, or patches removed. - 2. Most patches aside from the `1000`- series that patch the entire - kernel should work. - 3. Add all new patches that apply to the patchset in the ebuild. - 4. Make sure ebuild applies patches with `ebuild - libre-kernel-X.Y.Z.ebuild clean prepare`. -4. If the Gentoo config version has changed: - 5. Update the config version in the `libre-kernel` ebuild. - 6. Make sure ebuild applies config changes with `ebuild + 1. Make sure the patch version offset thingy matches gentoo-kernel. + 2. Make sure config version is the same. + 3. Make sure the config hash is the same. + 4. Make sure ebuild applies config changes with `ebuild libre-kernel-X.Y.Z.ebuild clean prepare`. +5. Run `pkgdev manifest` to have portage download the libre kernel files + and update the manifest. 5. Attempt to build the kernel using `ebuild libre-kernel-X.Y.Z.ebuild clean merge`. You might need to use `sudo` or `doas` for this. -6. Update `virtual/dist-kernel` package to new version. +6. Update `virtual/dist-kernel` package to new version, by copying the + proper dist-kernel ebuild from the gentoo repo, and adding + `sys-kernel/libre-kernel` to its list of possible deps. +7. Make sure `virtual/linux-sources` is up to date. This package rarely + changes, but updating it follows the same procedure as + `virtual/dist-kernel`. If the build succeeds, the new ebuilds can be pushed to the repository.