[oe] what rwwork_stampfixing_eventhandler is used for?
Guo Hongruan
camelguo at gmail.com
Fri Jan 15 12:36:22 UTC 2010
Hi guys,
I can not figure out what what rwwork_stampfixing_eventhandler is used
for. But I think it does something unreasonable. I built an OE project and
all files in openembedded directory have not changed at all, the next
building should do nothing but report:
NOTE: Tasks Summary: Attempted 65 tasks of which 65 didn't need to be
rerun and 0 failed.
and exit. But the fact is that the rwwork_stampsfixing_eventhandler
removes some stamps files and force lots of packages to rebuild even
though nothing changed at all.
After I applied the following patch, the behavior is what I expected.
Who can give some information about this handler?
Thanks a lot!
diff --git a/classes/rm_work.bbclass b/classes/rm_work.bbclass
index a53d12b..1335395 100644
--- a/classes/rm_work.bbclass
+++ b/classes/rm_work.bbclass
@@ -32,19 +32,3 @@ do_rm_work_all () {
do_rm_work_all[recrdeptask] = "do_rm_work"
addtask rm_work_all after do_rm_work
-
-addhandler rmwork_stampfixing_eventhandler
-python rmwork_stampfixing_eventhandler() {
- if bb.event.getName(e) == "StampUpdate":
- for (fn, task) in e.targets:
- if task == 'rm_work_all':
- continue
- stamp = "%s.do_rm_work" % e.stampPrefix[fn]
- if os.path.exists(stamp):
- dir = "%s.*" % e.stampPrefix[fn]
- bb.note("Removing stamps: " + dir)
- os.system('rm -f '+ dir)
-
- return NotHandled
-}
-
--
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com
More information about the Openembedded-devel
mailing list