Create and write proper OS & Machine indentification information.
Following the XDG standards; https://www.freedesktop.org/software/systemd/man/os-release.html https://www.freedesktop.org/software/systemd/man/machine-info.html /usr/lib/os-release NAME="OpenVoiceOS" VERSION="0.1.0 RaspberryPi 4 64bit" ID=ovos VERSION_ID=0.1.0 PRETTY_NAME="OpenVoiceOS 0.1.0 RaspberryPi 4 64bit" CPE_NAME=cpe:2.3⭕openvoiceos:ovos:0.1.0:*:development:*:*:*:rpi4-64:* HOME_URL=https://github.com/OpenVoiceOS/OpenVoiceOS DOCUMENTATION_URL=https://github.com/OpenVoiceOS/OpenVoiceOS/tree/develop/documentation SUPPORT_URL=https://github.com/OpenVoiceOS/OpenVoiceOS/issues VARIANT="OpenVoiceOS - Mycroft Edition" VARIANT_ID=ovos-rpi4-64-mycroft /etc/machine-info CHASSIS=embedded DEPLOYMENT=development
This commit is contained in:
parent
a8383b1187
commit
1e48bddce4
|
@ -3,6 +3,8 @@
|
|||
set -u
|
||||
set -e
|
||||
|
||||
BOARD_DIR="$(dirname $0)"
|
||||
|
||||
# Add a console on tty1
|
||||
#if [ -e ${TARGET_DIR}/etc/inittab ]; then
|
||||
# grep -qE '^tty1::' ${TARGET_DIR}/etc/inittab || \
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
BOARD_ID=rpi4-64
|
||||
BOARD_NAME="RaspberryPi 4 64bit"
|
||||
CHASSIS=embedded
|
|
@ -1 +0,0 @@
|
|||
../raspberrypi/post-build.sh
|
|
@ -0,0 +1,33 @@
|
|||
#!/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/config.txt ${BINARIES_DIR}/rpi-firmware/config.txt
|
||||
cp -f ../buildroot-external/board/raspberrypi/cmdline.txt ${BINARIES_DIR}/rpi-firmware/cmdline.txt
|
|
@ -0,0 +1,8 @@
|
|||
VERSION_MAJOR=0
|
||||
VERSION_MINOR=1
|
||||
VERSION_BUILD=0
|
||||
|
||||
OVOS_NAME="OpenVoiceOS"
|
||||
OVOS_ID="ovos"
|
||||
|
||||
DEPLOYMENT="development"
|
Loading…
Reference in New Issue