summaryrefslogtreecommitdiffstats
path: root/meta/classes/rm_work.bbclass
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:43:11 +0000
commitf52f818cf08e26e0b011b9c2bf01e9daa3f2b545 (patch)
tree00f1126eb7cbd869205edfe6d9020bdb090a3484 /meta/classes/rm_work.bbclass
parent58dbd3bfb92b39a754f9b69f61f98719af6d3b43 (diff)
downloadpoky-f52f818cf08e26e0b011b9c2bf01e9daa3f2b545.tar.gz
rm_work: sort the value of do_build dependencies
This fixes some 'basehash changed' errors when rm_work is being inherited. (From OE-Core rev: e74158b6cc1d683ab14ef5d47ec531f986fc2259) Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rm_work.bbclass')
-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() {
164 164
165 # Determine what do_build depends upon, without including do_build 165 # Determine what do_build depends upon, without including do_build
166 # itself or our own special do_rm_work_all. 166 # itself or our own special do_rm_work_all.
167 deps = set(bb.build.preceedtask('do_build', True, d)) 167 deps = sorted((set(bb.build.preceedtask('do_build', True, d))).difference(('do_build', 'do_rm_work_all')) or "")
168 deps.difference_update(('do_build', 'do_rm_work_all'))
169 168
170 # deps can be empty if do_build doesn't exist, e.g. *-inital recipes 169 # deps can be empty if do_build doesn't exist, e.g. *-inital recipes
171 if not deps: 170 if not deps: