summaryrefslogtreecommitdiff
blob: 4c7c673e41954c71ee0eb6cd26359aa379cbe071 (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
33
34
35
36
37
38
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit git-2 versionator

DESCRIPTION="Raspberry PI precompiled kernel and modules"
HOMEPAGE="https://github.com/raspberrypi/firmware"
EGIT_REPO_URI="https://github.com/raspberrypi/firmware.git"
EGIT_PROJECT="raspberrypi-firmware.git"
EGIT_BRANCH="master"

LICENSE="GPL-2 raspberrypi-videocore-bin"
SLOT="${PV}"
KEYWORDS=""
IUSE="doc"

RESTRICT="binchecks strip"

src_install() {
	MY_PV=$(awk '{ print $3 }' extra/uname_string)
	insinto /boot
	local suffix
	for suffix in "" "_emergency" ; do
		newins boot/kernel${suffix}.img kernel-${MY_PV}${suffix}.img
		newins extra/System${suffix}.map System-${MY_PV}${suffix}.map
		newins extra/Module${suffix}.symvers Module-${MY_PV}${suffix}.symvers
	done

	insinto /lib/modules
	doins -r modules/${MY_PV}

	if use doc ; then
		dohtml documentation/ilcomponents/*
	fi
}