summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorOla x Nilsson <ola.x.nilsson@axis.com>2018-10-04 12:43:28 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-18 11:08:53 +0100
commitd240b885f26e9b05c8db0364ab2ace9796709aad (patch)
tree2715add68504649a3f3259dac08168835046ef5c /meta/classes
parent78a406431ac2c48818f60020cefb1ded5de90bdd (diff)
downloadpoky-d240b885f26e9b05c8db0364ab2ace9796709aad.tar.gz
externalsrc.bbclass: Set BB_DONT_CACHE for non-target recipes
BB_DONT_CACHE was not set for non-virtual recipes where PN != BPN, such as quilt-native. Recipes that do not set BBCLASSEXTEND should always have BB_DONT_CACHE set by externalsrc. (From OE-Core rev: 4eff427a0ee629a1541a420a9591411648569a97) (From OE-Core rev: 30b055d2296f060a4ca054d042f353a2153fdd4e) Signed-off-by: Ola x Nilsson <olani@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/externalsrc.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass
index c9f5cf767d..78a08c80ad 100644
--- a/meta/classes/externalsrc.bbclass
+++ b/meta/classes/externalsrc.bbclass
@@ -41,8 +41,8 @@ python () {
41 # re-parsed so that the file-checksums function for do_compile is run every 41 # re-parsed so that the file-checksums function for do_compile is run every
42 # time. 42 # time.
43 bpn = d.getVar('BPN') 43 bpn = d.getVar('BPN')
44 if bpn == d.getVar('PN'): 44 classextend = (d.getVar('BBCLASSEXTEND') or '').split()
45 classextend = (d.getVar('BBCLASSEXTEND') or '').split() 45 if bpn == d.getVar('PN') or not classextend:
46 if (externalsrc or 46 if (externalsrc or
47 ('native' in classextend and 47 ('native' in classextend and
48 d.getVar('EXTERNALSRC_pn-%s-native' % bpn)) or 48 d.getVar('EXTERNALSRC_pn-%s-native' % bpn)) or