Commit 2fa100b2 authored by Michael Tokarev's avatar Michael Tokarev

build qemu-palcode using alpha cross-compiler (#913103)

parent 7a6ff8c5
......@@ -108,6 +108,9 @@ Build-Depends: debhelper (>= 11),
##--enable-xen-pci-passthrough todo
Build-Depends-Indep:
gcc-s390x-linux-gnu,
# libc6.1-dev-alpha-cross isn't really needed but the code,
# for whatever reason, #include's string.h which needs libc6.1-dev
gcc-alpha-linux-gnu, libc6.1-dev-alpha-cross,
Build-Conflicts: oss4-dev
Standards-Version: 3.9.8
Homepage: http://www.qemu.org/
......
......@@ -5,3 +5,5 @@ pc-bios/qemu_logo_no_text.svg usr/share/qemu
b/fw/*.bin usr/share/qemu
# s390x firmware
b/fw/s390*.img usr/share/qemu
# alpha firmware
b/qemu-palcode/palcode-clipper 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
qemu-system-data: arch-independent-package-contains-binary-or-object usr/share/qemu/palcode-clipper
qemu-system-data: arch-dependent-file-in-usr-share usr/share/qemu/palcode-clipper
qemu-system-data: statically-linked-binary usr/share/qemu/palcode-clipper
......@@ -32,6 +32,7 @@ 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-
ALPHAEV67_CROSSPFX = alpha-linux-gnu-
# we add another set of configure options from debian/control
common_configure_opts = \
......@@ -302,6 +303,11 @@ build-indep:
# x86 optionrom
${MAKE} -f ${CURDIR}/debian/optionrom.mak -C ${CURDIR}/b/fw SRC_PATH=${CURDIR}
# alpha firmware in roms/palcode-clipper
cp -al roms/qemu-palcode b/
${MAKE} -C ${CURDIR}/b/qemu-palcode CROSS=${ALPHAEV67_CROSSPFX}
${ALPHAEV67_CROSSPFX}strip b/qemu-palcode/palcode-clipper
# 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 \
......
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