mirror of
https://github.com/raspberrypi/rpi-eeprom.git
synced 2026-01-21 05:55:01 +08:00
23 lines
835 B
Bash
Executable File
23 lines
835 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
set -x
|
|
|
|
script_dir=$(cd "$(dirname "$0")" && pwd)
|
|
base_dir="${script_dir}/.."
|
|
|
|
# Pi4, Pi400, CM4, CM4-S
|
|
image_date=$(ls -lr $base_dir/firmware-2711/default/ | grep pieeprom | sed 's/.*pieeprom-//g' | sed 's/.bin//g' | head -n1)
|
|
${script_dir}/make-release critical ${image_date} 000138c0 "${script_dir}/2711-config" release-2711 rpi-boot-eeprom-recovery 2711
|
|
|
|
# Pi5
|
|
image_date=$(ls -lr $base_dir/firmware-2712/default/ | grep pieeprom | sed 's/.*pieeprom-//g' | sed 's/.bin//g' | head -n1)
|
|
${script_dir}/make-release critical ${image_date} "" "${script_dir}/2712-config" release-2712 rpi-boot-eeprom-recovery 2712
|
|
|
|
# Convert to disk image for RPi Imager downloads
|
|
sudo ${script_dir}/make-recovery-images
|
|
|
|
# Delete the plain .zip files. These should not be uploaded as releases.
|
|
rm -rf release-2711
|
|
rm -rf release-2712
|