Compare commits

..

No commits in common. "03c663ad592bc97eb7df90c2ac738a5b1a7a621f" and "4e4d9bc80b08c6efba28dc9e677ba92ee75d7ded" have entirely different histories.

10 changed files with 197 additions and 31 deletions

View File

@ -4,7 +4,10 @@ compatibility for the Librem 14 computer.
Available packages: Available packages:
- **dev-util/rust-analyzer-bin**: A properly versioned ebuild of - **dev-util/rust-analyzer-bin**: A properly versioned ebuild of
rust-analyzer-bin. rust-analyzer-bin.
- **sys-kernel/librem-ec-acpi**: An ebuild packaging the [Librem 14 - **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
EC ACPI kernel module][ec-acpi], necessary for proper functioning EC ACPI kernel module][ec-acpi], necessary for proper functioning
of the laptop's battery charging and function keys. of the laptop's battery charging and function keys.
@ -16,6 +19,19 @@ Using eselect-repository:
# eselect repository add projectmoon git https://git.agnos.is/projectmoon/projectmoon-overlay # 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 ## Using the Librem EC ACPI kernel module
The Librem EC ACPI kernel module should install and be automatically The Librem EC ACPI kernel module should install and be automatically
@ -26,4 +42,5 @@ sys-kernel/librem-ec-acpi`. The module is currently installed to
When upgrading or installing a new kernel, you will need to do `emerge When upgrading or installing a new kernel, you will need to do `emerge
@modules-rebuild` to install the module for the new kernel. @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 [ec-acpi]: https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms

View File

@ -1,30 +0,0 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="An implementation of Language Server Protocol for the Rust programming language"
HOMEPAGE="https://rust-analyzer.github.io"
KEYWORDS="~amd64"
# rust-analyzer makes date-based releases at the moment.
DATE=${PV:3:8}
YEAR=${DATE:0:4}
MONTH=${DATE:4:2}
DAY=${DATE:6:2}
VERSION="${YEAR}-${MONTH}-${DAY}"
SRC_URI="https://github.com/rust-analyzer/rust-analyzer/releases/download/${VERSION}/rust-analyzer-x86_64-unknown-linux-gnu.gz"
LICENSE="Apache-2.0 MIT-with-advertising"
SLOT="0"
PROPERTIES="live"
S=${WORKDIR}
src_install() {
newbin rust-analyzer-x86_64-unknown-linux-gnu rust-analyzer
}
pkg_postinst() {
elog "Make sure to add your desired rust toolchain (e.g. with rustup) for rust-analyzer to work correctly"
}

View File

@ -0,0 +1,26 @@
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
}

18
new-kernel-build Executable file
View File

@ -0,0 +1,18 @@
#!/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

@ -0,0 +1,4 @@
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

@ -0,0 +1,26 @@
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

@ -0,0 +1,26 @@
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

@ -0,0 +1,26 @@
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

@ -0,0 +1,26 @@
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

@ -0,0 +1,27 @@
# 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
)"