Created
May 12, 2022 10:48
-
-
Save sotaoverride/ff54d4f0a962a6c55f0b239fff80a1c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LICENSE = "apache-2" | |
inherit core-image | |
#Prefix to the resulting deployable tarball name | |
export IMAGE_BASENAME = "opentrons-ot3-image" | |
MACHINE_NAME ?= "${MACHINE}" | |
IMAGE_NAME = "${MACHINE_NAME}_${IMAGE_BASENAME}" | |
do_image_zip[depends] = "zip-native:do_populate_sysroot" | |
# IMAGE_POSTPROCESS_COMMAND += "do_image_zip;" | |
addtask do_image_zip after do_image_ext4 | |
# Copy Licenses to image /usr/share/common-license | |
COPY_LIC_MANIFEST ?= "1" | |
COPY_LIC_DIRS ?= "1" | |
SYSTEMD_DEFAULT_TARGET = "graphical.target" | |
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" | |
IMAGE_INSTALL += " \ | |
packagegroup-boot \ | |
packagegroup-basic \ | |
packagegroup-base-tdx-cli \ | |
packagegroup-tdx-cli \ | |
packagegroup-machine-tdx-cli \ | |
packagegroup-wifi-tdx-cli \ | |
packagegroup-wifi-fw-tdx-cli \ | |
packagegroup-tdx-graphical \ | |
packagegroup-fsl-isp \ | |
udev-extraconf \ | |
v4l-utils \ | |
bash coreutils makedevs mime-support util-linux \ | |
timestamp-service \ | |
networkmanager crda \ | |
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'timestamp-service systemd-analyze', '', d)} \ | |
weston-xwayland weston weston-init imx-gpu-viv \ | |
robot-app-wayland-launch robot-app \ | |
opentrons-robot-server opentrons-update-server \ | |
python3 python3-misc python3-modules \ | |
" | |
do_image_zip() { | |
cd ${DEPLOY_DIR_IMAGE}/ | |
ls -l | |
sha256sum ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.ext4.xz > rootfs.xz.256 | |
zip ot3-system.zip ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.ext4.xz rootfs.xz.256 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment