diff options
author | Paul Eggleton <paul.eggleton@microsoft.com> | 2020-10-13 18:13:54 +0000 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.microsoft.com> | 2020-10-18 20:59:50 -0700 |
commit | 91068e23807dd135ee2bd5b57d87edd9338e89f5 (patch) | |
tree | 301c7ca6ca9458089b96b94c881753575216373d | |
parent | e83e7133cc7affdc013455744f1bc31d83503757 (diff) | |
download | openembedded-core-contrib-paule/buildhistory-src-uri.tar.gz |
classes/buildhistory: also save recipe info for native recipespaule/buildhistory-src-uri
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.
Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
-rw-r--r-- | meta/classes/buildhistory.bbclass | 8 |
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() { python buildhistory_emit_pkghistory() { if d.getVar('BB_CURRENTTASK') in ['populate_sysroot', 'populate_sysroot_setscene']: bb.build.exec_func("buildhistory_emit_sysroot", d) - - if not d.getVar('BB_CURRENTTASK') in ['packagedata', 'packagedata_setscene']: + elif not d.getVar('BB_CURRENTTASK') in ['packagedata', 'packagedata_setscene']: return 0 if not "package" in (d.getVar('BUILDHISTORY_FEATURES') or "").split(): @@ -229,8 +228,9 @@ python buildhistory_emit_pkghistory() { break except IOError as e: if e.errno == errno.ENOENT: - # Probably a -cross recipe, just ignore - return 0 + if not bb.data.inherits_class('native', d): + # Probably a -cross recipe, just ignore + return 0 else: raise |