Gentoo Archives: gentoo-commits

From: Dennis Lamm <expeditioneer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/raspberrypi-sources/
Date: Tue, 26 Apr 2022 04:47:14
Message-Id: 1650948419.a060e14a6edd0ebef6668240339e0223d7a37252.expeditioneer@gentoo
1 commit: a060e14a6edd0ebef6668240339e0223d7a37252
2 Author: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 25 19:26:47 2022 +0000
4 Commit: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 26 04:46:59 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a060e14a
7
8 sys-kernel/raspberrypi-sources-5.15.32_p20220331: disabled deblobbing
9
10 Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org>
11 Package-Manager: Portage-3.0.30, Repoman-3.0.3
12 Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org>
13
14 ...raspberrypi-sources-5.15.32_p20220331-r1.ebuild | 86 ++++++++++++++++++++++
15 1 file changed, 86 insertions(+)
16
17 diff --git a/sys-kernel/raspberrypi-sources/raspberrypi-sources-5.15.32_p20220331-r1.ebuild b/sys-kernel/raspberrypi-sources/raspberrypi-sources-5.15.32_p20220331-r1.ebuild
18 new file mode 100644
19 index 000000000000..6c29a00f58a0
20 --- /dev/null
21 +++ b/sys-kernel/raspberrypi-sources/raspberrypi-sources-5.15.32_p20220331-r1.ebuild
22 @@ -0,0 +1,86 @@
23 +# Copyright 1999-2022 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=8
27 +
28 +ETYPE=sources
29 +K_EXP_GENPATCHES_NOUSE=1
30 +K_GENPATCHES_VER=2
31 +K_DEBLOB_AVAILABLE=0
32 +K_DEFCONFIG="bcmrpi_defconfig"
33 +K_GENPATCHES_VER=1
34 +K_SECURITY_UNSUPPORTED=1
35 +K_WANT_GENPATCHES="base extras"
36 +
37 +inherit kernel-2 linux-info
38 +detect_version
39 +detect_arch
40 +
41 +MY_P=$(ver_cut 4-)
42 +MY_P="1.${MY_P/p/}"
43 +
44 +DESCRIPTION="Raspberry Pi kernel sources"
45 +HOMEPAGE="https://github.com/raspberrypi/linux"
46 +SRC_URI="
47 + https://github.com/raspberrypi/linux/archive/${MY_P}.tar.gz -> linux-${OKV}_$(ver_cut 4-)-raspberrypi.tar.gz
48 + ${GENPATCHES_URI}
49 +"
50 +
51 +KEYWORDS="~arm ~arm64"
52 +
53 +PATCHES=("${FILESDIR}"/${PN}-$(ver_cut 1-3)-gentoo-kconfig.patch)
54 +
55 +UNIPATCH_EXCLUDE="
56 + 10*
57 + 4567_distro-Gentoo-Kconfig.patch"
58 +
59 +pkg_setup() {
60 + ewarn ""
61 + ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way."
62 + ewarn "If you need support, please contact the raspberrypi developers directly."
63 + ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with"
64 + ewarn "the ebuilds. Thank you."
65 + ewarn ""
66 +
67 + kernel-2_pkg_setup
68 +}
69 +
70 +src_unpack() {
71 + local OKV_ARRAY
72 + IFS="." read -r -a OKV_ARRAY <<<"${OKV}"
73 +
74 + cd "${WORKDIR}" || die
75 + unpack linux-${PV}-raspberrypi.tar.gz
76 +
77 + # We want to rename the unpacked directory to a nice normalised string
78 + # bug #762766
79 + mv linux-${MY_P} linux-${KV_FULL} || die "Unable to move source tree to ${KV_FULL}."
80 +
81 + # remove all backup files
82 + find . -iname "*~" -exec rm {} \; 2>/dev/null
83 +}
84 +
85 +src_prepare() {
86 + # kernel-2_src_prepare doesn't apply PATCHES().
87 + default
88 +
89 + cd "${WORKDIR}/linux-${KV_FULL}" || die
90 +
91 + handle_genpatches --set-unipatch-list
92 + [[ -n ${UNIPATCH_LIST} || -n ${UNIPATCH_LIST_DEFAULT} || -n ${UNIPATCH_LIST_GENPATCHES} ]] && \
93 + unipatch "${UNIPATCH_LIST_DEFAULT} ${UNIPATCH_LIST_GENPATCHES} ${UNIPATCH_LIST}"
94 +
95 + unpack_fix_install_path
96 +
97 + # Setup xmakeopts and cd into sourcetree.
98 + env_setup_xmakeopts
99 + cd "${S}" || die
100 +}
101 +
102 +pkg_postinst() {
103 + kernel-2_pkg_postinst
104 +}
105 +
106 +pkg_postrm() {
107 + kernel-2_pkg_postrm
108 +}