Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jbmMB-0005gQ-Ru for mharc-qemu-trivial@gnu.org; Thu, 21 May 2020 10:39:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbmMA-0005dx-K6 for qemu-trivial@nongnu.org; Thu, 21 May 2020 10:39:34 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:54057 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jbmM9-00018y-OW for qemu-trivial@nongnu.org; Thu, 21 May 2020 10:39:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590071972; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gQvPt0KH/EupV9uXoHLGWw25lMWH0sf72C5amazinwk=; b=UOUkO2ODdYp86W/ApSFJM6dDg4LWACG1dKpgJshuD/Z2xZnKi/VOVGahOEvf2dVINx89Qu VkzDilPtm0bB6srf8paCFYWTTNNXTzupeh7efdbPjDznZHJZweE9pVLcvrAnjWv4BcDO+g XRvVKPk4nh1XdJB2W6gwbcc916ATMiw= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-406-ZDquuNT-MyGcBDoRFMGlOA-1; Thu, 21 May 2020 10:39:30 -0400 X-MC-Unique: ZDquuNT-MyGcBDoRFMGlOA-1 Received: by mail-wm1-f69.google.com with SMTP id y20so731579wmi.8 for ; Thu, 21 May 2020 07:39:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=gQvPt0KH/EupV9uXoHLGWw25lMWH0sf72C5amazinwk=; b=g0AY7CGJdkdlaEdbkdWWZprVT5RSVzTis2nzciOEtx5s3G144lWmaZQZ575UjCz2SS 3YRfAYCEPjuP7J/MKQ2LmsleoigK8J7cDcoNdymdzQpm3Zg3Cn2r57hGe9oMAsj6l1Gl 2QpySs/RXd+DnFUBFwryeNYCLCnDWBkDioG9E4xykqAD92qcc4D+rVnlDm1FSLpyYFVo i7B6NdP8Rc5/D+jd2Nqa6wDEusee4pbcnAJOECYqDmWU/quv7Ojz2PxChDOswWmCo8UG s4RmjvizV9m5KWcEt/R8lm/hnUNHI9aIyLWldI290hMJSy/qWVEPna+TtTDKdp5V/y+/ BYzQ== X-Gm-Message-State: AOAM531o0E+KnDJ47tkpzFSwgXkEUPnEibMm1zuZae1DftduF/orRtlO VJqmZ/nP5PB0wL2LjfqucdLrDI8H2DtzZGFaW+0sBGsBMEMEkBLN3GXa2lUGV7ayImH4/HnGsp3 EMr9tKVlxt0OjzxProg== X-Received: by 2002:a7b:c005:: with SMTP id c5mr9117748wmb.22.1590071969340; Thu, 21 May 2020 07:39:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxe2YsX1ZffKV9gF0OL1vZzPKcAKIIgdYhJfoSaajowuWMqRyrbE1Yn8jVHeJKjVjbGnu9J2w== X-Received: by 2002:a7b:c005:: with SMTP id c5mr9117734wmb.22.1590071969101; Thu, 21 May 2020 07:39:29 -0700 (PDT) Received: from [192.168.178.58] ([151.30.94.134]) by smtp.gmail.com with ESMTPSA id s19sm2949984wmj.21.2020.05.21.07.39.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 May 2020 07:39:28 -0700 (PDT) Subject: Re: [PATCH] Makefile: Let the 'help' target list the helper targets To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org References: <20200423104345.5092-1-philmd@redhat.com> From: Paolo Bonzini Message-ID: Date: Thu, 21 May 2020 16:39:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200423104345.5092-1-philmd@redhat.com> Content-Language: en-US X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=205.139.110.61; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/21 01:47:40 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 May 2020 14:39:34 -0000 On 23/04/20 12:43, Philippe Mathieu-Daudé wrote: > List the name of the helper targets when calling 'make help', > along with the tool targets: > > $ make help > [...] > > Helper targets: > fsdev/virtfs-proxy-helper - Build virtfs-proxy-helper > scsi/qemu-pr-helper - Build qemu-pr-helper > qemu-bridge-helper - Build qemu-bridge-helper > vhost-user-gpu - Build vhost-user-gpu > virtiofsd - Build virtiofsd > > Tools targets: > qemu-ga - Build qemu-ga tool > qemu-keymap - Build qemu-keymap tool > elf2dmp - Build elf2dmp tool > ivshmem-client - Build ivshmem-client tool > ivshmem-server - Build ivshmem-server tool > qemu-nbd - Build qemu-nbd tool > qemu-storage-daemon - Build qemu-storage-daemon tool > qemu-img - Build qemu-img tool > qemu-io - Build qemu-io tool > qemu-edid - Build qemu-edid tool > > Signed-off-by: Philippe Mathieu-Daudé > --- > configure | 5 +++-- > Makefile | 9 +++++++-- > 2 files changed, 10 insertions(+), 4 deletions(-) > > diff --git a/configure b/configure > index 23b5e93752..caf880c38e 100755 > --- a/configure > +++ b/configure > @@ -6374,7 +6374,7 @@ if test "$softmmu" = yes ; then > if test "$linux" = yes; then > if test "$virtfs" != no && test "$cap_ng" = yes && test "$attr" = yes ; then > virtfs=yes > - tools="$tools fsdev/virtfs-proxy-helper\$(EXESUF)" > + helpers="$helpers fsdev/virtfs-proxy-helper\$(EXESUF)" > else > if test "$virtfs" = yes; then > error_exit "VirtFS requires libcap-ng devel and libattr devel" > @@ -6389,7 +6389,7 @@ if test "$softmmu" = yes ; then > fi > mpath=no > fi > - tools="$tools scsi/qemu-pr-helper\$(EXESUF)" > + helpers="$helpers scsi/qemu-pr-helper\$(EXESUF)" > else > if test "$virtfs" = yes; then > error_exit "VirtFS is supported only on Linux" > @@ -7630,6 +7630,7 @@ else > QEMU_INCLUDES="-iquote \$(SRC_PATH)/tcg/\$(ARCH) $QEMU_INCLUDES" > fi > > +echo "HELPERS=$helpers" >> $config_host_mak > echo "TOOLS=$tools" >> $config_host_mak > echo "ROMS=$roms" >> $config_host_mak > echo "MAKE=$make" >> $config_host_mak > diff --git a/Makefile b/Makefile > index 8a9113e666..021a0cd491 100644 > --- a/Makefile > +++ b/Makefile > @@ -336,9 +336,9 @@ $(call set-vpath, $(SRC_PATH)) > LIBS+=-lz $(LIBS_TOOLS) > > vhost-user-json-y = > -HELPERS-y = > +HELPERS-y = $(HELPERS) > > -HELPERS-$(call land,$(CONFIG_SOFTMMU),$(CONFIG_LINUX)) = qemu-bridge-helper$(EXESUF) > +HELPERS-$(call land,$(CONFIG_SOFTMMU),$(CONFIG_LINUX)) += qemu-bridge-helper$(EXESUF) > > ifeq ($(CONFIG_LINUX)$(CONFIG_VIRGL)$(CONFIG_GBM)$(CONFIG_TOOLS),yyyy) > HELPERS-y += vhost-user-gpu$(EXESUF) > @@ -1255,6 +1255,11 @@ endif > $(foreach t, $(TARGET_DIRS), \ > $(call print-help-run,$(t)/all,Build for $(t));) \ > echo '') > + @$(if $(HELPERS-y), \ > + echo 'Helper targets:'; \ > + $(foreach t, $(HELPERS-y), \ > + $(call print-help-run,$(t),Build $(shell basename $(t)));) \ > + echo '') > @$(if $(TOOLS), \ > echo 'Tools targets:'; \ > $(foreach t, $(TOOLS), \ > Queued, thanks. Paolo