Received: from eggs.gnu.org ([209.51.188.92]:40082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwsdh-0001Nn-5W for qemu-devel@nongnu.org; Thu, 21 Feb 2019 13:00:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwsdg-0002wg-B2 for qemu-devel@nongnu.org; Thu, 21 Feb 2019 13:00:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55584) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gwsdf-0002vr-VB for qemu-devel@nongnu.org; Thu, 21 Feb 2019 13:00:04 -0500 References: <1549562254-41157-1-git-send-email-pbonzini@redhat.com> <1549562254-41157-7-git-send-email-pbonzini@redhat.com> <20190221154417.h3i5m5pwxbiiufae@steredhat> From: Paolo Bonzini Message-ID: Date: Thu, 21 Feb 2019 18:59:56 +0100 MIME-Version: 1.0 In-Reply-To: <20190221154417.h3i5m5pwxbiiufae@steredhat> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 06/51] build: switch to Kconfig List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefano Garzarella Cc: qemu-devel@nongnu.org, Yang Zhong , thuth@redhat.com, philmd@redhat.com On 21/02/19 16:44, Stefano Garzarella wrote: >> + > Hi Paolo, > I'm playing with Kconfig but with a simple configuration > (./configure --target-list=x86_64-softmmu --disable-docs) the build fails: > /usr/bin/ld: ../hw/xen/xen-legacy-backend.o: in function `xen_be_register_common': > /home/stefano/repos/qemu-kconfig/hw/xen/xen-legacy-backend.c:757: undefined reference to `xen_9pfs_ops' > collect2: error: ld returned 1 exit status > > Analyzing the Makefile.objs files maybe we should pass the CONFIG_VIRTFS from > config-host.mak down to Kconfig. > I tried this simple patch and it seems to fix the issue: > > diff --git a/Makefile b/Makefile > index df0732a050..bad583b01c 100644 > --- a/Makefile > +++ b/Makefile > @@ -336,6 +336,7 @@ MINIKCONF_ARGS = \ > CONFIG_XEN=$(CONFIG_XEN) \ > CONFIG_OPENGL=$(CONFIG_OPENGL) \ > CONFIG_VHOST_USER=$(CONFIG_VHOST_USER) \ > + CONFIG_VIRTFS=$(CONFIG_VIRTFS) \ > CONFIG_LINUX=$(CONFIG_LINUX) > > I'm not sure if we need to add "config VIRTFS" entry in the > Kconfig.host, because it is already defined in hw/9pfs/Kconfig. Yes, we should remove it from hw/9pfs/Kconfig too. I had made this exact change today in my branch. :) Thanks! Paolo