summaryrefslogtreecommitdiff
path: root/recipes-images/images/tdx-extra.inc
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2017-09-09 14:28:07 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-10-03 18:24:43 +0200
commitf2c5dce725ddb348e1b21de856517d1e8ee03fa5 (patch)
treec20c87d889dff687eabf07a67578e77c7e777539 /recipes-images/images/tdx-extra.inc
parentc7bf677fbe999fcd0cfc2130626a27305880132c (diff)
/etc/issue: add the rootfs type and version to all images
Add this in IMAGE_PREPROCESS so that all image types get this change. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'recipes-images/images/tdx-extra.inc')
-rw-r--r--recipes-images/images/tdx-extra.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/recipes-images/images/tdx-extra.inc b/recipes-images/images/tdx-extra.inc
index 8a78825..d1efaae 100644
--- a/recipes-images/images/tdx-extra.inc
+++ b/recipes-images/images/tdx-extra.inc
@@ -9,8 +9,16 @@ COPY_LIC_DIRS_colibri-vf = "0"
#the following builds cross gdb and gdbserver
DEPENDS += "gdb-cross-${TARGET_ARCH}"
-#create the file /etc/timestamp
+add_rootfs_version () {
+ echo -n "${IMAGE_NAME} ${PV}" >> ${IMAGE_ROOTFS}/etc/issue
+ echo " ${TDX_VERDATE}" | sed 's/-//' >>${IMAGE_ROOTFS}/etc/issue
+ echo "" >> ${IMAGE_ROOTFS}/etc/issue
+}
+
+# create the file /etc/timestamp
IMAGE_PREPROCESS_COMMAND_append = " rootfs_update_timestamp;"
+# add the rootfs version to the welcome banner
+ROOTFS_POSTPROCESS_COMMAND += " add_rootfs_version;"
IMAGE_INSTALL_append_tegra = " \
u-boot-toradex-fw-utils \