X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=phase1%2Fmaster.cfg;h=908087e6714a37ade729a1c26121b4f1cfa7d12c;hb=5e9e04d357eed05e120f02d3a2cc379812b9331a;hp=6d6bb7042f30817d270eada272c906b230f9d63f;hpb=50a902264012d6484a3b55ca72de5338f4e3fc9a;p=buildbot.git diff --git a/phase1/master.cfg b/phase1/master.cfg index 6d6bb70..908087e 100644 --- a/phase1/master.cfg +++ b/phase1/master.cfg @@ -48,6 +48,10 @@ c['mergeRequests'] = True ####### CHANGESOURCES home_dir = os.path.abspath(ini.get("general", "homedir")) +tree_expire = 0 + +if ini.has_option("general", "expire"): + tree_expire = ini.getint("general", "expire") repo_url = ini.get("repo", "url") @@ -271,6 +275,21 @@ for target in targets: description = "Finding number of CPUs", command = ["nproc"])) + # expire tree if needed + if tree_expire > 0: + factory.addStep(FileDownload( + mastersrc = "expire.sh", + slavedest = "../expire.sh", + mode = 0755)) + + factory.addStep(ShellCommand( + name = "expire", + description = "Checking for build tree expiry", + command = ["./expire.sh", str(tree_expire)], + workdir = ".", + haltOnFailure = True, + timeout = 2400)) + # check out the source factory.addStep(Git(repourl=repo_url, mode='update')) @@ -285,6 +304,12 @@ for target in targets: # description = "Copy the feeds.conf", # command='''cp ~/feeds.conf ./feeds.conf''' )) + # feed + factory.addStep(ShellCommand( + name = "rmfeedlinks", + description = "Remove feed symlinks", + command=["rm", "-rf", "package/feeds/"])) + # feed factory.addStep(ShellCommand( name = "updatefeeds", @@ -436,7 +461,7 @@ EOT''' %(ts[0], ts[0], ts[1]) )) factory.addStep(ShellCommand( name = "images", description = "Building images", - command=["make", "-j1", "target/install", "V=s"], + command=["make", WithProperties("-j%(nproc:~4)s"), "target/install", "V=s"], doStepIf = isChangeBuiltin, haltOnFailure = True ))