Update libre kernel build docs
This commit is contained in:
parent
77a6b464eb
commit
5029cf898b
|
@ -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
|
3. Check the `gentoo-kernel` ebuild for changes to the Gentoo config and
|
||||||
patches versions.
|
patches versions.
|
||||||
4. If the Gentoo patchset version has changed:
|
4. If the Gentoo patchset version has changed:
|
||||||
1. Update the patchset version in the `libre-kernel` ebuild.
|
1. Make sure the patch version offset thingy matches gentoo-kernel.
|
||||||
2. Extract the patchset from the `gentoo-kernel` ebuild and see if
|
2. Make sure config version is the same.
|
||||||
there are any new patches, or patches removed.
|
3. Make sure the config hash is the same.
|
||||||
2. Most patches aside from the `1000`- series that patch the entire
|
4. Make sure ebuild applies config changes with `ebuild
|
||||||
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
|
|
||||||
libre-kernel-X.Y.Z.ebuild clean prepare`.
|
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
|
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.
|
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.
|
If the build succeeds, the new ebuilds can be pushed to the repository.
|
||||||
|
|
Loading…
Reference in New Issue