diff options
Diffstat (limited to 'sys-kernel/raspberrypi-image/raspberrypi-image-3.18.14_pre-r20150520.ebuild')
-rw-r--r-- | sys-kernel/raspberrypi-image/raspberrypi-image-3.18.14_pre-r20150520.ebuild | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/sys-kernel/raspberrypi-image/raspberrypi-image-3.18.14_pre-r20150520.ebuild b/sys-kernel/raspberrypi-image/raspberrypi-image-3.18.14_pre-r20150520.ebuild new file mode 100644 index 000000000000..1e4eef4c795a --- /dev/null +++ b/sys-kernel/raspberrypi-image/raspberrypi-image-3.18.14_pre-r20150520.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Raspberry PI precompiled kernel and modules" +HOMEPAGE="https://github.com/raspberrypi/firmware" +SRC_URI="https://dev.gentoo.org/~xmw/${PN}/${PF}.tar.xz" + +LICENSE="GPL-2" +SLOT="${PVR}" +KEYWORDS="~arm -*" +IUSE="" + +S=${WORKDIR} + +RESTRICT="binchecks mirror strip" + +src_prepare() { + #hide kernel vectors + chmod go= boot/System* || die + # on a filesystem with permissions + mv boot/System* lib/modules/* || die + elog "System.map has been moved to $(ls -d lib/modules/*)" +} + +src_install() { + mv -v boot "${D}" || die + + dodir /lib + mv -v lib/modules "${D}"/lib || die +} |