Fix post-build script for the new system

This commit is contained in:
j1nx 2023-04-11 11:16:39 +02:00
parent 7b0a01bcf7
commit 891bdd8abf
1 changed files with 3 additions and 3 deletions

View File

@ -29,17 +29,17 @@ BOARD_DIR="$(dirname $0)"
echo "DEPLOYMENT=${DEPLOYMENT}"
} > "${TARGET_DIR}/etc/machine-info"
cp -f ../buildroot-external/board/raspberrypi/cmdline.txt ${BINARIES_DIR}/rpi-firmware/cmdline.txt
cp -f ../buildroot-external/board/ovos/raspberrypi/cmdline.txt ${BINARIES_DIR}/rpi-firmware/cmdline.txt
# Copy the right config.txt file
for arg in "$@"
do
case "${arg}" in
--rpi3)
cp -f ../buildroot-external/board/raspberrypi/config_3_64bit.txt ${BINARIES_DIR}/rpi-firmware/config.txt
cp -f ../buildroot-external/board/ovos/raspberrypi/rpi3/config.txt ${BINARIES_DIR}/rpi-firmware/config.txt
;;
--rpi4)
cp -f ../buildroot-external/board/raspberrypi/config_4_64bit.txt ${BINARIES_DIR}/rpi-firmware/config.txt
cp -f ../buildroot-external/board/ovos/raspberrypi/rpi4/config.txt ${BINARIES_DIR}/rpi-firmware/config.txt
;;
esac
done