blob: c5517098fc5416b2cd79361926ad9f38a0ae594d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
ETYPE=sources
K_DEFCONFIG="bcmrpi_defconfig"
K_SECURITY_UNSUPPORTED=1
EXTRAVERSION="-${PN}/-*"
inherit kernel-2 eapi7-ver
detect_version
detect_arch
KV_FULL=$(ver_cut 4-)
KV_FULL="raspberrypi-kernel_1.${KV_FULL/p/}-1"
DESCRIPTION="Raspberry Pi kernel sources"
HOMEPAGE="https://github.com/raspberrypi/linux"
SRC_URI="https://github.com/raspberrypi/linux/archive/${KV_FULL}.tar.gz -> linux-${PV}-raspberrypi.tar.gz"
S="${WORKDIR}/linux-${PV}-raspberrypi"
KEYWORDS="~arm ~arm64"
src_unpack() {
default
# We want to rename the unpacked directory to a nice normalised string
# bug #762766
mv "${WORKDIR}"/linux-${KV_FULL} "${WORKDIR}"/linux-${PV}-raspberrypi || die
}
|