Commit 93b2197b authored by Adam Wujek's avatar Adam Wujek

sw/petalinux: add /etc/version.diot with version information

Add /etc/version.diot file to the target filesystem with version information
Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent e14e1fe7
diot-version - adds file /etc/version.diot with the information about HW version, GIT commit id, build date, time and author
#
# This file is the diot-version recipe.
#
SUMMARY = "Put the build information into /etc/version.diot"
SECTION = "PETALINUX/core"
LICENSE = "GPLv3+"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891"
S = "${WORKDIR}"
do_compile() {
echo "HW version: ${SB_VER}" > ${S}/version.diot
echo "GIT commit id: ${GIT_VER}" >> ${S}/version.diot
echo "Built by: ${GIT_USR}" >> ${S}/version.diot
echo "Build date: `date +%Y.%m.%d-%H:%M:%S`" >> ${S}/version.diot
}
do_install() {
install -d ${D}${sysconfdir}
install -m 0644 ${S}/version.diot ${D}${sysconfdir}/
}
FILES_${PN} += "${sysconfdir}/version.diot"
......@@ -5,5 +5,6 @@ IMAGE_INSTALL_append = "\
lmsensors-sensors \
lmsensors-config-diot \
copy-emmcp2 \
diot-version \
python3-pytest \
"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment