]> code.ossystems Code Review - openembedded-core.git/commitdiff
buildhistory: avoid reruns of do_package
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 16 Mar 2012 14:56:37 +0000 (14:56 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 19 Mar 2012 13:31:33 +0000 (13:31 +0000)
Avoid triggering a rerun of all do_package* tasks when OEBasicHash
signature generator is being used and the buildhistory package code or
any of the package related variables change.

Note that adding and removing INHERIT of buildhistory will still force
this rebuild - use the newly added BUILDHISTORY_FEATURES variable to
enable and disable buildhistory instead in order to avoid this.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/classes/buildhistory.bbclass

index 3a68d8d6f585a32901e26a9a8fbe5a7e55d4db38..f99aa7f690dd4af3a8cdaa94af91f6452b00b18e 100644 (file)
@@ -19,6 +19,11 @@ BUILDHISTORY_PUSH_REPO ?= ""
 inherit package
 PACKAGEFUNCS += "buildhistory_emit_pkghistory"
 
+# We don't want to force a rerun of do_package for everything
+# if the buildhistory_emit_pkghistory function or any of the
+# variables it refers to changes
+do_package[vardepsexclude] += "buildhistory_emit_pkghistory"
+
 #
 # Called during do_package to write out metadata about this package
 # for comparision when writing future packages