Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/raspberrypi-image/
Date: Sun, 15 Oct 2017 09:21:36
Message-Id: 1508059278.207d64181ea82d5d3251db27d856244b0e78ef6f.kensington@gentoo
1 commit: 207d64181ea82d5d3251db27d856244b0e78ef6f
2 Author: Rich Alimi <rich <AT> velvetsea <DOT> net>
3 AuthorDate: Sun Sep 10 23:33:30 2017 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 15 09:21:18 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=207d6418
7
8 sys-kernel/raspberrypi-image: Add live ebuild
9
10 Closes: https://github.com/gentoo/gentoo/pull/5685
11 Package-Manager: Portage-2.3.6, Repoman-2.3.1
12
13 .../raspberrypi-image-9999.ebuild | 57 ++++++++++++++++++++++
14 1 file changed, 57 insertions(+)
15
16 diff --git a/sys-kernel/raspberrypi-image/raspberrypi-image-9999.ebuild b/sys-kernel/raspberrypi-image/raspberrypi-image-9999.ebuild
17 new file mode 100644
18 index 00000000000..0e6d2da6e68
19 --- /dev/null
20 +++ b/sys-kernel/raspberrypi-image/raspberrypi-image-9999.ebuild
21 @@ -0,0 +1,57 @@
22 +# Copyright 1999-2017 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=5
26 +
27 +inherit git-r3 readme.gentoo-r1
28 +
29 +DESCRIPTION="Raspberry PI boot loader and firmware"
30 +HOMEPAGE="https://github.com/raspberrypi/firmware"
31 +SRC_URI=""
32 +
33 +LICENSE="GPL-2 raspberrypi-videocore-bin"
34 +SLOT="0"
35 +KEYWORDS=""
36 +IUSE=""
37 +
38 +EGIT_REPO_URI="https://github.com/raspberrypi/firmware"
39 +DOC_CONTENTS="Please configure your ram setup by editing /boot/config.txt"
40 +
41 +RESTRICT="binchecks strip"
42 +
43 +pkg_preinst() {
44 + if [ -z "${REPLACING_VERSIONS}" ] ; then
45 + local msg=""
46 + if [ -e "${D}"/boot/cmdline.txt -a -e "${ROOT}"/boot/cmdline.txt ] ; then
47 + msg+="/boot/cmdline.txt "
48 + fi
49 + if [ -e "${D}"/boot/config.txt -a -e "${ROOT}"/boot/config.txt ] ; then
50 + msg+="/boot/config.txt "
51 + fi
52 + if [ -n "${msg}" ] ; then
53 + msg="This package installs following files: ${msg}."
54 + msg="${msg} Please remove(backup) your copies during install"
55 + msg="${msg} and merge settings afterwards."
56 + msg="${msg} Further updates will be CONFIG_PROTECTed."
57 + die "${msg}"
58 + fi
59 + fi
60 +
61 + if ! grep "${ROOT}boot" /proc/mounts >/dev/null 2>&1; then
62 + ewarn "${ROOT}boot is not mounted, the files might not be installed at the right place"
63 + fi
64 +}
65 +
66 +src_configure() { :; }
67 +
68 +src_compile() { :; }
69 +
70 +src_install() {
71 + insinto /lib/modules
72 + doins -r modules/*
73 + insinto /boot
74 + newins boot/kernel.img kernel.img
75 + newins boot/kernel7.img kernel7.img
76 +
77 + readme.gentoo_create_doc
78 +}