Comment 5 for bug 2025578

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2023-07-05 06:25 EDT-------
genprotimg is missing - probably because the Makefile target is not yet enabled by default in the main Makefile. The question is, what should we do? And how can we proceed?

There was a suggestion from Canonical to package the genprotimg bootloader in a noarch package [1] - so that's (probably) only a packaging issue. The noarch package approach would be very similar to how the QEMU s390-ccw BIOS is packaged on Ubuntu. The QEMU BIOS lives in the architecture-neutral qemu-system-data package (FYI, there is an open issue regarding the debuginfo for the QEMU BIOS [2]).

So run these commands in order to cross-compile genprotimg on x86:

pushd "$S390_TOOLS"
pushd genprotimg
pushd boot
make -j HOST_ARCH=s390x CROSS_COMPILE=s390x-linux-gnu-
popd
pushd src
make -j
popd
make install -j
popd
popd

[1] https://github.com/ibm-s390-linux/s390-tools/discussions/150#discussioncomment-5977825
[2] https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/2020624