mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 02:21:34 +00:00
kernel: Add -fPIC to kernel compile on s390x
Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
This commit is contained in:
parent
9e3f61058f
commit
84375a65b9
@ -141,7 +141,15 @@ RUN case $(uname -m) in \
|
|||||||
|
|
||||||
|
|
||||||
# Kernel
|
# Kernel
|
||||||
RUN make -j "$(getconf _NPROCESSORS_ONLN)" KCFLAGS="-fno-pie" && \
|
RUN case $(uname -m) in \
|
||||||
|
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; \
|
||||||
|
Loading…
Reference in New Issue
Block a user