[pve-devel] Building pve-qemu containing qemu-system-aarch64

Geert Stappers stappers at stappers.it
Mon Feb 19 14:00:54 CET 2018


On Mon, Feb 19, 2018 at 01:20:36PM +0100, Thomas Lamprecht wrote:
> Am 02/19/2018 um 01:07 PM schrieb Geert Stappers:
> >Fabian wrote:
> >>Stappers wrote:
> >>>Now looking for where the non-x86 architectures were disabled.
> >>>I couldn't it in debian/patches, the subgitrepostory mirror_qemu looks complete to me.
> >>>
> >>it's in the packaging directly - see debian/rules
> >Short version of debian/rules from pve-qemu
> >
> >     ./configure
> >     make
> >     make install $DESTDIR
> >     rm $DESTDIR/some/files
> >     dh_builddeb
> >During `rm $DESTDIR/some/files` are no files like qemu-system-aarch64 deleted.
> >
> >" $ find qemu.tmp/debian/pve-qemu-kvm  | grep bin/qemu-system
> >" qemu.tmp/debian/pve-qemu-kvm/usr/bin/qemu-system-i386
> >" qemu.tmp/debian/pve-qemu-kvm/usr/bin/qemu-system-x86_64
> >
> >There I would expect seeing qemu-system-aarch64
> >
> >
> >What is needed to build pve-qemu containing qemu-system-aarch64?
> >
> 
> We only built the architecture of the current host system:
> 
> https://git.proxmox.com/?p=pve-qemu.git;a=blob;f=debian/rules;h=9396228865e4478bde22fa43aeefa868a0d11cb3;hb=HEAD#l40
> 
> Add your additional wished targets there.
 
How?

debian/rules
line 40:        ./configure --with-confsuffix="/kvm" --target-list=$(ARCH)-softmmu \
line 18:ARCH ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)

Executing `dpkg-architecture -qDEB_HOST_GNU_CPU` gives only 1 architecture.

> >" $ find qemu.tmp/debian/pve-qemu-kvm  | grep bin/qemu-system
> >" qemu.tmp/debian/pve-qemu-kvm/usr/bin/qemu-system-i386
> >" qemu.tmp/debian/pve-qemu-kvm/usr/bin/qemu-system-x86_64
That are 2 architectures.
Line 40 plus line 18 say there should 1 architecture ...


With '--target-list=' one will need a seperator between list items.
What should the seperator be?   ( colon, comma, space, ... ? )


Cheers
Geert Stappers



More information about the pve-devel mailing list