summaryrefslogtreecommitdiff
path: root/sys-kernel/linux-bbb/linux-bbb-4.9.24.ebuild
blob: e1b34fe976a709395f8c5fd034b7b6892f54d873 (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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

GIT_REV="1b71b361146507b1e0c7922d05deb9164382ca66"

DESCRIPTION="Linux kernel"
HOMEPAGE="http://kernel.org/"
SRC_URI="https://codeload.github.com/beagleboard/linux/zip/${GIT_REV} -> ${P}.zip"
S="${WORKDIR}/linux-${GIT_REV}"

LICENSE="GPLv2"
SLOT="0"
KEYWORDS="-* arm"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"

src_configure() {
	emake bb.org_defconfig
}

src_compile() {
	emake uImage dtbs modules LOADADDR=0x82000000
}

src_install() {
	emake modules_install INSTALL_MOD_PATH="${D}"

	dodir /boot
	insinto /boot
	doins "${S}/arch/arm/boot/zImage"
	doins "arch/arm/boot/dts/am335x-boneblack.dtb"
}