Bug 11169

Summary: prelink recipe checks USER_CLASSES for image-prelink
Product: [Yocto Project Subprojects] Cross-prelink Reporter: Paul Eggleton <bluelightning>
Component: poky integrationAssignee: Mark Hatle <mark.hatle>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: meta.mr.watcher, meta.watcher, richard.purdie, yp.cp.watcher, yp.watcher
Version: 2.2   
Target Milestone: 2.4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Paul Eggleton 2017-03-16 04:13:20 UTC
The prelink recipe is checking if image-prelink is in USER_CLASSES. This is the convention for enabling this, but it doesn't have to be enabled that way - it could even be inherited in an image recipe rather than at the configuration level and it would still work, but this check wouldn't get the correct answer.

Given that this check is done in a postinstall and it's when it's on the host that we want to do the check, I wonder, would it be possible to export another variable during do_rootfs that would make it into the environment such that the script could check it?