On 5/28/25 20:53, Clayton Casciato wrote:
Hi, Yi!
 
Should this use inherit_defer due to the conditional?

Hi Clayton,


I've tested this. But setting SSG_PTEST_ENABLED to 1 in the recipe or setting it in local.conf has no effect when using inherit_defer.

Here are my changes:

-inherit cmake pkgconfig python3native python3targetconfig ptest
+inherit cmake pkgconfig python3native python3targetconfig
+
+inherit_defer ${@bb.utils.contains('SSG_PTEST_ENABLED', '1', 'ptest', '', d)}
+
+SSG_PTEST_ENABLED ?= "0"


//Yi

 
Sample:
https://git.openembedded.org/meta-openembedded/commit/meta-networking/recipes-support/chrony?id=63df976d8eec0fa714e8da30f4333f8af23c57d3
 
Thank you!
 
--
Clayton Casciato
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#1583) | Reply to Group | Reply to Sender | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [yi.zhao@eng.windriver.com]

_._,_._,_