From: Hauke Mehrtens Date: Thu, 24 Jan 2013 23:44:09 +0000 (+0100) Subject: compat: ckmake: do not start all build at the same time X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=63f5334d3cf14334a948e60154d2854f38100b4a;p=openwrt%2Fstaging%2Fblogic.git compat: ckmake: do not start all build at the same time When all builds are started at the same time this causes problems like, because all threads want to access the same file. In the compat-drivers build this resulted in this error for some threads: ./scripts/gen-compat-autoconf.sh: /usr/bin/env: bad interpreter: Text file busy Signed-off-by: Hauke Mehrtens --- diff --git a/bin/ckmake b/bin/ckmake index f5f46b01bf04..3d30bee84914 100755 --- a/bin/ckmake +++ b/bin/ckmake @@ -22,6 +22,7 @@ import signal from Queue import * from threading import Thread, Lock from shutil import copytree, ignore_patterns, rmtree, copyfileobj +from time import sleep releases_processed = [] releases_baking = [] @@ -277,6 +278,7 @@ class kernel_set(): def kick_threads(self): for rel in self.releases: self.queue.put(rel) + sleep(1) def wait_threads(self): self.queue.join() def update_status(self, rel, status):