blob: 25a9ef591512de9b0832f980b64774e17e789b8c (
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
32
|
K_SECURITY_UNSUPPORTED="1"
ETYPE="sources"
inherit kernel-2
detect_version
DESCRIPTION="Full sources for the BLOB free version of the Linux kernel"
HOMEPAGE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
SRC_URI="http://www.linux-libre.fsfla.org/pub/linux-libre/releases/${PV}-libre/linux-${PV}-libre.tar.bz2"
KEYWORDS="~amd64 ~x86"
src_unpack() {
# kernel revision patches included in tarball
UNIPATCH_LIST_DEFAULT=""
# universal_unpack expects a different kernel tarball name
expected_tarball=${DISTDIR}/linux-${OKV}.tar.bz2
# temporarily move any preexisting kernel tarball
[[ -f $expected_tarball ]] && \
mv $expected_tarball ${expected_tarball}-original
ln -sf ${DISTDIR}/linux-${KV_FULL}.tar.bz2 $expected_tarball
kernel-2_src_unpack
rm $expected_tarball
# put any preexisting tarball back in its original location
[[ -f ${expected_tarball}-original ]] && \
mv ${expected_tarball}-original $expected_tarball
}
|