[OE-core] [PATCH 1/1] trace-cmd: fix QA warning

Burton, Ross ross.burton at intel.com
Mon Nov 7 09:21:15 UTC 2016


On 5 November 2016 at 05:29, Dengke Du <dengke.du at windriver.com> wrote:

> +PACKAGECONFIG ??= ""
> +PACKAGECONFIG[audit] = ",,audit"
> +
>  EXTRA_OEMAKE = "\
>      'prefix=${prefix}' \
>      'bindir=${bindir}' \
> @@ -20,6 +23,7 @@ EXTRA_OEMAKE = "\
>      'libdir=${@oe.path.relative(prefix, libdir)}' \
>      \
>      NO_PYTHON=1 \
> +    ${@bb.utils.contains('PACKAGECONFIG', 'audit', '', 'NO_AUDIT=1', d)}
> \
>  "
>

A neater way of doing this would be:

PACKAGECONFIG ??= ""
PACKAGECONFIG[audit] = ',NO_AUDIT=1,audit'
EXTRA_OECMAKE = ".... ${PACKAGECONFIG_CONFARGS}"

This works as the PACKAGECONFIG expansion adds the active expressions to
PACKAGECONFIG_CONFARGS, so you can add that directly to EXTRA_OEMAKE.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20161107/480eb198/attachment-0002.html>


More information about the Openembedded-core mailing list