From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShXyU-0000EM-DN for qemu-devel@nongnu.org; Wed, 20 Jun 2012 23:22:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShXyS-0005ZW-Ik for qemu-devel@nongnu.org; Wed, 20 Jun 2012 23:22:25 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:46978) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShXyS-0005ZG-BW for qemu-devel@nongnu.org; Wed, 20 Jun 2012 23:22:24 -0400 Received: by dadn2 with SMTP id n2so243503dad.4 for ; Wed, 20 Jun 2012 20:22:21 -0700 (PDT) Message-ID: <4FE29366.6050101@ozlabs.ru> Date: Thu, 21 Jun 2012 13:22:14 +1000 From: Alexey Kardashevskiy MIME-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] hw/Makefile.objs question List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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