#!/bin/sh

set -e

script_dir=$(cd "$(dirname "$0")" && pwd)
bcm_chip=$1

if [ "${bcm_chip}" = 2711 ]; then
	# Pi4, Pi400, CM4, CM4-S
	${script_dir}/make-release critical 2023-01-11 000138c0 "${script_dir}/${bcm_chip}-config" release-${bcm_chip} rpi-boot-eeprom-recovery-${bcm_chip} ${bcm_chip}
elif [ "${bcm_chip}" = 2712 ]; then
	# Pi5
	${script_dir}/make-release critical 2023-09-21 "" "${script_dir}/${bcm_chip}-config" release-${bcm_chip} rpi-boot-eeprom-recovery-${bcm_chip} ${bcm_chip}
else
	echo "Usage: $(basename $0) 2711|2712"
	exit 1
fi
