Skip to content

Commit 84835f4

Browse files
committed
tools: Move APT release scripts into a sub-directory
Move the APT release helper scripts into a sub-directory including a new script which updates the APT dependency version information. The default is to always require the latest rpi-eeprom APT release for both build and install versions.
1 parent fe858e3 commit 84835f4

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

tools/release-scripts/update-apt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
set -eu
4+
5+
#sudo apt update
6+
#sudo apt full-ugprade -y
7+
8+
for chip in 2711 2712; do
9+
image=$(ls -l firmware/${chip}/ | grep pieeprom | sed 's/.*\///g')
10+
sed -i -e "s/${chip}\\/latest\\/pieeprom[0-9\\-]*.bin/${chip}\\/latest\\/${image}/g" debian/rules
11+
done
12+
13+
version=$(dpkg-query -W -f='${Version}\n' rpi-eeprom | sed 's/\-.*//g')
14+
sed -i -e "s/rpi-eeprom ([^)]*)/rpi-eeprom (>= ${version})/" debian/control

0 commit comments

Comments
 (0)