mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 19:05:37 +00:00
kernel: Handle non-existing config file for 'make kconfig'
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
parent
dbb14dfb69
commit
cfc9c49269
@ -28,14 +28,14 @@ RUN set -e && \
|
|||||||
SERIES=${VERSION%.*}.x && \
|
SERIES=${VERSION%.*}.x && \
|
||||||
echo "Patching $VERSION $SERIES" && \
|
echo "Patching $VERSION $SERIES" && \
|
||||||
cd /linux-${VERSION} && \
|
cd /linux-${VERSION} && \
|
||||||
if [ -d /patches-${SERIES} ]; then \
|
if [ -d /patches-${SERIES} ]; then \
|
||||||
for patch in /patches-${SERIES}/*.patch; do \
|
for patch in /patches-${SERIES}/*.patch; do \
|
||||||
echo "Applying $patch" && \
|
echo "Applying $patch" && \
|
||||||
patch -t -F0 -N -u -p1 < "$patch"; \
|
patch -t -F0 -N -u -p1 < "$patch"; \
|
||||||
done; \
|
done; \
|
||||||
fi && \
|
fi && \
|
||||||
mv /config-${SERIES}-x86_64 arch/x86/configs/x86_64_defconfig && \
|
[ ! -f /config-${SERIES}-x86_64 ] || mv /config-${SERIES}-x86_64 arch/x86/configs/x86_64_defconfig && \
|
||||||
mv /config-${SERIES}-aarch64 arch/arm64/configs/defconfig; \
|
[ ! -f /config-${SERIES}-aarch64 ] || mv /config-${SERIES}-aarch64 arch/arm64/configs/defconfig ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/sh"]
|
ENTRYPOINT ["/bin/sh"]
|
||||||
|
Loading…
Reference in New Issue
Block a user