Fix RPi pre-image build hook with rpi-eeprom enabled (#4066)

Do not attempt to copy EEPROM update files to the boot partition, as they're
not created build-time anymore.
This commit is contained in:
Jan Čermák 2025-05-19 12:43:16 +02:00 committed by GitHub
parent 0c758df759
commit 5ebc3a0761
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,12 +21,6 @@ function hassos_pre_image() {
fi
cp "${BINARIES_DIR}"/*.dtbo "${BOOT_DATA}/overlays/" 2>/dev/null || true
# EEPROM update for Raspberry Pi 4/Compute Module 4
if grep -Eq "^BR2_PACKAGE_RPI_EEPROM=y$" "${BR2_CONFIG}"; then
cp "${BINARIES_DIR}/rpi-eeprom/pieeprom.sig" "${BOOT_DATA}/pieeprom.sig"
cp "${BINARIES_DIR}/rpi-eeprom/pieeprom.upd" "${BOOT_DATA}/pieeprom.upd"
fi
# Enable 64bit support
if [[ "${BOARD_ID}" =~ "64" ]]; then
sed -i "s|#arm_64bit|arm_64bit|g" "${BOOT_DATA}/config.txt"