1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2025-01-06 14:27:43 +01:00
OpenVoiceOS/buildroot-external/board/raspberrypi/post-build.sh
j1nx e84818f62e Get buildroot-external tree to reflect 2022.02.1
- Changes to the raspberypi board folder/structure
- Bump python related poackages and fixes to Python3.10
- Bump KF5 framewerk packages to 5.91
- Bump qtwebengine to 5.15.8
- Bump/Add/Fix all OVOS related packages
- Fixes all over the OpenVoiceOS structure for 2022.02.1
2022-05-12 10:46:41 +02:00

46 lines
1.5 KiB
Bash
Executable File

#!/bin/sh
set -u
set -e
BOARD_DIR="$(dirname $0)"
. "${BR2_EXTERNAL_OPENVOICEOS_PATH}/meta"
. "${BOARD_DIR}/meta"
# Write os-release
{
echo "NAME=\"${OVOS_NAME}\""
echo "VERSION=\"${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_BUILD} ${BOARD_NAME}\""
echo "ID=${OVOS_ID}"
echo "VERSION_ID=${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_BUILD}"
echo "PRETTY_NAME=\"${OVOS_NAME} ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_BUILD} ${BOARD_NAME}\""
echo "CPE_NAME=cpe:2.3:o:openvoiceos:${OVOS_ID}:${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_BUILD}:*:${DEPLOYMENT}:*:*:*:${BOARD_ID}:*"
echo "HOME_URL=https://github.com/OpenVoiceOS/OpenVoiceOS"
echo "DOCUMENTATION_URL=https://github.com/OpenVoiceOS/OpenVoiceOS/tree/develop/documentation"
echo "SUPPORT_URL=https://github.com/OpenVoiceOS/OpenVoiceOS/issues"
echo "VARIANT=\"${OVOS_NAME} - Mycroft Edition\""
echo "VARIANT_ID=${OVOS_ID}-${BOARD_ID}-mycroft"
} > "${TARGET_DIR}/usr/lib/os-release"
# Write machine-info
{
echo "CHASSIS=${CHASSIS}"
echo "DEPLOYMENT=${DEPLOYMENT}"
} > "${TARGET_DIR}/etc/machine-info"
cp -f ../buildroot-external/board/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
;;
--rpi4)
cp -f ../buildroot-external/board/raspberrypi/config_4_64bit.txt ${BINARIES_DIR}/rpi-firmware/config.txt
;;
esac
done