[OE-core] [PATCH] Only add uninative and checksum if inherited uninative class

Jeremy Puhlman jpuhlman at mvista.com
Wed Jun 13 20:28:54 UTC 2018


Any issue with this patch?

On Wed, Apr 25, 2018 at 2:18 PM, Jeremy Puhlman <jpuhlman at mvista.com> wrote:

> The checksum value is only calculated if the uninative class is
> inherited, so check for inherit before adding it to local.conf
>
> Signed-off-by: Jeremy Puhlman <jpuhlman at mvista.com>
> ---
>  meta/classes/populate_sdk_ext.bbclass | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes/populate_sdk_ext.bbclass
> b/meta/classes/populate_sdk_ext.bbclass
> index e1bba49eaf..8dfb8df52e 100644
> --- a/meta/classes/populate_sdk_ext.bbclass
> +++ b/meta/classes/populate_sdk_ext.bbclass
> @@ -325,8 +325,9 @@ python copy_buildsystem () {
>              f.write('TCLIBCAPPEND = ""\n')
>              f.write('DL_DIR = "${TOPDIR}/downloads"\n')
>
> -            f.write('INHERIT += "%s"\n' % 'uninative')
> -            f.write('UNINATIVE_CHECKSUM[%s] = "%s"\n\n' %
> (d.getVar('BUILD_ARCH'), uninative_checksum))
> +            if bb.data.inherits_class('uninative', d):
> +               f.write('INHERIT += "%s"\n' % 'uninative')
> +               f.write('UNINATIVE_CHECKSUM[%s] = "%s"\n\n' %
> (d.getVar('BUILD_ARCH'), uninative_checksum))
>              f.write('CONF_VERSION = "%s"\n\n' % d.getVar('CONF_VERSION',
> False))
>
>              # Some classes are not suitable for SDK, remove them from
> INHERIT
> --
> 2.11.1
>
>


-- 
Jeremy Puhlman
Montavista Software, LLC.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20180613/caa86470/attachment-0002.html>


More information about the Openembedded-core mailing list