[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v4 3/3] enable QEMU for ARM builds



On Fri, 2014-08-01 at 16:32 +0100, Stefano Stabellini wrote:
> Build qemu-xen on ARM and ARM64: it is used to provide the PV backends,
> disk and framebuffer in particular.
> 
> Ideally we would also modify the configure options to only build what is
> necessary: a machine just for PV backends. However that is a work in
> progress and not yet available in QEMU (see
> http://marc.info/?l=qemu-devel&m=139082425718379&w=2). So we just build
> the usual i386 target, even though no i386 emulation is going to be done
> by qemu-xen on ARM.
> 
> Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>

This doesn't build for arm64:
        if test -d git://xenbits.xen.org/qemu-upstream-unstable.git ; then \
                        
source=git://xenbits.xen.org/qemu-upstream-unstable.git; \
                else \
                        source=.; \
                fi; \
                cd qemu-xen-dir; \
                $source/configure --enable-xen --target-list=i386-softmmu \
                        --enable-debug --enable-trace-backend=stderr \
                        --prefix=/usr/local/lib/xen \
                        --libdir=/usr/local/lib/xen/lib \
                        --includedir=/usr/local/lib/xen/include \
                        --source-path=$source \
                        
--extra-cflags="-I/local/scratch/ianc/devel/committer-arm64.git/tools/../tools/include
 \
                        
-I/local/scratch/ianc/devel/committer-arm64.git/tools/../tools/libxc/include \
                        
-I/local/scratch/ianc/devel/committer-arm64.git/tools/../tools/xenstore/include 
\
                        
-I/local/scratch/ianc/devel/committer-arm64.git/tools/../tools/xenstore/compat/include
 \
                        " \
                        
--extra-ldflags="-L/local/scratch/ianc/devel/committer-arm64.git/tools/../tools/libxc
 \
                        
-L/local/scratch/ianc/devel/committer-arm64.git/tools/../tools/xenstore \
                        -Wl,-rpath=/usr/local/lib/xen/lib" \
                        --bindir=/usr/local/lib/xen/bin \
                        --datadir=/usr/local/share/qemu-xen \
                        --localstatedir=/var \
                        --disable-kvm \
                        --disable-docs \
                        --disable-guest-agent \
                        --python=python \
                         \
                        --cpu=arm64 --cross-prefix=aarch64-linux-gnu- 
--interp-prefix=/usr/aarch64-linux-gnu/sys-root; \
                make all
        
        ERROR: Unsupported CPU = arm64, try --enable-tcg-interpreter
        
        make[3]: Entering directory 
`/local/scratch/ianc/devel/committer-arm64.git/tools/qemu-xen-dir-remote'
        make[3]: *** No rule to make target `/qemu-options.hx', needed by 
`qemu-options.def'.  Stop.
        
I think upstream calls arm64 aarch64, or maybe our qemu isn't new enough yet?

Since osstest doesn't yet include arm64 we aren't going to block
staging->master over this but we should still fix. Either by removing
aarch64 from the configure test or by making it actually build (by
adjusting --cpu=?).

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.