forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-embedded/rpi-eeprom: bump to 11.0_p1
Nothing has changed in the "critical" default release channel, but "stable" now has support for CM4/PI400. News since 10.3_p1: ** 2020-12-14 - Promote pieeprom-2020-12-11.bin to stable - STABLE * Feature freeze to support stable release of BCM2711 XHCI boot, tryboot, HDMI_DELAY, USB MSD improvements. ** 2020-12-11 - CM4/PI400 conditional filters - BETA * Add support for [cm4] and [pi400] config conditionals filters. * Tidyup RPIBOOT USB descriptors. * Add a gap before displaying LED error pattern and change the default state to off after displaying the first error pattern. * Generate 0xffff instead of 0x0 if the checksum of the UDP packet to be transmitted is 0x0. * Rename USB-DEV to RPIBOOT in boot-mode strings. Bootmode was renamed to avoid confusion with USB MSD boot. Closes: https://bugs.gentoo.org/760336 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Peter Alfredsen <[email protected]> Closes: gentoo#18681 Signed-off-by: Sam James <[email protected]>
- Loading branch information
1 parent
7bff7b3
commit 155785b
Showing
2 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# Copyright 1999-2020 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
PYTHON_COMPAT=( python3_{6,7,8,9} ) | ||
|
||
inherit python-r1 systemd | ||
|
||
DESCRIPTION="Updater for Raspberry Pi 4 bootloader and the VL805 USB controller" | ||
HOMEPAGE="https://github.com/raspberrypi/rpi-eeprom/" | ||
MY_P="${PN}-$(ver_cut 1-2)" | ||
MY_BASE_URL="https://archive.raspberrypi.org/debian/pool/main/r/${PN}/${PN}_$(ver_cut 1-2)" | ||
SRC_URI="${MY_BASE_URL}-$(ver_cut 4).debian.tar.xz | ||
${MY_BASE_URL}.orig.tar.gz" | ||
S="${WORKDIR}" | ||
|
||
SLOT="0" | ||
LICENSE="BSD rpi-eeprom" | ||
KEYWORDS="~arm ~arm64" | ||
REQUIRED_USE="${PYTHON_REQUIRED_USE}" | ||
|
||
BDEPEND="sys-apps/help2man" | ||
DEPEND="${PYTHON_DEPS}" | ||
RDEPEND="${PYTHON_DEPS} | ||
sys-apps/flashrom | ||
|| ( | ||
>=media-libs/raspberrypi-userland-0_pre20201022 | ||
>=media-libs/raspberrypi-userland-bin-1.20201022 | ||
)" | ||
|
||
src_prepare() { | ||
default | ||
sed -i \ | ||
-e 's:/etc/default/rpi-eeprom-update:/etc/conf.d/rpi-eeprom-update:' \ | ||
"${MY_P}/rpi-eeprom-update" || die "Failed sed on rpi-eeprom-update" | ||
sed -i \ | ||
-e 's:/usr/bin/rpi-eeprom-update:/usr/sbin/rpi-eeprom-update:' \ | ||
"debian/rpi-eeprom.rpi-eeprom-update.service" || die "Failed sed on rpi-eeprom.rpi-eeprom-update.service" | ||
} | ||
|
||
src_install() { | ||
pushd "${MY_P}" 1>/dev/null || die "Cannot change into directory ${MY_P}" | ||
|
||
python_scriptinto /usr/sbin | ||
python_foreach_impl python_newscript rpi-eeprom-config rpi-eeprom-config | ||
|
||
dosbin rpi-eeprom-update | ||
keepdir /var/lib/raspberrypi/bootloader/backup | ||
|
||
for dir in critical stable beta; do | ||
insinto /lib/firmware/raspberrypi/bootloader | ||
doins -r firmware/${dir} | ||
done | ||
|
||
dodoc firmware/release-notes.md | ||
|
||
help2man -N \ | ||
--version-string="${PV}" --help-option="-h" \ | ||
--name="Bootloader EEPROM configuration tool for the Raspberry Pi 4B" \ | ||
--output=rpi-eeprom-config.1 ./rpi-eeprom-config || die "Failed to create manpage for rpi-eeprom-config" | ||
|
||
help2man -N \ | ||
--version-string="${PV}" --help-option="-h" \ | ||
--name="Checks whether the Raspberry Pi bootloader EEPROM is \ | ||
up-to-date and updates the EEPROM" \ | ||
--output=rpi-eeprom-update.1 ./rpi-eeprom-update || die "Failed to create manpage for rpi-eeprom-update" | ||
|
||
doman rpi-eeprom-update.1 rpi-eeprom-config.1 | ||
|
||
newconfd rpi-eeprom-update-default rpi-eeprom-update | ||
|
||
popd 1>/dev/null || die | ||
|
||
pushd debian 1>/dev/null || die "Cannot change into directory debian" | ||
|
||
systemd_newunit rpi-eeprom.rpi-eeprom-update.service rpi-eeprom-update.service | ||
newdoc changelog changelog.Debian | ||
|
||
popd 1>/dev/null || die | ||
|
||
newinitd "${FILESDIR}/init.d_rpi-eeprom-update-1" "rpi-eeprom-update" | ||
} | ||
|
||
pkg_postinst() { | ||
elog 'To have rpi-eeprom-update run at each startup, enable and start either' | ||
elog '/etc/init.d/rpi-eeprom-update (for openrc users)' | ||
elog 'or' | ||
elog 'rpi-eeprom-update.service (for systemd users)' | ||
elog '/etc/conf.d/rpi-eeprom-update contains the configuration.' | ||
elog 'FIRMWARE_RELEASE_STATUS="critical|stable|beta" determines' | ||
elog 'which release track you get. "critical" is recommended and the default.' | ||
} |