Add libc variant check to stop arc770 and archs38 early
authorJo-Philipp Wich <jo@mein.io>
Wed, 11 May 2016 11:52:49 +0000 (13:52 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 11 May 2016 11:52:49 +0000 (13:52 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
phase1/master.cfg

index c6c7d47e868dbe2441e5cb889041466f6f242bf0..fa3161de53b4c1b8dda33811099be6d5b36e4fbf 100644 (file)
@@ -296,7 +296,7 @@ EOT''' %(ts[0], ts[0], ts[1]) ))
                command = ["make", "defconfig"]
        ))
 
-       # check arch
+       # check arch / libc
        factory.addStep(ShellCommand(
                name = "checkarch",
                description = "Checking architecture",
@@ -307,6 +307,16 @@ EOT''' %(ts[0], ts[0], ts[1]) ))
                haltOnFailure = True
        ))
 
+       factory.addStep(ShellCommand(
+               name = "checklibc",
+               description = "Checking libc flavor",
+               command = ["grep", "-sq", 'CONFIG_LIBC="musl"', ".config"],
+               logEnviron = False,
+               want_stdout = False,
+               want_stderr = False,
+               haltOnFailure = True
+       ))
+
        # 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))