mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
kernel: Remove support for s390x
WIP #3676 Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
This commit is contained in:
parent
36d8026b17
commit
a4c518f696
@ -18,6 +18,7 @@ RUN apk add \
|
|||||||
installkernel \
|
installkernel \
|
||||||
kmod \
|
kmod \
|
||||||
elfutils-dev \
|
elfutils-dev \
|
||||||
|
libunwind-dev \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
mpc1-dev \
|
mpc1-dev \
|
||||||
mpfr-dev \
|
mpfr-dev \
|
||||||
@ -32,9 +33,6 @@ RUN apk add \
|
|||||||
xz-dev \
|
xz-dev \
|
||||||
zlib-dev
|
zlib-dev
|
||||||
|
|
||||||
# libunwind-dev pkg is missing for s390x for now. Only install on other arch
|
|
||||||
RUN [ $(uname -m) != s390x ] && apk add libunwind-dev || true
|
|
||||||
|
|
||||||
ARG KERNEL_VERSION
|
ARG KERNEL_VERSION
|
||||||
ARG KERNEL_SERIES
|
ARG KERNEL_SERIES
|
||||||
ARG EXTRA
|
ARG EXTRA
|
||||||
@ -107,7 +105,6 @@ RUN set -e && \
|
|||||||
RUN tar cJf /out/src/linux.tar.xz /linux
|
RUN tar cJf /out/src/linux.tar.xz /linux
|
||||||
|
|
||||||
# Kernel config
|
# Kernel config
|
||||||
# The s390x defconfig moved with 5.2.x
|
|
||||||
RUN case $(uname -m) in \
|
RUN case $(uname -m) in \
|
||||||
x86_64) \
|
x86_64) \
|
||||||
KERNEL_DEF_CONF=/linux/arch/x86/configs/x86_64_defconfig; \
|
KERNEL_DEF_CONF=/linux/arch/x86/configs/x86_64_defconfig; \
|
||||||
@ -115,13 +112,6 @@ RUN case $(uname -m) in \
|
|||||||
aarch64) \
|
aarch64) \
|
||||||
KERNEL_DEF_CONF=/linux/arch/arm64/configs/defconfig; \
|
KERNEL_DEF_CONF=/linux/arch/arm64/configs/defconfig; \
|
||||||
;; \
|
;; \
|
||||||
s390x) \
|
|
||||||
if [ -f /linux/arch/s390/defconfig ]; then \
|
|
||||||
KERNEL_DEF_CONF=/linux/arch/s390/defconfig; \
|
|
||||||
else \
|
|
||||||
KERNEL_DEF_CONF=/linux/arch/s390/configs/defconfig; \
|
|
||||||
fi; \
|
|
||||||
;; \
|
|
||||||
esac && \
|
esac && \
|
||||||
cp /config-${KERNEL_SERIES}-$(uname -m) ${KERNEL_DEF_CONF}; \
|
cp /config-${KERNEL_SERIES}-$(uname -m) ${KERNEL_DEF_CONF}; \
|
||||||
if [ -n "${EXTRA}" ] && [ -f "/config-${KERNEL_SERIES}-$(uname -m)${EXTRA}" ]; then \
|
if [ -n "${EXTRA}" ] && [ -f "/config-${KERNEL_SERIES}-$(uname -m)${EXTRA}" ]; then \
|
||||||
@ -138,15 +128,7 @@ RUN case $(uname -m) in \
|
|||||||
|
|
||||||
|
|
||||||
# Kernel
|
# Kernel
|
||||||
RUN case $(uname -m) in \
|
RUN make -j "$(getconf _NPROCESSORS_ONLN)" KCFLAGS="-fno-pie" && \
|
||||||
s390x) \
|
|
||||||
KCFLAGS="-fno-pie -fPIC"; \
|
|
||||||
;; \
|
|
||||||
*) \
|
|
||||||
KCFLAGS="-fno-pie"; \
|
|
||||||
;; \
|
|
||||||
esac && \
|
|
||||||
make -j "$(getconf _NPROCESSORS_ONLN)" KCFLAGS="$KCFLAGS" && \
|
|
||||||
case $(uname -m) in \
|
case $(uname -m) in \
|
||||||
x86_64) \
|
x86_64) \
|
||||||
cp arch/x86_64/boot/bzImage /out/kernel; \
|
cp arch/x86_64/boot/bzImage /out/kernel; \
|
||||||
@ -154,9 +136,6 @@ RUN case $(uname -m) in \
|
|||||||
aarch64) \
|
aarch64) \
|
||||||
cp arch/arm64/boot/Image.gz /out/kernel; \
|
cp arch/arm64/boot/Image.gz /out/kernel; \
|
||||||
;; \
|
;; \
|
||||||
s390x) \
|
|
||||||
cp arch/s390/boot/bzImage /out/kernel; \
|
|
||||||
;; \
|
|
||||||
esac && \
|
esac && \
|
||||||
cp System.map /out && \
|
cp System.map /out && \
|
||||||
([ -n "${DEBUG}" ] && cp vmlinux /out || true)
|
([ -n "${DEBUG}" ] && cp vmlinux /out || true)
|
||||||
|
@ -44,13 +44,6 @@ RUN set -e && \
|
|||||||
fi && \
|
fi && \
|
||||||
[ ! -f /config-${SERIES}-x86_64 ] || 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 && \
|
||||||
[ ! -f /config-${SERIES}-aarch64 ] || mv /config-${SERIES}-aarch64 arch/arm64/configs/defconfig ; \
|
[ ! -f /config-${SERIES}-aarch64 ] || mv /config-${SERIES}-aarch64 arch/arm64/configs/defconfig ; \
|
||||||
if [ -f /config-${SERIES}-s390x ]; then \
|
|
||||||
if [ -f /linux/arch/s390/defconfig ]; then \
|
|
||||||
mv /config-${SERIES}-s390x arch/s390/defconfig; \
|
|
||||||
else \
|
|
||||||
mv /config-${SERIES}-s390x arch/s390/configs/defconfig; \
|
|
||||||
fi; \
|
|
||||||
fi; \
|
|
||||||
done
|
done
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/sh"]
|
ENTRYPOINT ["/bin/sh"]
|
||||||
|
@ -49,9 +49,6 @@ endif
|
|||||||
ifeq ($(ARCH),$(filter $(ARCH),aarch64 arm64))
|
ifeq ($(ARCH),$(filter $(ARCH),aarch64 arm64))
|
||||||
SUFFIX=-arm64
|
SUFFIX=-arm64
|
||||||
endif
|
endif
|
||||||
ifeq ($(ARCH),s390x)
|
|
||||||
SUFFIX=-s390x
|
|
||||||
endif
|
|
||||||
|
|
||||||
TAG=$(HASH)$(DIRTY)
|
TAG=$(HASH)$(DIRTY)
|
||||||
|
|
||||||
@ -270,9 +267,6 @@ $(eval $(call kernel,5.11.22,5.11.x,$(EXTRA),$(DEBUG)))
|
|||||||
$(eval $(call kernel,5.10.39,5.10.x,$(EXTRA),$(DEBUG)))
|
$(eval $(call kernel,5.10.39,5.10.x,$(EXTRA),$(DEBUG)))
|
||||||
$(eval $(call kernel,5.11.4,5.11.x,-rt,))
|
$(eval $(call kernel,5.11.4,5.11.x,-rt,))
|
||||||
|
|
||||||
else ifeq ($(ARCH),s390x)
|
|
||||||
$(eval $(call kernel,5.11.22,5.11.x,$(EXTRA),$(DEBUG)))
|
|
||||||
$(eval $(call kernel,5.10.39,5.10.x,$(EXTRA),$(DEBUG)))
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Target for kernel config
|
# Target for kernel config
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user