blob: 477d8364c738b07237fd680badab5a0ee7cf0a38 (
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
|
# Copyright 1999-2022 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
inherit kernel-2 linux-info
detect_version
MY_P=$(ver_cut 4-)
MY_P="raspberrypi-kernel_1.${MY_P/p/}-1"
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"
KEYWORDS="~arm ~arm64"
src_unpack() {
default
# We want to rename the unpacked directory to a nice normalised string
# bug #762766
mv "${WORKDIR}"/linux-${MY_P} "${WORKDIR}"/linux-${KV_FULL} || die
}
|