-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
BDEPEND=secureboot? ( app-crypt/sbsigntools ) test? ( dev-tcltk/expect sys-apps/coreutils sys-kernel/dracut sys-fs/e2fsprogs amd64? ( app-emulation/qemu[qemu_softmmu_targets_x86_64] ) arm64? ( app-emulation/qemu[qemu_softmmu_targets_aarch64] ) ppc? ( app-emulation/qemu[qemu_softmmu_targets_ppc] ) ppc64? ( app-emulation/qemu[qemu_softmmu_targets_ppc64] ) sparc? ( app-emulation/qemu[qemu_softmmu_targets_sparc,qemu_softmmu_targets_sparc64] ) x86? ( app-emulation/qemu[qemu_softmmu_targets_i386] ) ) || ( dev-lang/python:3.13 dev-lang/python:3.12 dev-lang/python:3.11 dev-lang/python:3.10 ) app-alternatives/cpio app-alternatives/bc sys-devel/bison sys-devel/flex virtual/libelf arm? ( sys-apps/dtc ) arm64? ( sys-apps/dtc ) riscv? ( sys-apps/dtc ) modules-sign? ( dev-libs/openssl ) generic-uki? ( net-misc/networkmanager[iwd] sys-libs/pam dev-libs/libp11 sys-libs/libcap net-fs/nfs-utils net-fs/cifs-utils sys-libs/readline net-libs/libmnl sys-apps/kmod app-arch/zstd media-libs/libmtp sys-fs/dosfstools sys-apps/coreutils dev-libs/libevent dev-libs/libpcre2 dev-libs/glib app-crypt/argon2 app-arch/bzip2 sys-libs/libxcrypt sys-block/nbd dev-libs/hidapi sys-apps/dbus dev-libs/libffi dev-libs/nss sys-auth/polkit dev-libs/userspace-rcu app-arch/lz4 sys-apps/gawk app-crypt/gnupg[smartcard,tpm(-)] sys-apps/acl sys-apps/hwdata app-crypt/tpm2-tss net-misc/curl dev-libs/libaio app-alternatives/awk sys-libs/libapparmor dev-libs/lzo sys-fs/e2fsprogs sys-fs/mdadm app-crypt/tpm2-tools sys-libs/libseccomp sys-fs/lvm2[lvm] sys-apps/keyutils dev-libs/json-c sys-apps/util-linux x86? ( sys-firmware/intel-microcode ) dev-libs/libgpg-error dev-db/sqlite amd64? ( sys-firmware/intel-microcode ) sys-libs/ncurses sys-fs/cryptsetup sys-apps/rng-tools dev-libs/libassuan sys-fs/xfsprogs net-wireless/iwd net-libs/nghttp2 sys-apps/attr net-dns/libidn2 sys-kernel/dracut sys-apps/nvme-cli net-libs/libndp sys-process/procps dev-libs/npth net-nds/openldap sys-apps/baselayout sys-fs/dmraid net-libs/libtirpc sys-fs/multipath-tools sys-fs/btrfs-progs sys-apps/sed net-fs/samba dev-libs/oniguruma sys-libs/glibc dev-libs/icu app-arch/xz-utils app-alternatives/gzip dev-libs/cyrus-sasl sys-libs/libnvme app-misc/jq dev-libs/expat sys-apps/iproute2 media-libs/libv4l sys-libs/zlib dev-libs/libusb net-wireless/bluez sys-devel/gcc dev-libs/libunistring app-arch/gzip dev-libs/openssl sys-apps/shadow app-misc/ddcutil sys-kernel/linux-firmware[redistributable,-unknown-license] sys-apps/less app-shells/bash dev-libs/opensc sys-apps/systemd[boot(-),cryptsetup,pkcs11,policykit,tpm,ukify(-)] sys-apps/fwupd dev-libs/libgcrypt sys-apps/pcsc-lite dev-libs/libtasn1 app-crypt/p11-kit sys-libs/libcap-ng app-alternatives/sh net-dns/c-ares sys-apps/kbd ) | ||
DEFINED_PHASES=compile config configure install postinst postrm preinst prepare pretend setup test unpack | ||
DESCRIPTION=Zen Kernel built with Gentoo patches | ||
EAPI=8 | ||
HOMEPAGE=https://wiki.gentoo.org/wiki/Project:Distribution_Kernel https://github.com/zen-kernel | ||
IDEPEND=generic-uki? ( >=sys-kernel/installkernel-14[-dracut(-),-ugrd(-),-ukify(-)] ) !generic-uki? ( !initramfs? ( >=sys-kernel/installkernel-14 ) initramfs? ( || ( >=sys-kernel/installkernel-14[dracut(-)] >=sys-kernel/installkernel-14[ugrd(-)] ) ) ) | ||
INHERIT=kernel-build unpacker | ||
IUSE=secureboot savedconfig +initramfs test generic-uki modules-compress +strip modules-sign | ||
KEYWORDS=~amd64 | ||
LICENSE=GPL-2 generic-uki? ( GPL-2+ LGPL-2.1+ || ( BSD GPL-2 ) LGPL-2.1 || ( GPL-2 BSD ) GPL-2 GPL-3 GPL-3+ LGPL-2.1 LGPL-2 || ( BSD GPL-2 ) LGPL-2.1 GPL-3 GPL-3+ BSD BSD LGPL-2.1+ || ( Apache-2.0 CC0-1.0 ) BZIP2 LGPL-2.1+ public-domain BSD BSD-2 GPL-2 || ( BSD GPL-3 HIDAPI ) || ( AFL-2.1 GPL-2 ) MIT || ( MPL-2.0 GPL-2 LGPL-2.1 ) LGPL-2 LGPL-2.1 BSD-2 GPL-2 GPL-3+ GPL-3+ LGPL-2.1 GPL-2+ BSD-2 BSD curl ISC LGPL-2 CC0-1.0 GPL-2 LGPL-2.1 GPL-2+ GPL-2 BSD GPL-2 BSD LGPL-2.1 GPL-2 GPL-2 LGPL-2.1 MIT GPL-2 GPL-3 LGPL-2.1 BSD-4 MIT public-domain x86? ( intel-ucode ) GPL-2 LGPL-2.1 public-domain amd64? ( intel-ucode ) MIT GPL-2+ GPL-2 GPL-3 LGPL-2.1 LGPL-2.1 GPL-2 MIT LGPL-2.1 || ( GPL-2+ LGPL-3+ ) GPL-3+ unicode GPL-2 GPL-2 GPL-2+ LGPL-2.1+ GPL-2+ LGPL-2+ LGPL-2.1+ LGPL-2.1+ OPENLDAP GPL-2 GPL-2 GPL-2 BSD BSD-2 BSD-4 LGPL-2.1+ GPL-2 GPL-2 GPL-3+ GPL-3 BSD-2 LGPL-2.1+ BSD HPND ISC inner-net rc PCRE BSD public-domain LGPL-2.1+ GPL-2+ CC0-1.0 BSD-with-attribution LGPL-2.1+ MIT CC-BY-3.0 MIT GPL-2 LGPL-2.1+ ZLIB LGPL-2.1 GPL-2+ LGPL-2.1+ GPL-3+ LGPL-3+ || ( GPL-3+ libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.3+ || ( LGPL-3+ GPL-2+ ) || ( FDL-1.2 GPL-3+ ) GPL-3+ Apache-2.0 BSD GPL-2 GPL-2 GPL-2 GPL-2+ GPL-3 BSD MIT || ( MPL-1.1 GPL-2 ) linux-fw-redistributable BSD-2 BSD BSD-4 ISC MIT || ( GPL-3 BSD-2 ) GPL-3+ LGPL-2.1 GPL-2 LGPL-2.1 MIT public-domain LGPL-2.1+ LGPL-2.1 MIT BSD ISC MIT GPL-3+ GPL-2 LGPL-2.1+ MIT LGPL-2.1 CC0-1.0 MIT ISC GPL-2 ) | ||
PDEPEND=>=virtual/dist-kernel-6.8.9 | ||
RDEPEND=sys-apps/kmod[lzma] virtual/libelf | ||
REQUIRED_USE=savedconfig secureboot? ( modules-sign ) | ||
RESTRICT=!test? ( test ) test? ( userpriv ) arm? ( test ) | ||
SLOT=6.8.9 | ||
SRC_URI=https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.8.tar.xz https://dev.gentoo.org/~mpagano/dist/genpatches/genpatches-6.8-12.base.tar.xz https://dev.gentoo.org/~mpagano/dist/genpatches/genpatches-6.8-12.extras.tar.xz https://github.com/zen-kernel/zen-kernel/releases/download/v6.8.9-zen1/linux-v6.8.9-zen1.patch.zst | ||
_eclasses_=secureboot 4911adb593665638c76fbd4e70d451ac multiprocessing 30ead54fa2e2b5f9cd4e612ffc34d0fe toolchain-funcs e56c7649b804f051623c8bc1a1c44084 multilib c19072c3cd7ac5cb21de013f7e9832e0 python-utils-r1 8b220bbce5c119fb1d4d5c2f5588f3ea python-any-r1 f5169813d1619761b459800587005fd2 portability 225656ad6c6594fe3b0187bdd50707fb savedconfig 8b5f9d995a970e49cd427c55d5840285 mount-boot-utils 69218c024651aa10db01df7e8a5b63e0 dist-kernel-utils c5204a4147b612736aef239e7cc69885 kernel-install cce61bd372811e273de9c2ef66b37b95 kernel-build 6a2cc3fb1f60ca31c55b98cb7e909739 unpacker 7b40f3faa3e2e12f5cf6d36d0fbfcd09 | ||
_md5_=8eb01d549c144a946415689171e158ab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE catmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> | ||
<catmetadata> | ||
<longdescription lang="en"> | ||
The sys-kernel category contains kernel source ebuilds and | ||
kernel-related tools. | ||
</longdescription> | ||
<longdescription lang="es"> | ||
La categoría sys-kernel contiene las fuentes del núcleo y herramientas | ||
relacionadas con este. | ||
</longdescription> | ||
<longdescription lang="de"> | ||
Die Kategorie sys-kernel enthält Ebuilds für Kernelquellen | ||
sowie damit in Zusammenhang stehende Pakete. | ||
</longdescription> | ||
<longdescription lang="ja"> | ||
sys-kernelカテゴリにはカーネルソースebuildとカーネル関連ツールが含まれます。 | ||
</longdescription> | ||
<longdescription lang="nl"> | ||
De sys-kernel categorie bevat ebuilds voor kernelbroncode en gerelateerde | ||
hulpmiddelen. | ||
</longdescription> | ||
<longdescription lang="vi"> | ||
Nhóm sys-kernel chứa ebuild mã nguồn kernel và các công cụ | ||
liên quan đến kernel. | ||
</longdescription> | ||
<longdescription lang="it"> | ||
La categoria sys-kernel contiene i sorgenti del kernel e alcuni programmi | ||
per la sua gestione come genkernel. | ||
</longdescription> | ||
<longdescription lang="pt"> | ||
A categoria sys-kernel contém ebuilds de fonte de kernel e | ||
ferramentas relacionadas a kernel. | ||
</longdescription> | ||
<longdescription lang="pl"> | ||
Kategoria sys-kernel zawiera źródła jądra oraz związane z nimi narzędzia. | ||
</longdescription> | ||
</catmetadata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
DIST genpatches-6.8-12.base.tar.xz 687664 BLAKE2B 3c27ee511c258f3659d7f8cd5b6d470ffa10a2fc95bd536b272e0bb20c368dfc8c512f23fdc025e85ad90d6f628a58c80d8d15ec0ef8898caf7461162cf2dec2 SHA512 cd845b49341366190834b9782c9ffa270608a35e616ff483b40094913f6d01809421b80a7830117b606e57e6bb0ed9b0ed6dc14220826364fc9d2ee6a5916ad6 | ||
DIST genpatches-6.8-12.extras.tar.xz 3736 BLAKE2B 15a15ca3097dc42ac5855e59fe61c961854c1afa8adc719c761ac58bb7c869d3240c228b0963a91927a9bc0af6998b4c40e4d286faf7d2defc2f21029d11c114 SHA512 4f1c8c07e81c0d1ed110bd4512d2a16c3e202c47d8ab6bedf5213cf6c2f8675e9b543e52dbce50fbbf550d88252e2c1c19c2465ddd7907f11a2979fa92466a7c | ||
DIST linux-6.8.tar.xz 142502100 BLAKE2B c6f17f816cea16e629f63e9379b98888713f57b2c5173306926471f139a9d612a0c74e119341f8075390e55e203d787d9edeb4ad5a064b18870f6f0f7ffaafb2 SHA512 5c4eb4aa1d3f7d1ea01c0f7ddeadacdece6e144fd4bdfc16b2b925d3e10dc04de3a6db69320b79a96c3560052616f001d2c09e7a1bb4f7b731e2380a7ecce068 | ||
DIST linux-v6.8.9-zen1.patch.zst 165430 BLAKE2B e30af55b8109cbb05d79d729ff75eb70d371e649d7ac6dc6f216e6ac039e77fff7c67d924fe0ebe48720f7f016b6db514692ea2c1fd22e7db862ea40ce062696 SHA512 8901f582bf980ea967e0c7fbdbff2ca089eccc72b24776a365e3b50743d5614127b96ca276bd3c74c52e626c01c2d7e8bd65ba9980bee19f536d6e9c0e8bbc8a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> | ||
<pkgmetadata> | ||
<upstream> | ||
<remote-id type="cpe">cpe:/o:linux:linux_kernel</remote-id> | ||
<remote-id type="github">zen-kernel/zen-kernel</remote-id> | ||
</upstream> | ||
<use> | ||
<flag name="generic-uki"> | ||
Build and install a generic initramfs and Unified Kernel Image, | ||
this is intended for building binpkgs with a pre-generated UKI | ||
included (EXPERIMENTAL). | ||
</flag> | ||
<flag name="initramfs"> | ||
Build initramfs along with the kernel. | ||
</flag> | ||
</use> | ||
</pkgmetadata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Copyright 2020-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
KERNEL_IUSE_GENERIC_UKI=0 | ||
KERNEL_IUSE_MODULES_SIGN=0 | ||
|
||
inherit kernel-build unpacker | ||
|
||
MY_P=linux-${PV%.*} | ||
GENPATCHES_VER="12" | ||
GENPATCHES_P=genpatches-${PV%.*}-${GENPATCHES_VER} | ||
|
||
DESCRIPTION="Zen Kernel built with Gentoo patches" | ||
HOMEPAGE=" | ||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel | ||
https://github.com/zen-kernel | ||
" | ||
SRC_URI+=" | ||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz | ||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz | ||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz | ||
https://github.com/zen-kernel/zen-kernel/releases/download/v${PV}-zen1/linux-v${PV}-zen1.patch.zst | ||
" | ||
S=${WORKDIR}/${MY_P} | ||
|
||
KEYWORDS="~amd64" | ||
REQUIRED_USE="savedconfig" | ||
|
||
PDEPEND=" | ||
>=virtual/dist-kernel-${PV} | ||
" | ||
|
||
QA_FLAGS_IGNORED=" | ||
usr/src/linux-.*/scripts/gcc-plugins/.*.so | ||
usr/src/linux-.*/vmlinux | ||
" | ||
|
||
src_unpack() { | ||
unpacker "linux-v${PV}-zen1.patch.zst" | ||
default | ||
} | ||
|
||
src_prepare() { | ||
local PATCHES=( | ||
# meh, genpatches have no directory | ||
"${WORKDIR}"/*.patch | ||
) | ||
default | ||
} |