open-power-host-os / qemu

OpenPOWER Host OS qemu repository
Other
2 stars 3 forks source link

qemu 2.10.0 from hostos-devel installs s390-netboot.img when building for ppc64le #4

Closed mopsfelder closed 7 years ago

mopsfelder commented 7 years ago

When building commit c334a4eee787fb8e9874b713b8c9ca35ee1e557a from hostos-devel branch, it installs /usr/share/qemu/s390-netboot.img, which I believe should be installed only if s390 architecture is specified in the configure step.

How to reproduce:

./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc --interp-prefix=/usr/qemu-%M --localstatedir=/var --libexecdir=/usr/libexec --disable-strip '--extra-ldflags=-Wl,--build-id -pie -Wl,-z,relro -Wl,-z,now' '--extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -fPIE -DPIE -mtune=power8 -mcpu=power8' --disable-werror --target-list=ppc64-softmmu --audio-drv-list=pa,sdl,alsa,oss --enable-kvm --disable-xen --enable-numa --enable-seccomp --enable-curl

make V=1 -j4 VL_LDFLAGS=-Wl,--build-id

make DESTDIR=/builddir/build/BUILDROOT/qemu-2.10.0-1.gitc334a4e.el7.centos.ppc64le install

Mirrored with LTC bug #158260
mopsfelder commented 7 years ago

I was investigating this and all blobs under pc-bios/ directory are installed regardless the architecture you're building on.

On Fedora, for example, they generate a sub-package named qemu-system-s390x-core even when building on ppc64le.

I believe we shall do the same for HostOS qemu.