mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-30 23:37:45 +00:00
s390x: add support to build qemu
This commit adds the s390x specific build flags to the configure-hypervisor.sh Fixes: #324 Signed-off-by: Jan Schintag <jan.schintag@de.ibm.com>
This commit is contained in:
parent
1666474b45
commit
5a6b92b711
@ -245,6 +245,7 @@ generate_qemu_options() {
|
||||
aarch64) ;;
|
||||
x86_64) qemu_options+=(size:--disable-tcg) ;;
|
||||
ppc64le) ;;
|
||||
s390x) qemu_options+=(size:--disable-tcg) ;;
|
||||
esac
|
||||
|
||||
# SECURITY: Don't build a static binary (lowers security)
|
||||
@ -271,6 +272,11 @@ generate_qemu_options() {
|
||||
qemu_options+=(size:--disable-debug-tcg)
|
||||
qemu_options+=(size:--disable-tcg-interpreter)
|
||||
;;
|
||||
s390x)
|
||||
qemu_options+=(size:--disable-uuid)
|
||||
qemu_options+=(size:--disable-debug-tcg)
|
||||
qemu_options+=(size:--disable-tcg-interpreter)
|
||||
;;
|
||||
esac
|
||||
qemu_options+=(size:--disable-qom-cast-debug)
|
||||
qemu_options+=(size:--disable-tcmalloc)
|
||||
@ -290,6 +296,7 @@ generate_qemu_options() {
|
||||
aarch64) ;;
|
||||
x86_64) qemu_options+=(size:--disable-xen) ;;
|
||||
ppc64le) qemu_options+=(size:--disable-xen) ;;
|
||||
s390x) qemu_options+=(size:--disable-xen) ;;
|
||||
esac
|
||||
|
||||
# FIXME: why is this disabled?
|
||||
@ -360,6 +367,7 @@ generate_qemu_options() {
|
||||
aarch64) _qemu_cflags+=" -fPIC" ;;
|
||||
x86_64) _qemu_cflags+=" -fPIE" ;;
|
||||
ppc64le) _qemu_cflags+=" -fPIE" ;;
|
||||
s390x) _qemu_cflags+=" -fPIE" ;;
|
||||
esac
|
||||
|
||||
# Set compile options
|
||||
@ -376,6 +384,7 @@ generate_qemu_options() {
|
||||
aarch64) ;;
|
||||
x86_64) [ -z "${static}" ] && _qemu_ldflags+=" -pie" ;;
|
||||
ppc64le) [ -z "${static}" ] && _qemu_ldflags+=" -pie" ;;
|
||||
s390x) [ -z "${static}" ] && _qemu_ldflags+=" -pie" ;;
|
||||
esac
|
||||
|
||||
# SECURITY: Disallow executing code on the stack.
|
||||
|
Loading…
Reference in New Issue
Block a user