summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorJeremy Puhlman <jpuhlman@mvista.com>2018-04-25 14:18:27 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-06-18 11:07:57 +0100
commit90d6d998ce9cf92e896a983bc0e4f477949de508 (patch)
treec0bbde220703a6a172f7407809881359c85bcf2a /meta/classes
parentcc9a768192d3c07af815a494c32bb3edfb2e4726 (diff)
downloadpoky-90d6d998ce9cf92e896a983bc0e4f477949de508.tar.gz
Only add uninative and checksum if inherited uninative class
The checksum value is only calculated if the uninative class is inherited, so check for inherit before adding it to local.conf (From OE-Core rev: 3b5b832589d943700b273e3a4d83561be0c47f36) Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/populate_sdk_ext.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index f0c8709c5b..9c31d70f2a 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -319,8 +319,9 @@ python copy_buildsystem () {
319 f.write('TCLIBCAPPEND = ""\n') 319 f.write('TCLIBCAPPEND = ""\n')
320 f.write('DL_DIR = "${TOPDIR}/downloads"\n') 320 f.write('DL_DIR = "${TOPDIR}/downloads"\n')
321 321
322 f.write('INHERIT += "%s"\n' % 'uninative') 322 if bb.data.inherits_class('uninative', d):
323 f.write('UNINATIVE_CHECKSUM[%s] = "%s"\n\n' % (d.getVar('BUILD_ARCH'), uninative_checksum)) 323 f.write('INHERIT += "%s"\n' % 'uninative')
324 f.write('UNINATIVE_CHECKSUM[%s] = "%s"\n\n' % (d.getVar('BUILD_ARCH'), uninative_checksum))
324 f.write('CONF_VERSION = "%s"\n\n' % d.getVar('CONF_VERSION', False)) 325 f.write('CONF_VERSION = "%s"\n\n' % d.getVar('CONF_VERSION', False))
325 326
326 # Some classes are not suitable for SDK, remove them from INHERIT 327 # Some classes are not suitable for SDK, remove them from INHERIT