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

2018-02-19 Thread Geert Stappers
On Mon, Feb 19, 2018 at 02:00:54PM +0100, Geert Stappers wrote:
> On Mon, Feb 19, 2018 at 01:20:36PM +0100, Thomas Lamprecht wrote:
> > 
> > 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, ... ? )
> 

Found this

 --target-list=LIST   set target list (default: build everything)


Cheers
Geert Stappers
___
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


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

2018-02-19 Thread Geert Stappers
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
___
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


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

2018-02-19 Thread Thomas Lamprecht

Am 02/19/2018 um 01:07 PM schrieb Geert Stappers:

Quoting 
https://forum.proxmox.com/threads/emulating-non-x86-machine-types.35801/#post-199797
Fabian wrote:

Stappers wrote:

Got a clean build of package pve-qemu-kvm by
   git clone git://git.proxmox.com/git/pve-qemu
   cd pve-qemu
   # satisfy build depends
   make

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.

Clues welcome  ;-)

it's in the packaging directly - see debian/rules
(although such questions might be better asked on pve-devel,
  where they are not as easily overlooked ;))

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.

cheers,
Thomas

___
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


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

2018-02-19 Thread Geert Stappers
Quoting 
https://forum.proxmox.com/threads/emulating-non-x86-machine-types.35801/#post-199797
Fabian wrote:
> Stappers wrote:
> > Got a clean build of package pve-qemu-kvm by
> >   git clone git://git.proxmox.com/git/pve-qemu
> >   cd pve-qemu
> >   # satisfy build depends
> >   make
> >
> > 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.
> >
> > Clues welcome  ;-)
>
> it's in the packaging directly - see debian/rules
> (although such questions might be better asked on pve-devel,
>  where they are not as easily overlooked ;))

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?


Groeten
Geert Stappers
-- 
Leven en laten leven
___
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel