Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Common Torizon] Layer refactor to accommodate Common Torizon distro and 3rd-party machines #202

Draft
wants to merge 17 commits into
base: scarthgap-7.x.y
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
5e9902a
classes: refactor torizon classes to support Common Torizon
EdTheBearded Dec 30, 2024
9b1f07f
classes: bring BSP dependent classes to our layer
EdTheBearded Dec 30, 2024
14eea2f
conf/distro: refactor torizon distro to support Common Torizon
EdTheBearded Dec 30, 2024
b4ce5eb
conf/distro: bring BSP dependent conf to our layer
EdTheBearded Dec 30, 2024
f83aa54
layer.conf: change meta-toradex-torizon layer dependency
EdTheBearded Dec 30, 2024
676a17c
dynamic-layers: create dynamic layers and move all Toradex recipes
EdTheBearded Dec 30, 2024
d1e3542
u-boot-distro-boot: make this a recipe instead of bbappend
EdTheBearded Dec 30, 2024
476e817
u-boot-toradex-ti: remove empty bbappend
EdTheBearded Dec 30, 2024
1775773
packagegroups-base: add mwifiexap only to Toradex's devices
EdTheBearded Dec 30, 2024
1229a77
images/torizon-base.inc: limit installation Toradex specific packages
EdTheBearded Dec 30, 2024
f501a7b
linux-torizon.inc: add specific configs for Common Torizon
EdTheBearded Dec 30, 2024
19078b5
python3-pynacl: rename python3-nacl
EdTheBearded Dec 30, 2024
0eb5cd4
resize-helper: add resize-helper recipe from common-torizon
EdTheBearded Dec 30, 2024
f6fe6ed
intel-corei7-64: add x86 support through meta-intel's intel-corei7-64
EdTheBearded Dec 30, 2024
74fedc3
xenomai: port Xenomai 3 and 4 from common-torizon
EdTheBearded Dec 30, 2024
9cbe33a
imx95: add support for NXP's iMX95 on Common Torizon
EdTheBearded Dec 30, 2024
3e7a017
grub-ota-fallback: fix some issues on grub fallback logic script
EdTheBearded Jan 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions classes/image_type_common_torizon.bbclass
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
KERNEL_DEVICETREE_BASENAME = "${@make_dtb_boot_files(d)}"
# WKS_FILE_DEPENDS:append = " virtual/dtb"
DEPENDS += "${WKS_FILE_DEPENDS}"
IMAGE_BOOT_FILES_REMOVE = "${@'${KERNEL_DEVICETREE_BASENAME}' if d.getVar('KERNEL_IMAGETYPE') == 'fitImage' else ''}"
IMAGE_BOOT_FILES:append = " overlays.txt ${@'' if d.getVar('KERNEL_IMAGETYPE') == 'fitImage' else 'overlays/*;overlays/'}"
IMAGE_BOOT_FILES:remove = "${IMAGE_BOOT_FILES_REMOVE}"

RM_WORK_EXCLUDE += "${PN}"

# use DISTRO_FLAVOUR to append to the image name displayed in TEZI
DISTRO_FLAVOUR ??= ""
SUMMARY:append = "${DISTRO_FLAVOUR}"

# Append tar command to store uncompressed image size to ${T}.
# If a custom rootfs type is used make sure this file is created
# before compression.
IMAGE_CMD:tar:append = "; du -ks ${IMGDEPLOYDIR}/${IMAGE_NAME}.tar | cut -f 1 > ${T}/image-size${IMAGE_NAME_SUFFIX}"
CONVERSION_CMD:tar:append = "; du -ks ${IMGDEPLOYDIR}/${IMAGE_NAME}.${type}.tar | cut -f 1 > ${T}/image-size.${type}"
CONVERSION_CMD:tar = "touch ${IMGDEPLOYDIR}/${IMAGE_NAME}.${type}; ${IMAGE_CMD_TAR} --numeric-owner -cf ${IMGDEPLOYDIR}/${IMAGE_NAME}.${type}.tar -C ${TAR_IMAGE_ROOTFS} . || [ $? -eq 1 ]"
CONVERSIONTYPES:append = " tar"

require torizon_base_image_type.inc

UBOOT_BINARY_OTA_IGNORE = "1"

do_deploy[vardeps] += "${TORIZON_IMG_VARDEPS}"
do_deploy[file-checksums] += "${TORIZON_IMG_FILE_CHECKSUMS}"
do_deploy[depends] += "${TORIZON_IMG_DEPENDS}"
Loading