1.3 KiB
1.3 KiB
How to update the Linux-libre Kernel ebuild for a new version
- Check for new stable version of
gentoo-kernel
on packages.gentoo.org. - If so, version bump
libre-kernel
ebuild to match newgentoo-kernel
version. - Check the
gentoo-kernel
ebuild for changes to the Gentoo config and patches versions. - If the Gentoo patchset version has changed:
- Update the patchset version in the
libre-kernel
ebuild. - Extract the patchset from the
gentoo-kernel
ebuild and see if there are any new patches, or patches removed. - Most patches aside from the
1000
- series that patch the entire kernel should work. - Add all new patches that apply to the patchset in the ebuild.
- Make sure ebuild applies patches with
ebuild libre-kernel-X.Y.Z.ebuild clean prepare
.
- Update the patchset version in the
- If the Gentoo config version has changed:
5. Update the config version in the
libre-kernel
ebuild. 6. Make sure ebuild applies config changes withebuild libre-kernel-X.Y.Z.ebuild clean prepare
. - Attempt to build the kernel using
ebuild libre-kernel-X.Y.Z.ebuild clean merge
. You might need to usesudo
ordoas
for this. - Update
virtual/dist-kernel
package to new version.
If the build succeeds, the new ebuilds can be pushed to the repository.