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
name = "installfeeds",
description = "Installing feeds",
command=["./scripts/feeds", "install", "-a"],
- env = MakeEnv()))
+ env = MakeEnv(tryccache=True)))
# seed config
factory.addStep(FileDownload(
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",
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
))