diff options
author | 2023-02-02 20:28:44 +0100 | |
---|---|---|
committer | 2023-02-02 20:54:08 +0100 | |
commit | 7baa5506b22f25ae977e2e83c76c28e4d8c3aebd (patch) | |
tree | dcb970fa96318daa0be89c9ce3c03f6c21c67649 /sys-kernel/raspberrypi-sources/raspberrypi-sources-5.15.84_p20230106.ebuild | |
parent | net-misc/openssh: add 9.2_p1 (diff) | |
download | gentoo-7baa5506b22f25ae977e2e83c76c28e4d8c3aebd.tar.gz gentoo-7baa5506b22f25ae977e2e83c76c28e4d8c3aebd.tar.bz2 gentoo-7baa5506b22f25ae977e2e83c76c28e4d8c3aebd.zip |
sys-kernel/raspberrypi-sources: add 5.15.84_p20230106
Signed-off-by: Dennis Lamm <expeditioneer@gentoo.org>
Diffstat (limited to 'sys-kernel/raspberrypi-sources/raspberrypi-sources-5.15.84_p20230106.ebuild')
-rw-r--r-- | sys-kernel/raspberrypi-sources/raspberrypi-sources-5.15.84_p20230106.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/sys-kernel/raspberrypi-sources/raspberrypi-sources-5.15.84_p20230106.ebuild b/sys-kernel/raspberrypi-sources/raspberrypi-sources-5.15.84_p20230106.ebuild new file mode 100644 index 000000000000..f4e22682e9bc --- /dev/null +++ b/sys-kernel/raspberrypi-sources/raspberrypi-sources-5.15.84_p20230106.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ETYPE=sources +K_DEFCONFIG="bcmrpi_defconfig" +K_SECURITY_UNSUPPORTED=1 +EXTRAVERSION="-${PN}/-*" + +K_EXP_GENPATCHES_NOUSE=1 +K_GENPATCHES_VER=22 +K_DEBLOB_AVAILABLE=0 +K_WANT_GENPATCHES="base extras" + +inherit kernel-2 linux-info +detect_version +detect_arch + +MY_P=$(ver_cut 4-) +MY_P="1.${MY_P/p/}" + +DESCRIPTION="Raspberry Pi kernel sources" +HOMEPAGE="https://github.com/raspberrypi/linux" +SRC_URI=" + https://github.com/raspberrypi/linux/archive/${MY_P}.tar.gz -> linux-${KV_FULL}.tar.gz + ${GENPATCHES_URI} +" + +KEYWORDS="~arm ~arm64" + +PATCHES=("${FILESDIR}"/${PN}-5.15.32-gentoo-kconfig.patch) + +UNIPATCH_EXCLUDE=" + 10* + 15* + 2000 + 29* + 3000 + 4567" + +pkg_setup() { + ewarn "" + ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way." + ewarn "If you need support, please contact the raspberrypi developers directly." + ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with" + ewarn "the ebuilds. Thank you." + ewarn "" + + kernel-2_pkg_setup +} + +universal_unpack() { + unpack linux-${KV_FULL}.tar.gz + + # We want to rename the unpacked directory to a nice normalised string + # bug #762766 + mv "${WORKDIR}"/linux-${MY_P} "${WORKDIR}"/linux-${KV_FULL} || die + + # remove all backup files + find . -iname "*~" -exec rm {} \; 2>/dev/null +} + +src_prepare() { + default + kernel-2_src_prepare +} + +pkg_postinst() { + kernel-2_pkg_postinst +} + +pkg_postrm() { + kernel-2_pkg_postrm +} |