summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Alimi <rich@velvetsea.net>2017-09-10 16:33:30 -0700
committerMichael Palimaka <kensington@gentoo.org>2017-10-15 20:21:18 +1100
commit207d64181ea82d5d3251db27d856244b0e78ef6f (patch)
tree2c21df12e1bd0f0e02e463cbe6f4c863751d108e /sys-kernel/raspberrypi-image
parentsys-boot/raspberrypi-firmware: Include device trees, #630612 (diff)
downloadgentoo-207d64181ea82d5d3251db27d856244b0e78ef6f.tar.gz
gentoo-207d64181ea82d5d3251db27d856244b0e78ef6f.tar.bz2
gentoo-207d64181ea82d5d3251db27d856244b0e78ef6f.zip
sys-kernel/raspberrypi-image: Add live ebuild
Closes: https://github.com/gentoo/gentoo/pull/5685 Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'sys-kernel/raspberrypi-image')
-rw-r--r--sys-kernel/raspberrypi-image/raspberrypi-image-9999.ebuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/sys-kernel/raspberrypi-image/raspberrypi-image-9999.ebuild b/sys-kernel/raspberrypi-image/raspberrypi-image-9999.ebuild
new file mode 100644
index 00000000000..0e6d2da6e68
--- /dev/null
+++ b/sys-kernel/raspberrypi-image/raspberrypi-image-9999.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit git-r3 readme.gentoo-r1
+
+DESCRIPTION="Raspberry PI boot loader and firmware"
+HOMEPAGE="https://github.com/raspberrypi/firmware"
+SRC_URI=""
+
+LICENSE="GPL-2 raspberrypi-videocore-bin"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+EGIT_REPO_URI="https://github.com/raspberrypi/firmware"
+DOC_CONTENTS="Please configure your ram setup by editing /boot/config.txt"
+
+RESTRICT="binchecks strip"
+
+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.img
+ newins boot/kernel7.img kernel7.img
+
+ readme.gentoo_create_doc
+}