summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@microsoft.com>2020-10-18 21:03:57 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-20 11:11:46 +0100
commit1932b04a1e51c236ed8cc8412cf5c02560dbf502 (patch)
tree7b42dc06cc3a9d1b1258da8433e6835d58c4d3c9 /meta/classes
parent71191e8e7aa36049685dd72b62c2e78495d6b401 (diff)
downloadpoky-1932b04a1e51c236ed8cc8412cf5c02560dbf502.tar.gz
classes/buildhistory: also save recipe info for native recipes
If we want to also collect SRC_URI for native recipes we need to ensure that the code that writes out all of the recipe info is called - there isn't a do_packagedata for native recipes so we need to piggyback on do_populate_sysroot instead. (From OE-Core rev: d123606c4bef85c2436b40f51e47b602b7600c0b) Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/buildhistory.bbclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 7d5e3eb8fd..6d04d8cfb9 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -90,8 +90,7 @@ buildhistory_emit_sysroot() {
90python buildhistory_emit_pkghistory() { 90python buildhistory_emit_pkghistory() {
91 if d.getVar('BB_CURRENTTASK') in ['populate_sysroot', 'populate_sysroot_setscene']: 91 if d.getVar('BB_CURRENTTASK') in ['populate_sysroot', 'populate_sysroot_setscene']:
92 bb.build.exec_func("buildhistory_emit_sysroot", d) 92 bb.build.exec_func("buildhistory_emit_sysroot", d)
93 93 elif not d.getVar('BB_CURRENTTASK') in ['packagedata', 'packagedata_setscene']:
94 if not d.getVar('BB_CURRENTTASK') in ['packagedata', 'packagedata_setscene']:
95 return 0 94 return 0
96 95
97 if not "package" in (d.getVar('BUILDHISTORY_FEATURES') or "").split(): 96 if not "package" in (d.getVar('BUILDHISTORY_FEATURES') or "").split():
@@ -229,8 +228,9 @@ python buildhistory_emit_pkghistory() {
229 break 228 break
230 except IOError as e: 229 except IOError as e:
231 if e.errno == errno.ENOENT: 230 if e.errno == errno.ENOENT:
232 # Probably a -cross recipe, just ignore 231 if not bb.data.inherits_class('native', d):
233 return 0 232 # Probably a -cross recipe, just ignore
233 return 0
234 else: 234 else:
235 raise 235 raise
236 236