[OE-core] [PATCH v2 1/2] perl{, -native}: Update 5.24.4 -> 5.28.1

Richard Purdie richard.purdie at linuxfoundation.org
Mon Dec 17 12:42:59 UTC 2018


On Mon, 2018-12-17 at 12:36 +0000, Burton, Ross wrote:
> Yes, there's plenty of prior art in OE, but please can we use this in
> the future:
> 
> threadmulti = "${@["",
> "-thread-multi"][bb.utils.contains('PACKAGECONFIG', 'thread', 1, 0,
> d)]}"
> threadmulti = "${"-thread-multi" if bb.utils.contains('PACKAGECONFIG',
> 'thread', True, False, d) else ""}"

That last one is missing a @.

We could also just use:

threadmulti = "${@bb.utils.contains('PACKAGECONFIG', 'thread', -thread-multi, "", d)}"

Cheers,

Richard



More information about the Openembedded-core mailing list