diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-01 00:06:58 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-01 00:10:56 +0000 |
commit | f8ca2383e1a5f69ef3f24b5436b3302e7a2e576e (patch) | |
tree | 907259c3ed1b443c21833f39049e5efc1ebc259c /meta/classes/base.bbclass | |
parent | dfc6ccefed4530b06aaf90d149c0df6cf6177688 (diff) | |
download | poky-f8ca2383e1a5f69ef3f24b5436b3302e7a2e576e.tar.gz |
base/utility-tasks.bbclass: Drop do_setscene and do_rebuild
The do_setscene task only exists for rebuild support now as all its other
functionality has been superceeded. The rebuild task currently crashes due
to removal of the working directory and therefore isn't working for anyone.
It also interacts extremely badly with the newer sstate technology to the
point of being dangerous.
Summary, if we want rebuild support it needs a reimplementation so remove
this version and all its remnants and hacks.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index a674f52fb2..300981010a 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -97,23 +97,6 @@ FILESPATH = "${@base_set_filespath([ "${FILE_DIRNAME}/${PF}", "${FILE_DIRNAME}/$ | |||
97 | # in the context of the location its used (:=) | 97 | # in the context of the location its used (:=) |
98 | THISDIR = "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" | 98 | THISDIR = "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" |
99 | 99 | ||
100 | SCENEFUNCS += "base_scenefunction" | ||
101 | |||
102 | python base_scenefunction () { | ||
103 | stamp = bb.data.getVar('STAMP', d, 1) + ".needclean" | ||
104 | if os.path.exists(stamp): | ||
105 | bb.build.exec_func("do_clean", d) | ||
106 | } | ||
107 | |||
108 | python base_do_setscene () { | ||
109 | for f in (bb.data.getVar('SCENEFUNCS', d, 1) or '').split(): | ||
110 | bb.build.exec_func(f, d) | ||
111 | if not os.path.exists(bb.build.stampfile("do_setscene", d)): | ||
112 | bb.build.make_stamp("do_setscene", d) | ||
113 | } | ||
114 | do_setscene[selfstamp] = "1" | ||
115 | addtask setscene before do_fetch | ||
116 | |||
117 | addtask fetch | 100 | addtask fetch |
118 | do_fetch[dirs] = "${DL_DIR}" | 101 | do_fetch[dirs] = "${DL_DIR}" |
119 | python base_do_fetch() { | 102 | python base_do_fetch() { |
@@ -219,18 +202,6 @@ python base_eventhandler() { | |||
219 | if pesteruser: | 202 | if pesteruser: |
220 | bb.fatal('The following variable(s) were not set: %s\nPlease set them directly, or choose a MACHINE or DISTRO that sets them.' % ', '.join(pesteruser)) | 203 | bb.fatal('The following variable(s) were not set: %s\nPlease set them directly, or choose a MACHINE or DISTRO that sets them.' % ', '.join(pesteruser)) |
221 | 204 | ||
222 | # | ||
223 | # Handle removing stamps for 'rebuild' task | ||
224 | # | ||
225 | if name.startswith("StampUpdate"): | ||
226 | for (fn, task) in e.targets: | ||
227 | #print "%s %s" % (task, fn) | ||
228 | if task == "do_rebuild": | ||
229 | dir = "%s.*" % e.stampPrefix[fn] | ||
230 | bb.note("Removing stamps: " + dir) | ||
231 | os.system('rm -f '+ dir) | ||
232 | os.system('touch ' + e.stampPrefix[fn] + '.needclean') | ||
233 | |||
234 | if name == "ConfigParsed": | 205 | if name == "ConfigParsed": |
235 | generate_git_config(e) | 206 | generate_git_config(e) |
236 | 207 | ||
@@ -481,4 +452,4 @@ python do_cleanall() { | |||
481 | do_cleanall[nostamp] = "1" | 452 | do_cleanall[nostamp] = "1" |
482 | 453 | ||
483 | 454 | ||
484 | EXPORT_FUNCTIONS do_setscene do_fetch do_unpack do_configure do_compile do_install do_package | 455 | EXPORT_FUNCTIONS do_fetch do_unpack do_configure do_compile do_install do_package |