diff options
-rw-r--r-- | recipes-images/images/tdx-extra.inc | 10 | ||||
-rw-r--r-- | recipes-images/images/tdx-image-fstype.inc | 5 |
2 files changed, 9 insertions, 6 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 \ diff --git a/recipes-images/images/tdx-image-fstype.inc b/recipes-images/images/tdx-image-fstype.inc index 80b004c..83dc3bb 100644 --- a/recipes-images/images/tdx-image-fstype.inc +++ b/recipes-images/images/tdx-image-fstype.inc @@ -171,11 +171,6 @@ fakeroot imagedeploy_arm() { rm -f ${IMAGE_ROOTFS}/../${MACHINE}_bin/u-boot-hsmmc-${MACHINE}.${UBOOT_EXT} mv ${IMAGE_ROOTFS}/../${MACHINE}_bin/${UBOOT_SYMLINK} ${IMAGE_ROOTFS}/../${MACHINE}_bin/${UBOOT_BINARY} - # add the rootfs version to the welcome banner - echo -n "${IMAGE_NAME} ${PV}" >> ${IMAGE_ROOTFS}/etc/issue - echo " ${TDX_VERDATE}" | sed 's/-//' >> ${IMAGE_ROOTFS}/etc/issue - echo "" >> ${IMAGE_ROOTFS}/etc/issue - # add additional tools if required imagedeploytools |