Commit 52a4ef96 authored by Michael Tokarev's avatar Michael Tokarev

enable s390x cross-compiler and build s390-ccw.img (#684909)

parent 697d7030
......@@ -106,6 +106,8 @@ Build-Depends: debhelper (>= 9),
##--enable-netmap todo bsd
##--enable-quorum todo needs gcrypt
##--enable-xen-pci-passthrough todo
Build-Depends-Indep:
gcc-s390x-linux-gnu,
Build-Conflicts: oss4-dev
Standards-Version: 3.9.8
Homepage: http://www.qemu.org/
......
pc-bios/keymaps usr/share/qemu
pc-bios/qemu-icon.bmp usr/share/qemu
pc-bios/qemu_logo_no_text.svg usr/share/qemu
# s390x firmware
b/fw/s390*.img usr/share/qemu
qemu-system-data: arch-independent-package-contains-binary-or-object usr/share/qemu/s390-ccw.img
qemu-system-data: arch-dependent-file-in-usr-share usr/share/qemu/s390-ccw.img
qemu-system-data: shared-lib-without-dependency-information usr/share/qemu/s390-ccw.img
......@@ -31,6 +31,8 @@ enable_linux_user = $(if $(filter qemu-user,${BUILD_PACKAGES}),enable,disable)
FIRMWAREPATH = /usr/share/qemu:/usr/share/seabios:/usr/lib/ipxe/qemu
S390X_CROSSPFX = s390x-linux-gnu-
# we add another set of configure options from debian/control
common_configure_opts = \
--with-pkgversion="Debian $(DEB_VERSION)" \
......@@ -289,8 +291,21 @@ debian/control: debian/control-in debian/rules
endif
# s390x firmware in pc-bios/s390-ccw
s390ccw_srcs = start.S main.c bootmap.c jump2ipl.c sclp.c menu.c virtio.c virtio-scsi.c virtio-blkdev.c libc.c
build-indep:
mkdir -p b/fw
# s390x firmware in pc-bios/s390-ccw
${S390X_CROSSPFX}gcc -Wl,-pie -fPIE -nostdlib -o b/fw/s390-ccw.img \
-ffreestanding -fno-delete-null-pointer-checks -msoft-float \
-march=z900 -fPIE -fno-strict-aliasing -fno-asynchronous-unwind-tables -fno-stack-protector \
$(addprefix pc-bios/s390-ccw/,${s390ccw_srcs})
${S390X_CROSSPFX}strip --strip-unneeded b/fw/s390-ccw.img
chmod -x b/fw/s390-ccw.img
binary-indep:
dh_testdir
dh_testroot
......@@ -300,7 +315,7 @@ binary-indep:
rm -f debian/qemu-system-data/usr/share/qemu/keymaps/Makefile
dh_installdocs -i
dh_installchangelogs -i
dh_lintian -i
dh_compress -i
dh_fixperms -i
dh_installdeb -i
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment