From 9e2f491849888d5bd4204cabbdda1697f42851af Mon Sep 17 00:00:00 2001 From: Gerben Jan Dijkman Date: Fri, 21 Jan 2022 11:08:14 +0100 Subject: [PATCH] Version bumps --- .../files/{config => config-pp} | 0 .../pinephone-sources-5.16.1.ebuild | 72 +++++++++++++++++++ .../pinephone-sources-5.16.2.ebuild | 72 +++++++++++++++++++ 3 files changed, 144 insertions(+) rename sys-kernel/pinephone-sources/files/{config => config-pp} (100%) create mode 100644 sys-kernel/pinephone-sources/pinephone-sources-5.16.1.ebuild create mode 100644 sys-kernel/pinephone-sources/pinephone-sources-5.16.2.ebuild diff --git a/sys-kernel/pinephone-sources/files/config b/sys-kernel/pinephone-sources/files/config-pp similarity index 100% rename from sys-kernel/pinephone-sources/files/config rename to sys-kernel/pinephone-sources/files/config-pp diff --git a/sys-kernel/pinephone-sources/pinephone-sources-5.16.1.ebuild b/sys-kernel/pinephone-sources/pinephone-sources-5.16.1.ebuild new file mode 100644 index 0000000..4019156 --- /dev/null +++ b/sys-kernel/pinephone-sources/pinephone-sources-5.16.1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + + +EAPI="8" +ETYPE="sources" +K_WANT_GENPATCHES="base extras" +K_GENPATCHES_VER="2" + +MEGI_PATCH_URI="https://xff.cz/kernels/${PV:0:4}/patches/all.patch" + +inherit kernel-2 +detect_version +detect_arch + +KEYWORDS="~arm64" + +DEPEND="${RDEPEND} + >=sys-devel/patch-2.7.5" + +DESCRIPTION="Full sources for the Linux kernel with gentoo patchset and with megi's patch for the PinePhone and PinePhone Pro" + +SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${MEGI_PATCH_URI} -> all-${PV}.patch" + +PATCHES=( + #Megi patch set + ${DISTDIR}/all-${PV}.patch + # Pinephone Keyboard + ${FILESDIR}/pp-keyboard.patch + ${FILESDIR}/ppp-keyboard.patch + # Bootsplash + ${FILESDIR}/0001-revert-garbage-collect-fbdev-scrolling-acceleration.patch + ${FILESDIR}/0002-revert-fbcon-remove-now-unusued-softback_lines-cursor-argument.patch + ${FILESDIR}/0003-revert-fbcon-remove-no-op-fbcon_set_origin.patch + ${FILESDIR}/0004-revert-fbcon-remove-soft-scrollback-code.patch + ${FILESDIR}/0001-bootsplash.patch + ${FILESDIR}/0002-bootsplash.patch + ${FILESDIR}/0003-bootsplash.patch + ${FILESDIR}/0004-bootsplash.patch + ${FILESDIR}/0005-bootsplash.patch + ${FILESDIR}/0006-bootsplash.patch + ${FILESDIR}/0007-bootsplash.patch + ${FILESDIR}/0008-bootsplash.patch + ${FILESDIR}/0009-bootsplash.patch + ${FILESDIR}/0010-bootsplash.patch + ${FILESDIR}/0011-bootsplash.patch + ${FILESDIR}/0012-bootsplash.patch +) + +src_prepare() { + default + eapply_user +} + +pkg_postinst() { + kernel-2_pkg_postinst + einfo "For more info on this patchset, and how to report problems, see:" + einfo "${HOMEPAGE}" + einfo "To build the kernel use the following command:" + einfo "make Image Image.gz modules" + einfo "make DTC_FLAGS="-@" dtbs" + einfo "make install; make modules_intall; make dtbs_install" + einfo "if you want to cross compile pinephone kernel on amd64 host, follow the https://wiki.gentoo.org/wiki/Cross_build_environment" + einfo "to setup cross toolchain environment, then create a xmake wrapper like the following, and replace make with xmake in above commands" + einfo "#!/bin/sh" + einfo "exec make ARCH='arm64' CROSS_COMPILE='aarch64-unknown-linux-gnu-' INSTALL_MOD_PATH='${SYSROOT}' '$@'" +} + +pkg_postrm() { + kernel-2_pkg_postrm +} + diff --git a/sys-kernel/pinephone-sources/pinephone-sources-5.16.2.ebuild b/sys-kernel/pinephone-sources/pinephone-sources-5.16.2.ebuild new file mode 100644 index 0000000..4019156 --- /dev/null +++ b/sys-kernel/pinephone-sources/pinephone-sources-5.16.2.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + + +EAPI="8" +ETYPE="sources" +K_WANT_GENPATCHES="base extras" +K_GENPATCHES_VER="2" + +MEGI_PATCH_URI="https://xff.cz/kernels/${PV:0:4}/patches/all.patch" + +inherit kernel-2 +detect_version +detect_arch + +KEYWORDS="~arm64" + +DEPEND="${RDEPEND} + >=sys-devel/patch-2.7.5" + +DESCRIPTION="Full sources for the Linux kernel with gentoo patchset and with megi's patch for the PinePhone and PinePhone Pro" + +SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${MEGI_PATCH_URI} -> all-${PV}.patch" + +PATCHES=( + #Megi patch set + ${DISTDIR}/all-${PV}.patch + # Pinephone Keyboard + ${FILESDIR}/pp-keyboard.patch + ${FILESDIR}/ppp-keyboard.patch + # Bootsplash + ${FILESDIR}/0001-revert-garbage-collect-fbdev-scrolling-acceleration.patch + ${FILESDIR}/0002-revert-fbcon-remove-now-unusued-softback_lines-cursor-argument.patch + ${FILESDIR}/0003-revert-fbcon-remove-no-op-fbcon_set_origin.patch + ${FILESDIR}/0004-revert-fbcon-remove-soft-scrollback-code.patch + ${FILESDIR}/0001-bootsplash.patch + ${FILESDIR}/0002-bootsplash.patch + ${FILESDIR}/0003-bootsplash.patch + ${FILESDIR}/0004-bootsplash.patch + ${FILESDIR}/0005-bootsplash.patch + ${FILESDIR}/0006-bootsplash.patch + ${FILESDIR}/0007-bootsplash.patch + ${FILESDIR}/0008-bootsplash.patch + ${FILESDIR}/0009-bootsplash.patch + ${FILESDIR}/0010-bootsplash.patch + ${FILESDIR}/0011-bootsplash.patch + ${FILESDIR}/0012-bootsplash.patch +) + +src_prepare() { + default + eapply_user +} + +pkg_postinst() { + kernel-2_pkg_postinst + einfo "For more info on this patchset, and how to report problems, see:" + einfo "${HOMEPAGE}" + einfo "To build the kernel use the following command:" + einfo "make Image Image.gz modules" + einfo "make DTC_FLAGS="-@" dtbs" + einfo "make install; make modules_intall; make dtbs_install" + einfo "if you want to cross compile pinephone kernel on amd64 host, follow the https://wiki.gentoo.org/wiki/Cross_build_environment" + einfo "to setup cross toolchain environment, then create a xmake wrapper like the following, and replace make with xmake in above commands" + einfo "#!/bin/sh" + einfo "exec make ARCH='arm64' CROSS_COMPILE='aarch64-unknown-linux-gnu-' INSTALL_MOD_PATH='${SYSROOT}' '$@'" +} + +pkg_postrm() { + kernel-2_pkg_postrm +} +