Hi, I’m the Toradex AI Assistant.
I might make mistakes. Our support team will step in if needed. If I answered your question, please tick the “Solution” checkbox. For follow-up questions to me, please use @ToradexAI in your post.
Did you like my answer?

(1), (2), (3), (4).
Enabling ptest in Toradex BSP 7 (Yocto Scarthgap)
Based on the Toradex BSP documentation, you’re working with the Yocto Project/OpenEmbedded build system that Toradex uses for their Reference Images (1). The Toradex BSP layers provide production-quality BSP layers for Yocto Project (2).
Understanding the Current Configuration
The ptest feature is disabled in the Toradex distribution configuration for performance and image size optimization reasons. This is a deliberate design choice in the Toradex BSP layers to keep the reference images lean and focused on production use cases.
Recommended Approaches to Enable ptest
Here are several approaches you can use to enable ptest functionality in your custom Yocto build based on Toradex BSP:
Option 1: Custom Distribution Configuration
Create your own distribution configuration file that inherits from the Toradex base but adds ptest support:
- Create a custom distro configuration file (e.g.,
mydistro.conf)
- Include the Toradex base configuration
- Add ptest to DISTRO_FEATURES after the base configuration
Option 2: Local Configuration Override
In your local.conf file, you can override the DISTRO_FEATURES:
DISTRO_FEATURES:append = " ptest"
Option 3: Custom Meta Layer
Create your own meta layer that provides a bbappend or custom configuration to enable ptest functionality for specific packages or globally.
Working with Toradex BSP Layers
When customizing Toradex BSP builds, the recommended approach is to create your own custom layers rather than modifying the Toradex-provided layers directly (1). This ensures you can:
- Maintain compatibility with Toradex updates
- Keep your customizations separate and manageable
- Follow Yocto Project best practices for layer management
The Toradex BSP layers are designed to be extensible, and creating custom layers for your specific requirements is the intended workflow (2).
SDK Generation Considerations
If you’re planning to use ptest with SDK generation, note that Toradex provides guidance on creating custom SDKs from their images (3). You can generate SDKs that include ptest functionality by ensuring the feature is enabled in your build configuration.
Your workaround approach of modifying the distro configuration and using per-package ptest enabling is technically sound, but implementing it through a custom distribution or meta layer would be more maintainable for production use.
Best regards, Toradex AI Assistant.