summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMing Liu <liu.ming50@gmail.com>2019-03-07 17:56:46 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-03-09 14:41:20 +0000
commite74158b6cc1d683ab14ef5d47ec531f986fc2259 (patch)
tree07ff0ad47486f9cba1e0413a47bbd0f5ab0b527f /meta/classes
parentbb1629820443bfedc72378a7c88f0656a2f3f7f1 (diff)
downloadopenembedded-core-e74158b6cc1d683ab14ef5d47ec531f986fc2259.tar.gz
openembedded-core-e74158b6cc1d683ab14ef5d47ec531f986fc2259.tar.bz2
openembedded-core-e74158b6cc1d683ab14ef5d47ec531f986fc2259.zip
rm_work: sort the value of do_build dependencies
This fixes some 'basehash changed' errors when rm_work is being inherited. Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/rm_work.bbclass3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/classes/rm_work.bbclass b/meta/classes/rm_work.bbclass
index 10e134b958..c478f4a187 100644
--- a/meta/classes/rm_work.bbclass
+++ b/meta/classes/rm_work.bbclass
@@ -164,8 +164,7 @@ python inject_rm_work() {
# Determine what do_build depends upon, without including do_build
# itself or our own special do_rm_work_all.
- deps = set(bb.build.preceedtask('do_build', True, d))
- deps.difference_update(('do_build', 'do_rm_work_all'))
+ deps = sorted((set(bb.build.preceedtask('do_build', True, d))).difference(('do_build', 'do_rm_work_all')) or "")
# deps can be empty if do_build doesn't exist, e.g. *-inital recipes
if not deps: