From 1ab4411e1d81ff792ad0527f8ed388da2f82f09e Mon Sep 17 00:00:00 2001 From: Philippe Schenker Date: Tue, 14 Jul 2020 18:30:43 +0200 Subject: images: rename toradex reference images console-tdx-image.bb -> tdx-reference-minimal-image.bb verification-tdx-image.bb -> tdx-reference-multimedia-image.bb Related-to: ELB-2838 Signed-off-by: Philippe Schenker --- .../images/tdx-reference-minimal-image.bb | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 recipes-images/images/tdx-reference-minimal-image.bb (limited to 'recipes-images/images/tdx-reference-minimal-image.bb') diff --git a/recipes-images/images/tdx-reference-minimal-image.bb b/recipes-images/images/tdx-reference-minimal-image.bb new file mode 100644 index 0000000..938a5dd --- /dev/null +++ b/recipes-images/images/tdx-reference-minimal-image.bb @@ -0,0 +1,41 @@ +inherit core-image + +SUMMARY = "Toradex Embedded Linux Reference Minimal Image" +DESCRIPTION = "Minimal image without graphical interface that just boots" + +LICENSE = "MIT" + +#Prefix to the resulting deployable tarball name +export IMAGE_BASENAME = "Reference-Minimal-Image" +MACHINE_NAME ?= "${MACHINE}" +IMAGE_NAME = "${MACHINE_NAME}_${IMAGE_BASENAME}" + +# Copy Licenses to image /usr/share/common-license +COPY_LIC_MANIFEST ?= "1" +COPY_LIC_DIRS ?= "1" + +add_rootfs_version () { + printf "${DISTRO_NAME} ${DISTRO_VERSION} (${DISTRO_CODENAME}) \\\n \\\l\n" > ${IMAGE_ROOTFS}/etc/issue + printf "${DISTRO_NAME} ${DISTRO_VERSION} (${DISTRO_CODENAME}) %%h\n" > ${IMAGE_ROOTFS}/etc/issue.net + printf "${IMAGE_NAME}\n\n" >> ${IMAGE_ROOTFS}/etc/issue + printf "${IMAGE_NAME}\n\n" >> ${IMAGE_ROOTFS}/etc/issue.net +} +# add the rootfs version to the welcome banner +ROOTFS_POSTPROCESS_COMMAND += " add_rootfs_version;" + +IMAGE_LINGUAS = "en-us" +#IMAGE_LINGUAS = "de-de fr-fr en-gb en-us pt-br es-es kn-in ml-in ta-in" + +CONMANPKGS ?= "connman connman-plugin-loopback connman-plugin-ethernet connman-plugin-wifi connman-client" + +IMAGE_INSTALL += " \ + packagegroup-boot \ + packagegroup-basic \ + packagegroup-base-tdx-cli \ + packagegroup-machine-tdx-cli \ + packagegroup-wifi-tdx-cli \ + packagegroup-wifi-fw-tdx-cli \ + udev-extraconf \ + ${CONMANPKGS} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'timestamp-service', '', d)} \ +" -- cgit v1.2.3