libre kernel 6.1.12
This commit is contained in:
parent
dda85d4859
commit
215b66c491
|
@ -11,3 +11,5 @@ DIST linux-libre-5.15.85-gnu.tar.xz 119691756 BLAKE2B 1f87b850883eac963ca81acfb4
|
||||||
DIST linux-libre-5.15.85-gnu.tar.xz.sign 195 BLAKE2B a125f7eb8373cc8c0d6737365c22b3a9b89374168024cac4942f782f78bbe7d9e997442ff9eb8dd6248f3c5fbcd1789a7bdb402d26fe840f0c33568882bdb23d SHA512 39b97fb8f76189559bcdbfdfefc34cfb55648a213013f373a4cf413be12e897e5a7db63341c40be1c0db65892a630eca36155302ce3fa97a7622093a20c69d07
|
DIST linux-libre-5.15.85-gnu.tar.xz.sign 195 BLAKE2B a125f7eb8373cc8c0d6737365c22b3a9b89374168024cac4942f782f78bbe7d9e997442ff9eb8dd6248f3c5fbcd1789a7bdb402d26fe840f0c33568882bdb23d SHA512 39b97fb8f76189559bcdbfdfefc34cfb55648a213013f373a4cf413be12e897e5a7db63341c40be1c0db65892a630eca36155302ce3fa97a7622093a20c69d07
|
||||||
DIST linux-libre-5.15.88-gnu.tar.xz 119731844 BLAKE2B 5f939758e98c1a47d96b728a5445f3eed65a8442d85a2c3da434b01eb063a2dfca6d32095cb9c65eebb29d9cda75f0d863a302ed1c5460f96962292dce1396cb SHA512 fbf8e8406c269d20baa0b1a97ceac8bbe8f240fcd9f2978957d9a560d420f2890de307b1d5fb628f34123f53643a04c6a486f4054ca50fd1014d6f050c11a06d
|
DIST linux-libre-5.15.88-gnu.tar.xz 119731844 BLAKE2B 5f939758e98c1a47d96b728a5445f3eed65a8442d85a2c3da434b01eb063a2dfca6d32095cb9c65eebb29d9cda75f0d863a302ed1c5460f96962292dce1396cb SHA512 fbf8e8406c269d20baa0b1a97ceac8bbe8f240fcd9f2978957d9a560d420f2890de307b1d5fb628f34123f53643a04c6a486f4054ca50fd1014d6f050c11a06d
|
||||||
DIST linux-libre-5.15.88-gnu.tar.xz.sign 195 BLAKE2B dfbe0feee9e4e84bc45994b232a74859b3e764e41a0d10b097fc201534d3c1fe04b4746576eaa7bb2d7828ab8850ac915bb6f3186689e4474ec7fe639aea06ce SHA512 8d59ac0dc76b739acb7bb855addc11b3d02af7eb22c51f2672986af8d39ac18bdbce47a2b8a8f71827985f17f002e3b0ba152de8d1d84520fa4ea72427e216bb
|
DIST linux-libre-5.15.88-gnu.tar.xz.sign 195 BLAKE2B dfbe0feee9e4e84bc45994b232a74859b3e764e41a0d10b097fc201534d3c1fe04b4746576eaa7bb2d7828ab8850ac915bb6f3186689e4474ec7fe639aea06ce SHA512 8d59ac0dc76b739acb7bb855addc11b3d02af7eb22c51f2672986af8d39ac18bdbce47a2b8a8f71827985f17f002e3b0ba152de8d1d84520fa4ea72427e216bb
|
||||||
|
DIST linux-libre-6.1.12-gnu.tar.xz 127116060 BLAKE2B 2d8f457e23d954a1d2bd1c312369ca2ab6fa2c03b1758e78c82d5cc40eec8c5c3b5cb79c6fb168dca44a4ea6837801bb47a91e6b4b437ab6087adbb1b38914d1 SHA512 27c8f3e12e5f95681ef17f8fc698b7a319c69c734154c62437e43f997565f7f0fb3ccce9dd114bc23ccaa4580833a201d45ea744d568bf473b8ef76f6f91c988
|
||||||
|
DIST linux-libre-6.1.12-gnu.tar.xz.sign 195 BLAKE2B 769d8c66fda4fc3da616d9ed44c37ee110c0d28dbbeed64a9b724da468ac296edc131b104eaab294798313388d6f6ce4338bd8b1f14f03e900f2f817a0fa2a53 SHA512 6b77ef90f6b3c3da21542125c2ca96c79613a16dd7edf8d855d4aa3d7e601084111a1751dceec60f6337119f016dfef19f2c81e66cdd657e69583a5c60d1d64f
|
||||||
|
|
|
@ -0,0 +1,150 @@
|
||||||
|
# Copyright 2020-2022 Gentoo Authors, projectmoon
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit kernel-build verify-sig
|
||||||
|
|
||||||
|
BASE_VER="$(ver_cut 1).$(ver_cut 2).$(ver_cut 3)"
|
||||||
|
RESTRICT="mirror"
|
||||||
|
|
||||||
|
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||||
|
CONFIG_VER=5.15.19
|
||||||
|
CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
|
||||||
|
GENTOO_CONFIG_VER=g1
|
||||||
|
|
||||||
|
DESCRIPTION="GNU Linux-libre kernel built from upstream sources"
|
||||||
|
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
|
||||||
|
SRC_URI+="
|
||||||
|
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz
|
||||||
|
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||||
|
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||||
|
verify-sig? (
|
||||||
|
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
||||||
|
)
|
||||||
|
amd64? (
|
||||||
|
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config
|
||||||
|
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
# Workdir is named linux-PV.
|
||||||
|
MY_P=linux-${PV}
|
||||||
|
S=${WORKDIR}/${MY_P}
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
KEYWORDS="amd64"
|
||||||
|
IUSE="debug"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
debug? ( dev-util/pahole )
|
||||||
|
verify-sig? ( sec-keys/openpgp-keys-linux-libre )
|
||||||
|
"
|
||||||
|
PDEPEND="
|
||||||
|
>=virtual/dist-kernel-${PV}
|
||||||
|
"
|
||||||
|
|
||||||
|
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/linux-libre.asc
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
if has_version -d sys-kernel/linux-firmware[redistributable]; then
|
||||||
|
ewarn "sys-kernel/linux-firmware was found installed on your system,"
|
||||||
|
ewarn "but it is configured to install non-Free firmware files."
|
||||||
|
ewarn "The non-Free firmware files may be required for some hardware"
|
||||||
|
ewarn "work. The Linux-libre kernel cannot load non-Free firmware."
|
||||||
|
ewarn "To install only the Free firmware, set the -redistributable"
|
||||||
|
ewarn "USE flag on sys-kernel/linux-firmware."
|
||||||
|
|
||||||
|
if use initramfs; then
|
||||||
|
elog
|
||||||
|
elog "If you decide to change or remove linux-firmware later, you"
|
||||||
|
elog "can rebuild the initramfs via issuing a command equivalent to:"
|
||||||
|
elog
|
||||||
|
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if ! has_version -d sys-kernel/linux-firmware; then
|
||||||
|
ewarn "sys-kernel/linux-firmware[-redistributable] not found installed"
|
||||||
|
ewarn "on your system. This package provides various firmware files that"
|
||||||
|
ewarn "may be needed for your hardware to work. If in doubt, it is recommended"
|
||||||
|
ewarn "to pause or abort the build process and install it before"
|
||||||
|
ewarn "resuming."
|
||||||
|
|
||||||
|
if use initramfs; then
|
||||||
|
elog
|
||||||
|
elog "If you decide to install linux-firmware later, you can rebuild"
|
||||||
|
elog "the initramfs via issuing a command equivalent to:"
|
||||||
|
elog
|
||||||
|
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
if use verify-sig; then
|
||||||
|
FILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz
|
||||||
|
SIGFILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz.sign
|
||||||
|
verify-sig_verify_detached $FILE $SIGFILE
|
||||||
|
fi
|
||||||
|
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
local biendian=false
|
||||||
|
|
||||||
|
# prepare the default config
|
||||||
|
case ${ARCH} in
|
||||||
|
amd64)
|
||||||
|
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||||
|
;;
|
||||||
|
arm)
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
arm64)
|
||||||
|
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||||
|
biendian=true
|
||||||
|
;;
|
||||||
|
hppa)
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
ppc)
|
||||||
|
# assume powermac/powerbook defconfig
|
||||||
|
# we still package.use.force savedconfig
|
||||||
|
cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||||
|
;;
|
||||||
|
ppc64)
|
||||||
|
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||||
|
biendian=true
|
||||||
|
;;
|
||||||
|
x86)
|
||||||
|
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
die "Unsupported arch ${ARCH}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
sed -i 's/EXTRAVERSION = -gnu/EXTRAVERSION = /' "${S}"/Makefile || die 'could not remove EXTRAVERSION'
|
||||||
|
local myversion="-gnu-dist"
|
||||||
|
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||||
|
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||||
|
|
||||||
|
local merge_configs=(
|
||||||
|
"${T}"/version.config
|
||||||
|
"${dist_conf_path}"/base.config
|
||||||
|
)
|
||||||
|
use debug || merge_configs+=(
|
||||||
|
"${dist_conf_path}"/no-debug.config
|
||||||
|
)
|
||||||
|
|
||||||
|
# this covers ppc64 and aarch64_be only for now
|
||||||
|
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||||
|
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||||
|
fi
|
||||||
|
|
||||||
|
kernel-build_merge_configs "${merge_configs[@]}"
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
# Copyright 2021-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
||||||
|
HOMEPAGE=""
|
||||||
|
SRC_URI=""
|
||||||
|
|
||||||
|
LICENSE=""
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
|| (
|
||||||
|
~sys-kernel/gentoo-kernel-${PV}
|
||||||
|
~sys-kernel/gentoo-kernel-bin-${PV}
|
||||||
|
~sys-kernel/vanilla-kernel-${PV}
|
||||||
|
~sys-kernel/libre-kernel-${PV}
|
||||||
|
)"
|
Loading…
Reference in New Issue