43 lines
1.6 KiB
Bash
43 lines
1.6 KiB
Bash
# Template file for 'rpi-eeprom'
|
|
pkgname=rpi-eeprom
|
|
version=2024.03.01
|
|
revision=1
|
|
_githash=b745226b41ac202976ee8307fcb179a1193fab3c
|
|
archs="armv7l* aarch64*"
|
|
conf_files="/etc/default/rpi-eeprom-update"
|
|
hostmakedepends="help2man python3"
|
|
depends="binutils pciutils python3 rpi-firmware rpi-utils"
|
|
short_desc="Bootloader and VL805 USB controller EEPROM update tool for RPi4/5"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="BSD-3-Clause, custom:Proprietary"
|
|
homepage="https://github.com/raspberrypi/rpi-eeprom/"
|
|
distfiles="https://github.com/raspberrypi/rpi-eeprom/archive/${_githash}.tar.gz"
|
|
checksum=5d53606e939a48206d0d68c6398e900ff2845863a52c28c2739fa84c8fbc0bac
|
|
python_version=3
|
|
repository=nonfree
|
|
|
|
do_install() {
|
|
vbin rpi-eeprom-config
|
|
vbin rpi-eeprom-update
|
|
vbin rpi-eeprom-digest
|
|
vinstall rpi-eeprom-update-default 644 etc/default rpi-eeprom-update
|
|
|
|
# from https://github.com/raspberrypi/rpi-eeprom/blob/debian/bookworm/debian/rules
|
|
help2man -N --version-string="${version}" --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
|
|
vman rpi-eeprom-update.1
|
|
|
|
help2man -N --version-string="${version}" --help-option="-h" \
|
|
--name="Bootloader EEPROM configuration tool for the Raspberry Pi 4/5" \
|
|
--output=rpi-eeprom-config.1 ./rpi-eeprom-config
|
|
vman rpi-eeprom-config.1
|
|
|
|
for soc in 2711 2712; do
|
|
vmkdir usr/lib/firmware/raspberrypi/bootloader-"$soc"
|
|
vcopy firmware-"$soc"/* usr/lib/firmware/raspberrypi/bootloader-"$soc"/
|
|
done
|
|
|
|
vlicense LICENSE
|
|
}
|