kernel-build.eclass: permit savedconfig without predef .config
authorAlexey Shvetsov <alexxy@gentoo.org>
Thu, 21 May 2020 13:23:58 +0000 (16:23 +0300)
committerMichał Górny <mgorny@gentoo.org>
Thu, 21 May 2020 14:30:19 +0000 (16:30 +0200)
Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/kernel-build.eclass

index 028f0da8148e577aa0a17c166042c9b5c19b784c..ba4b012dc4cfb4d97e7881953f3ed65120e316f1 100644 (file)
@@ -74,8 +74,8 @@ kernel-build_src_configure() {
                ARCH=$(tc-arch-kernel)
        )
 
-       [[ -f .config ]] || die "Ebuild error: please copy default config into .config"
        restore_config .config
+       [[ -f .config ]] || die "Ebuild error: please copy default config into .config"
 
        mkdir -p "${WORKDIR}"/modprep || die
        mv .config "${WORKDIR}"/modprep/ || die