diff options
author | Michael Ho <Michael.Ho@bmw.de> | 2018-11-29 14:21:37 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-14 17:10:58 +0000 |
commit | bc25bb645ee20ab3d2227e3ed58b23dd25201c97 (patch) | |
tree | 025fa780d3d665692fed10b6b273388a0e975905 /meta/classes/insane.bbclass | |
parent | f510f79859b29d3d8e39618248e373861444c650 (diff) | |
download | poky-bc25bb645ee20ab3d2227e3ed58b23dd25201c97.tar.gz |
insane.bbclass: add package specific skips to sstate hash
The bbclass currently adds INSANE_SKIP to the sstate hash dependencies
however the package specific skips such as INSANE_SKIP_${PN} are
not added automatically because of how the class references them.
This causes the problem that modifying INSANE_SKIP_${PN} does not
invalidate the sstate cache and can mask build breaking warnings.
Add an anonymous python snippet to explicitly include these additional
relevant skips to the sstate hash.
Singed-off-by: Michael Ho <Michael.Ho@bmw.de>
(From OE-Core rev: 8690332183f10a5e5689da7ec030567dfd1ac091)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r-- | meta/classes/insane.bbclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 29754f4cfe..6411884f92 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -1017,6 +1017,13 @@ do_package_qa[vardepsexclude] = "BB_TASKDEPDATA" | |||
1017 | do_package_qa[rdeptask] = "do_packagedata" | 1017 | do_package_qa[rdeptask] = "do_packagedata" |
1018 | addtask do_package_qa after do_packagedata do_package before do_build | 1018 | addtask do_package_qa after do_packagedata do_package before do_build |
1019 | 1019 | ||
1020 | # Add the package specific INSANE_SKIPs to the sstate dependencies | ||
1021 | python() { | ||
1022 | pkgs = (d.getVar('PACKAGES') or '').split() | ||
1023 | for pkg in pkgs: | ||
1024 | d.appendVarFlag("do_package_qa", "vardeps", " INSANE_SKIP_{}".format(pkg)) | ||
1025 | } | ||
1026 | |||
1020 | SSTATETASKS += "do_package_qa" | 1027 | SSTATETASKS += "do_package_qa" |
1021 | do_package_qa[sstate-inputdirs] = "" | 1028 | do_package_qa[sstate-inputdirs] = "" |
1022 | do_package_qa[sstate-outputdirs] = "" | 1029 | do_package_qa[sstate-outputdirs] = "" |