qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] hw/Makefile.objs question
@ 2012-06-21  3:22 Alexey Kardashevskiy
  2012-06-21 10:36 ` Andreas Färber
  0 siblings, 1 reply; 13+ messages in thread
From: Alexey Kardashevskiy @ 2012-06-21  3:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: Alex Williamson

I am trying to compile the very last qemu with vfio_pci enabled. VFIO_PCI is added as below:

./configure:

 case "$target_arch2" in
  i386|x86_64|ppc64)
     if test "$vfio_pci" = "yes" -a "$target_softmmu" = "yes" ; then
       echo "CONFIG_VFIO_PCI=y" >> $config_target_mak
     fi
 esac


./Makefile.target:

 # VFIO PCI device assignment
obj-$(CONFIG_VFIO_PCI) += vfio_pci.o


And it worked before. However it does not anymore as it seems that everything in hw/ (and vfio_pci.c
as well as is in hw/ and it is a device) can be only compiled via hw/Makefile.objs and
hw/ppc/Makefile.objs (my platform is POWER), it is ignored if to keep it as is.

So I have to move "obj-$(CONFIG_VFIO_PCI) += vfio_pci.o" to hw/Makefile.objs (and change obj- to
hw-obj-) but the hw/Makefile.objs does not include (directly or indirectly) generated
ppc64-softmmu/config-target.mak with CONFIG_VFIO_PCI=y.

What is the correct solution?


-- 
Alexey

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-07-02 12:12 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-21  3:22 [Qemu-devel] hw/Makefile.objs question Alexey Kardashevskiy
2012-06-21 10:36 ` Andreas Färber
2012-06-21 11:21   ` Alexey Kardashevskiy
2012-06-21 12:19     ` Andreas Färber
2012-06-21 13:10       ` Alexey Kardashevskiy
2012-06-21 13:23         ` Anthony Liguori
2012-06-21 14:04         ` Andreas Färber
2012-06-21 15:52           ` Alex Williamson
2012-06-22  2:23           ` Alexey Kardashevskiy
2012-07-02 10:36           ` Paolo Bonzini
2012-07-02 12:10             ` Andreas Färber
2012-07-02 12:10             ` Alexey Kardashevskiy
2012-07-02 12:11               ` Andreas Färber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).