diff options
author | Michael Weber <xmw@gentoo.org> | 2016-03-15 14:34:09 +0100 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2016-03-15 14:48:27 +0100 |
commit | 0364dc90bbaee22ab569bc7602527350f829a279 (patch) | |
tree | b4d79e5ec671a29c6d8cf5bd269eb719df951b40 /sys-kernel/raspberrypi-image/raspberrypi-image-4.1.19_p20160309.ebuild | |
parent | sys-kernel/raspberrypi-image: Drop old. (diff) | |
download | gentoo-0364dc90bbaee22ab569bc7602527350f829a279.tar.gz gentoo-0364dc90bbaee22ab569bc7602527350f829a279.tar.bz2 gentoo-0364dc90bbaee22ab569bc7602527350f829a279.zip |
sys-kernel/raspberrypi-image: Version bump.
Package-Manager: portage-2.2.28
Diffstat (limited to 'sys-kernel/raspberrypi-image/raspberrypi-image-4.1.19_p20160309.ebuild')
-rw-r--r-- | sys-kernel/raspberrypi-image/raspberrypi-image-4.1.19_p20160309.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/sys-kernel/raspberrypi-image/raspberrypi-image-4.1.19_p20160309.ebuild b/sys-kernel/raspberrypi-image/raspberrypi-image-4.1.19_p20160309.ebuild new file mode 100644 index 000000000000..7301af3e9fe9 --- /dev/null +++ b/sys-kernel/raspberrypi-image/raspberrypi-image-4.1.19_p20160309.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit readme.gentoo + +DESCRIPTION="Raspberry PI boot loader and firmware" +HOMEPAGE="https://github.com/raspberrypi/firmware" +MY_PV="1.20160309" +SRC_URI="https://github.com/raspberrypi/firmware/archive/${MY_PV} -> raspberrypi-firmware-${MY_PV}.tar.gz" + +LICENSE="GPL-2 raspberrypi-videocore-bin" +SLOT="${PVR}" +KEYWORDS="~arm -*" +IUSE="" + +DEPEND="" +RDEPEND="" + +S=${WORKDIR}/firmware-${MY_PV} + +RESTRICT="" + +pkg_preinst() { + if [ -z "${REPLACING_VERSIONS}" ] ; then + local msg="" + if [ -e "${D}"/boot/cmdline.txt -a -e "${ROOT}"/boot/cmdline.txt ] ; then + msg+="/boot/cmdline.txt " + fi + if [ -e "${D}"/boot/config.txt -a -e "${ROOT}"/boot/config.txt ] ; then + msg+="/boot/config.txt " + fi + if [ -n "${msg}" ] ; then + msg="This package installs following files: ${msg}." + msg="${msg} Please remove(backup) your copies during install" + msg="${msg} and merge settings afterwards." + msg="${msg} Further updates will be CONFIG_PROTECTed." + die "${msg}" + fi + fi + + if ! grep "${ROOT}boot" /proc/mounts >/dev/null 2>&1; then + ewarn "${ROOT}boot is not mounted, the files might not be installed at the right place" + fi +} + +src_configure() { :; } + +src_compile() { :; } + +src_install() { + insinto /lib/modules + doins -r modules/* + insinto /boot + newins boot/kernel.img kernel-${PV}.img + newins boot/kernel7.img kernel7-${PV}.img + + readme.gentoo_create_doc +} + +DOC_CONTENTS="Please configure your ram setup by editing /boot/config.txt" |