From: Thibaut VARÈNE Date: Tue, 24 Jul 2018 10:41:16 +0000 (+0200) Subject: phase1: use ccache wrappers for all HOSTCC/HOSTCXX uses X-Git-Tag: v1~122 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=14aa21160eb26fa2dd96a17fa550e44f68d24cad;p=buildbot.git phase1: use ccache wrappers for all HOSTCC/HOSTCXX uses Signed-off-by: Thibaut VARÈNE --- diff --git a/phase1/master.cfg b/phase1/master.cfg index e58209d..f06ade2 100644 --- a/phase1/master.cfg +++ b/phase1/master.cfg @@ -598,12 +598,26 @@ for target in targets: description = "Remove feed symlinks", command=["rm", "-rf", "package/feeds/"])) + factory.addStep(StringDownload( + name = "ccachecc", + s = '#!/bin/sh\nexec ${CCACHE} ${CCC} "$@"\n', + slavedest = "../ccache_cc.sh", + mode = 0755, + )) + + factory.addStep(StringDownload( + name = "ccachecxx", + s = '#!/bin/sh\nexec ${CCACHE} ${CCXX} "$@"\n', + slavedest = "../ccache_cxx.sh", + mode = 0755, + )) + # feed factory.addStep(ShellCommand( name = "updatefeeds", description = "Updating feeds", command=["./scripts/feeds", "update"], - env = MakeEnv(), + env = MakeEnv(tryccache=True), )) # feed @@ -611,7 +625,7 @@ for target in targets: name = "installfeeds", description = "Installing feeds", command=["./scripts/feeds", "install", "-a"], - env = MakeEnv())) + env = MakeEnv(tryccache=True))) # seed config factory.addStep(FileDownload( @@ -672,20 +686,6 @@ for target in targets: want_stdout = False )) - factory.addStep(StringDownload( - name = "ccachecc", - s = '#!/bin/sh\nexec ${CCACHE} ${CCC} "$@"\n', - slavedest = "../ccache_cc.sh", - mode = 0755, - )) - - factory.addStep(StringDownload( - name = "ccachecxx", - s = '#!/bin/sh\nexec ${CCACHE} ${CCXX} "$@"\n', - slavedest = "../ccache_cxx.sh", - mode = 0755, - )) - # prepare tar factory.addStep(ShellCommand( name = "dltar", @@ -724,7 +724,7 @@ for target in targets: name = "toolchain", description = "Building and installing toolchain", command=["make", Interpolate("-j%(kw:jobs)s", jobs=GetNumJobs), "toolchain/install", "V=s"], - env = MakeEnv(), + env = MakeEnv(tryccache=True), haltOnFailure = True ))