kernel: Handle non-existing config file for 'make kconfig'
@@ -34,8 +34,8 @@ RUN set -e && \
patch -t -F0 -N -u -p1 < "$patch"; \
done; \
fi && \
- mv /config-${SERIES}-x86_64 arch/x86/configs/x86_64_defconfig && \
- mv /config-${SERIES}-aarch64 arch/arm64/configs/defconfig; \
+ [ ! -f /config-${SERIES}-x86_64 ] || mv /config-${SERIES}-x86_64 arch/x86/configs/x86_64_defconfig && \
+ [ ! -f /config-${SERIES}-aarch64 ] || mv /config-${SERIES}-aarch64 arch/arm64/configs/defconfig ; \
done
ENTRYPOINT ["/bin/sh"]
