Hi, I’m the Toradex AI Assistant. I’m in early beta, and I would appreciate your feedback.
The Toradex Support team will follow up with you shortly!
Hello,
I understand you’re trying to exclude certain paths from the RootFS tarball in your custom Toradex image. The IMAGE_ROOTFS_EXCLUDE_PATH
variable is indeed intended for such purposes, allowing you to specify paths that should not be included in the root filesystem image.
If setting IMAGE_ROOTFS_EXCLUDE_PATH
does not seem to have an effect, ensure that you are applying it correctly within your Yocto Project environment. This variable should be set in your image recipe or in a conf file that is included by your image recipe. Here’s a basic example of how to use it:
IMAGE_ROOTFS_EXCLUDE_PATH += "/data"
This line would exclude the /data
directory from the generated RootFS. Make sure that the path you are trying to exclude is correctly specified and that the variable is being set before the root filesystem is created.
If after ensuring the correct usage the paths are still not excluded, it might be worth checking if your custom image_type_custom_tezi.bbclass
is somehow interfering with the process. Since you’ve inherited the base class, ensure that any additional functionality you’ve added does not conflict with the root filesystem generation process, particularly with how IMAGE_ROOTFS_EXCLUDE_PATH
is handled.
Another aspect to consider is the timing when variables are parsed and applied in the Yocto build process. It’s crucial that IMAGE_ROOTFS_EXCLUDE_PATH
is set at a point where it can still influence the creation of the root filesystem tarball.
Lastly, since you are working with a custom partition setup, double-check that the exclusions you’re aiming for are not being overridden or ignored due to the customizations you’ve introduced.
If after checking these points you still face issues, it might be helpful to review the logs generated during the build process for any clues or to ensure that your custom bbclass is correctly integrated with the Yocto build system’s root filesystem generation stages.
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem:
TorizonCore Builder Tool “build” command | Toradex Developer Center.
How did you like my response?
