[OE-core] [PATCH] base.bbclass: Don't warn about "invalid" PACKAGECONFIGs by default
Olof Johansson
olof.johansson at axis.com
Thu Jul 30 11:24:29 UTC 2015
Excerpts from Robert Yang's message of 2015-07-30 12:08:37 +0200:
> I have a new patch for this, it will be moved into insane.bbclass,
> and the recipe can set INSANE_SKIP:
> +
> + # Check invalid PACKAGECONFIG
> + pkgconfig = (d.getVar("PACKAGECONFIG", True) or "").split()
> + if pkgconfig:
> + pkgconfigflags = d.getVarFlags("PACKAGECONFIG") or {}
> + for pconfig in pkgconfig:
> + if pconfig not in pkgconfigflags:
> + pn = d.getVar('PN', True)
> + error_msg = "%s: invalid PACKAGECONFIG: %s" % (pn, pconfig)
> + package_qa_handle_error("invalid-pkgconfig", error_msg, d)
>
> I'm testing it, and will send it out sooner.
Thanks, such a patch would work nicely with my use case!
--
olof johansson
More information about the Openembedded-core
mailing list