]> code.ossystems Code Review - openembedded-core.git/commitdiff
externalsrc.bbclass: Set BB_DONT_CACHE for non-target recipes
authorOla x Nilsson <ola.x.nilsson@axis.com>
Thu, 4 Oct 2018 10:43:28 +0000 (12:43 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 8 Oct 2018 13:13:48 +0000 (14:13 +0100)
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.

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/externalsrc.bbclass

index ad87d85f78762976843428581875fcde6cac152a..3618b99a863c1d2334ca04ea238401f4506c1990 100644 (file)
@@ -41,8 +41,8 @@ python () {
     # re-parsed so that the file-checksums function for do_compile is run every
     # time.
     bpn = d.getVar('BPN')
-    if bpn == d.getVar('PN'):
-        classextend = (d.getVar('BBCLASSEXTEND') or '').split()
+    classextend = (d.getVar('BBCLASSEXTEND') or '').split()
+    if bpn == d.getVar('PN') or not classextend:
         if (externalsrc or
                 ('native' in classextend and
                  d.getVar('EXTERNALSRC_pn-%s-native' % bpn)) or