phase1: move ccache preparation after defconfig
authorJo-Philipp Wich <jo@mein.io>
Mon, 23 Jan 2017 13:23:36 +0000 (14:23 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 23 Jan 2017 13:23:40 +0000 (14:23 +0100)
The ccache.sh helper script uses make targets to figure out staging_dir paths
which might trigger interactive menuconfig in case there is no populated
.config file yet, leading to command timeouts on fresh trees.

Move the ccache preparation step after defconfig in order to avoid triggering
menuconfig.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
phase1/master.cfg

index bc21f809543e62cb3ad5c26692cec38090666475..695973f8e0da85a1adbc182404a7ce53a6e3208b 100644 (file)
@@ -454,13 +454,6 @@ for target in targets:
                command=["./scripts/feeds", "install", "-a"],
                env = MakeEnv()))
 
-       # ccache helper
-       factory.addStep(FileDownload(
-               mastersrc = "ccache.sh",
-               slavedest = "ccache.sh",
-               mode = 0755
-       ))
-
        # ccache prepare
        factory.addStep(ShellCommand(
                 name = "prepccache",
@@ -513,6 +506,13 @@ for target in targets:
                description = "Finding libc suffix",
                command = ["sed", "-ne", '/^CONFIG_LIBC=/ { s!^CONFIG_LIBC="\\(.*\\)"!\\1!; s!^musl$!!; s!.\\+!-&!p }', ".config"]))
 
+       # ccache helper
+       factory.addStep(FileDownload(
+               mastersrc = "ccache.sh",
+               slavedest = "ccache.sh",
+               mode = 0755
+       ))
+
        # install build key
        factory.addStep(FileDownload(mastersrc=home_dir+'/key-build', slavedest="key-build", mode=0600))
        factory.addStep(FileDownload(mastersrc=home_dir+'/key-build.pub', slavedest="key-build.pub", mode=0600))