Remove Linux Libre kernel.

This commit is contained in:
projectmoon 2021-09-28 07:13:44 +00:00
parent 4e4d9bc80b
commit 0460670c66
9 changed files with 1 additions and 197 deletions

View File

@ -4,10 +4,7 @@ compatibility for the Librem 14 computer.
Available packages:
- **dev-util/rust-analyzer-bin**: A properly versioned ebuild of
rust-analyzer-bin.
- **sys-kernel/gnu-sources:** An analog to gentoo-sources that tracks
the sources of the [Linux-libre kernel][linux-libre]. An updated
version of `virtual/linux-sources` also accompanies this package.
- **sys-kernel/librem-ec-acpi**: An ebuild packaging the [Librem 14
- **sys-kernel/librem-ec-acpi**: An ebuild packaging the [Librem 14
EC ACPI kernel module][ec-acpi], necessary for proper functioning
of the laptop's battery charging and function keys.
@ -19,19 +16,6 @@ Using eselect-repository:
# eselect repository add projectmoon git https://git.agnos.is/projectmoon/projectmoon-overlay
```
## Using the Linux-libre Kernel with Gentoo
The `sys-kernel/gnu-sources` package tracks the current stable
gentoo-sources version for the amd64 architecture. To use it, make
sure both `sys-kernel/gnu-sources` and `virtual/linux-sources` from
the overlay are unmasked and accepted. Then `emerge
sys-kernel/gnu-sources`.
The Linux-libre sources operate like any other kernel source package
in Gentoo. To use it, you must mark it as the selected kernel with
`eselect kernel`, and then build and install it with `genkernel` or
manual kernel compilation.
## Using the Librem EC ACPI kernel module
The Librem EC ACPI kernel module should install and be automatically
@ -42,5 +26,4 @@ sys-kernel/librem-ec-acpi`. The module is currently installed to
When upgrading or installing a new kernel, you will need to do `emerge
@modules-rebuild` to install the module for the new kernel.
[linux-libre]: https://linux-libre.fsfla.org/
[ec-acpi]: https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms

View File

@ -1,26 +0,0 @@
EAPI="6"
K_SECURITY_UNSUPPORTED="1"
K_PREDEBLOBBED="1"
ETYPE="sources"
inherit kernel-2
detect_version
DESCRIPTION="Full sources for the Linux Libre kernel"
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
BASE_URI="http://linux-libre.fsfla.org/pub/linux-libre/releases/${KV_MAJOR}.${KV_MINOR}-gnu/linux-libre-${KV_MAJOR}.${KV_MINOR}-gnu.tar.xz -> linux-${KV_MAJOR}.${KV_MINOR}.tar.xz"
PATCH_URI="http://linux-libre.fsfla.org/pub/linux-libre/releases/${PV}-gnu/patch-${KV_MAJOR}.${KV_MINOR}-gnu-${PV}-gnu.xz"
SRC_URI="${BASE_URI} ${PATCH_URI}"
RESTRICT="mirror"
KEYWORDS="~amd64"
UNIPATCH_LIST_DEFAULT=""
UNIPATCH_LIST="${DISTDIR}/patch-${KV_MAJOR}.${KV_MINOR}-gnu-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}-gnu.xz"
pkg_postinst() {
kernel-2_pkg_postinst
einfo "For more info on this patchset, and how to report problems, see:"
einfo "${HOMEPAGE}"
}
pkg_postrm() {
kernel-2_pkg_postrm
}

View File

@ -1,18 +0,0 @@
#!/bin/bash
function get_version {
local arch=$1
local xpath='(//td[contains(@class, "kk-keyword-stable")]//span[contains(., '"$arch"')]/ancestor::tr/td[contains(@class, "kk-version")]//a)[1]/text()'
version=$(curl -s 'https://packages.gentoo.org/packages/sys-kernel/gentoo-sources' | xmllint --nowarning --recover --html --xpath "$xpath" - 2>/dev/null)
echo $version
}
VERSION=$(get_version "amd64")
echo "Current stable gentoo-sources (amd64) is ${VERSION}"
KV_MAJOR=$(echo $VERSION | cut -d'.' -f1)
KV_MINOR=$(echo $VERSION | cut -d'.' -f2)
KV_PATCH=$(echo $VERSION | cut -d'.' -f3)
cp gnu-sources-x.y.z.ebuild.template sys-kernel/gnu-sources/gnu-sources-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}.ebuild
echo "Created new ebuild for libre kernel ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}"

View File

@ -1,4 +0,0 @@
DIST linux-5.10.tar.xz 114230900 BLAKE2B 86103699a6bc906e85429430df098b0ddb7cfc8c887f98b37f994498388d634554e119eadb1b15f591bdf4f463e7efb7420e3e370af0029b7ed9e988a5f26b01 SHA512 ccc52db049a66ff146d9fc84fb00e783f2d04211156233a382f87589fec7631b8fbb3e76bfd94279607b883d25f9745e6c7d2bd62b13311dc6b425002bd42ec0
DIST patch-5.10-gnu-5.10.47-gnu.xz 1542276 BLAKE2B 88c69d768103da84571bc3ec3a819dd41cd543411a191f25a8f8e8f3c5472c9f78a364845203b090e911e8dcc13d20cfddbfc533adef052652d95d97c6c7bf61 SHA512 deb1ea9b54af09c3ea48ee066a8a315da0d82459c3e46cbcff71d69de5a6549ebe75fb9ce94da89164338dc2680f312f8ff8ef7ac35d40ce404b1bbb679661cf
DIST patch-5.10-gnu-5.10.48-gnu.xz 1542880 BLAKE2B 26dd0d4b9a60c315aa9ebf376ab29c6a93d75a7be554af75df4e0d6a81252ae8d72b5d26daab9ac6e0010cb024f36b681da6610fae91d1423abee5a76eecc54a SHA512 60751c93cb5f8fbe65ea8709f5dd35783840c2e912010ac87101882035540cc7983a6d92720647cbaa2f054492a3ad1f0e6118354e632c5e9abbaa4151278649
DIST patch-5.10-gnu-5.10.52-gnu.xz 1785252 BLAKE2B 74a5eed686d850e6d52d24edd49bf2bbb5917e2c475f28df7bbe93c96dcf8233de05c2087e5db290cf85101579e559ebde3f04475d052ed97913aecd1cab6cbb SHA512 54b3e859e86b092d4971371c4c955b9b6073be9ee42e7d925a21f8e31fed72cee532da79154f03b71d38f31f135b52820323b580b418a5193c15439954f88d4d

View File

@ -1,26 +0,0 @@
EAPI="6"
K_SECURITY_UNSUPPORTED="1"
K_PREDEBLOBBED="1"
ETYPE="sources"
inherit kernel-2
detect_version
DESCRIPTION="Full sources for the Linux Libre kernel"
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
BASE_URI="http://linux-libre.fsfla.org/pub/linux-libre/releases/${KV_MAJOR}.${KV_MINOR}-gnu/linux-libre-${KV_MAJOR}.${KV_MINOR}-gnu.tar.xz -> linux-${KV_MAJOR}.${KV_MINOR}.tar.xz"
PATCH_URI="http://linux-libre.fsfla.org/pub/linux-libre/releases/${PV}-gnu/patch-${KV_MAJOR}.${KV_MINOR}-gnu-${PV}-gnu.xz"
SRC_URI="${BASE_URI} ${PATCH_URI}"
RESTRICT="mirror"
KEYWORDS="~amd64"
UNIPATCH_LIST_DEFAULT=""
UNIPATCH_LIST="${DISTDIR}/patch-5.10-gnu-5.10.47-gnu.xz"
pkg_postinst() {
kernel-2_pkg_postinst
einfo "For more info on this patchset, and how to report problems, see:"
einfo "${HOMEPAGE}"
}
pkg_postrm() {
kernel-2_pkg_postrm
}

View File

@ -1,26 +0,0 @@
EAPI="6"
K_SECURITY_UNSUPPORTED="1"
K_PREDEBLOBBED="1"
ETYPE="sources"
inherit kernel-2
detect_version
DESCRIPTION="Full sources for the Linux Libre kernel"
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
BASE_URI="http://linux-libre.fsfla.org/pub/linux-libre/releases/${KV_MAJOR}.${KV_MINOR}-gnu/linux-libre-${KV_MAJOR}.${KV_MINOR}-gnu.tar.xz -> linux-${KV_MAJOR}.${KV_MINOR}.tar.xz"
PATCH_URI="http://linux-libre.fsfla.org/pub/linux-libre/releases/${PV}-gnu/patch-${KV_MAJOR}.${KV_MINOR}-gnu-${PV}-gnu.xz"
SRC_URI="${BASE_URI} ${PATCH_URI}"
RESTRICT="mirror"
KEYWORDS="~amd64"
UNIPATCH_LIST_DEFAULT=""
UNIPATCH_LIST="${DISTDIR}/patch-5.10-gnu-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}-gnu.xz"
pkg_postinst() {
kernel-2_pkg_postinst
einfo "For more info on this patchset, and how to report problems, see:"
einfo "${HOMEPAGE}"
}
pkg_postrm() {
kernel-2_pkg_postrm
}

View File

@ -1,26 +0,0 @@
EAPI="6"
K_SECURITY_UNSUPPORTED="1"
K_PREDEBLOBBED="1"
ETYPE="sources"
inherit kernel-2
detect_version
DESCRIPTION="Full sources for the Linux Libre kernel"
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
BASE_URI="http://linux-libre.fsfla.org/pub/linux-libre/releases/${KV_MAJOR}.${KV_MINOR}-gnu/linux-libre-${KV_MAJOR}.${KV_MINOR}-gnu.tar.xz -> linux-${KV_MAJOR}.${KV_MINOR}.tar.xz"
PATCH_URI="http://linux-libre.fsfla.org/pub/linux-libre/releases/${PV}-gnu/patch-${KV_MAJOR}.${KV_MINOR}-gnu-${PV}-gnu.xz"
SRC_URI="${BASE_URI} ${PATCH_URI}"
RESTRICT="mirror"
KEYWORDS="~amd64"
UNIPATCH_LIST_DEFAULT=""
UNIPATCH_LIST="${DISTDIR}/patch-${KV_MAJOR}.${KV_MINOR}-gnu-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}-gnu.xz"
pkg_postinst() {
kernel-2_pkg_postinst
einfo "For more info on this patchset, and how to report problems, see:"
einfo "${HOMEPAGE}"
}
pkg_postrm() {
kernel-2_pkg_postrm
}

View File

@ -1,26 +0,0 @@
EAPI="6"
K_SECURITY_UNSUPPORTED="1"
K_PREDEBLOBBED="1"
ETYPE="sources"
inherit kernel-2
detect_version
DESCRIPTION="Full sources for the Linux Libre kernel"
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
BASE_URI="http://linux-libre.fsfla.org/pub/linux-libre/releases/${KV_MAJOR}.${KV_MINOR}-gnu/linux-libre-${KV_MAJOR}.${KV_MINOR}-gnu.tar.xz -> linux-${KV_MAJOR}.${KV_MINOR}.tar.xz"
PATCH_URI="http://linux-libre.fsfla.org/pub/linux-libre/releases/${PV}-gnu/patch-${KV_MAJOR}.${KV_MINOR}-gnu-${PV}-gnu.xz"
SRC_URI="${BASE_URI} ${PATCH_URI}"
RESTRICT="mirror"
KEYWORDS="~amd64"
UNIPATCH_LIST_DEFAULT=""
UNIPATCH_LIST="${DISTDIR}/patch-${KV_MAJOR}.${KV_MINOR}-gnu-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}-gnu.xz"
pkg_postinst() {
kernel-2_pkg_postinst
einfo "For more info on this patchset, and how to report problems, see:"
einfo "${HOMEPAGE}"
}
pkg_postrm() {
kernel-2_pkg_postrm
}

View File

@ -1,27 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Virtual for Linux kernel sources"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86"
IUSE="firmware"
RDEPEND="
firmware? ( sys-kernel/linux-firmware )
|| (
sys-kernel/gentoo-sources
sys-kernel/vanilla-sources
sys-kernel/git-sources
sys-kernel/mips-sources
sys-kernel/pf-sources
sys-kernel/rt-sources
sys-kernel/zen-sources
sys-kernel/raspberrypi-sources
sys-kernel/gnu-sources
sys-kernel/gentoo-kernel
sys-kernel/gentoo-kernel-bin
sys-kernel/vanilla-kernel
sys-kernel/bliss-kernel-bin
)"