Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp697242pxv; Thu, 22 Jul 2021 09:58:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySGAxYok8AFhPLZSCodKWY0IXmrpxZV+cKgeD9WiAYXti/EPy7NUM/QzQq4TMmBCwtCUgu X-Received: by 2002:a05:6402:3510:: with SMTP id b16mr677731edd.121.1626973097398; Thu, 22 Jul 2021 09:58:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626973097; cv=none; d=google.com; s=arc-20160816; b=X1MXAwcS8qdCbu+O3da8DVQgUjQL40nynVLR6gxgUYc0zo4qlpakIwQQkRz1fFZX8D IttWX7oWkUN3oGv/0Fci3LSYXVEZrLRY9gECLCVPTkg5inkgJuAYt3P8SovvioFiY4cP AGkN+52X8eMWEb8ExDKZ0rjfGR7uMcr2SCg+8nn4LRFHBwG7Nq0mP9m/53P1Tp3vwIYy AF6Sb64K/fPiuoHDQpy8mGjmmicAg3ocu+kQ4zKp31KCbOm3O0VjD8ttPdpzJu1Bi0g8 ZlDTm/MWlUB5/6X3+7EUoYIOmPgCLGZbWtLzYpEjT8kbUyV19J5BhUllbyNLbtQ90EgZ 5cwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=IzRJJnRLAsGwUZ5mZsYd2OZakaTc3sstLy/WiM62XX0=; b=EY6nn/Q5NPY0x+QHRdbw+wyfhe1cjtyc+5PQRtALwv5mEqCfs5E9IhqACjifkKkBtM /K6W5JBgcEJ2rqAz38pJx0agsbI1q5UWDk/0OLzmxyAepi8bA6mUawkAOQAU/cN2OCnN sDbw6kWoUHFDLBno/3mngJhrUErisJvxSg9ElkAOxKJS4AQrMALsyf/rPXfEkgR+jD6X l5nGMQTOUPGti+FQb7C9uHK7v1vP+BlrihV7hauVSpwEqdnrrZ952gblNfvxRz4xrWTB TmcVAo/UMO2YDu4UiWxS2hHOaFaJwJSxV9c3rpFPESnTrBn2WWcSs4OqsCo1sAVse0vT m0FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FMw9JU4a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si337824ejo.634.2021.07.22.09.57.53; Thu, 22 Jul 2021 09:58:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FMw9JU4a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234153AbhGVQMZ (ORCPT + 99 others); Thu, 22 Jul 2021 12:12:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:43910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233849AbhGVQHz (ORCPT ); Thu, 22 Jul 2021 12:07:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BAECF61D9B; Thu, 22 Jul 2021 16:48:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626972495; bh=uDNSXlZYLAvNnbXY0p9qvIw61xrMSiViPSL9yuDHU+U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FMw9JU4a4TmWoq5sMhkP5Av9XuaVADlK9gdkQpNOe0Ib96asTVjTpfxZzinR3H+AO cRbgA/C/nxaOmLroy5FFC7DFQV+R0xA+sx8MBSRUxNl74dBSB4/IKVyQ5FVOifZs/t /9q9WrVaA2KSgYB4QcSjJuSPq7mwxdGyx9QP9aWw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tetsuo Handa , Masahiro Yamada Subject: [PATCH 5.13 135/156] kbuild: do not suppress Kconfig prompts for silent build Date: Thu, 22 Jul 2021 18:31:50 +0200 Message-Id: <20210722155632.719980299@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210722155628.371356843@linuxfoundation.org> References: <20210722155628.371356843@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masahiro Yamada commit d952cfaf0cffdbbb0433c67206b645131f17ca5f upstream. When a new CONFIG option is available, Kbuild shows a prompt to get the user input. $ make [ snip ] Core Scheduling for SMT (SCHED_CORE) [N/y/?] (NEW) This is the only interactive place in the build process. Commit 174a1dcc9642 ("kbuild: sink stdout from cmd for silent build") suppressed Kconfig prompts as well because syncconfig is invoked by the 'cmd' macro. You cannot notice the fact that Kconfig is waiting for the user input. Use 'kecho' to show the equivalent short log without suppressing stdout from sub-make. Fixes: 174a1dcc9642 ("kbuild: sink stdout from cmd for silent build") Reported-by: Tetsuo Handa Signed-off-by: Masahiro Yamada Tested-by: Tetsuo Handa Signed-off-by: Greg Kroah-Hartman --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) --- a/Makefile +++ b/Makefile @@ -721,11 +721,12 @@ $(KCONFIG_CONFIG): # This exploits the 'multi-target pattern rule' trick. # The syncconfig should be executed only once to make all the targets. # (Note: use the grouped target '&:' when we bump to GNU Make 4.3) -quiet_cmd_syncconfig = SYNC $@ - cmd_syncconfig = $(MAKE) -f $(srctree)/Makefile syncconfig - +# +# Do not use $(call cmd,...) here. That would suppress prompts from syncconfig, +# so you cannot notice that Kconfig is waiting for the user input. %/config/auto.conf %/config/auto.conf.cmd %/generated/autoconf.h: $(KCONFIG_CONFIG) - +$(call cmd,syncconfig) + $(Q)$(kecho) " SYNC $@" + $(Q)$(MAKE) -f $(srctree)/Makefile syncconfig else # !may-sync-config # External modules and some install targets need include/generated/autoconf.h # and include/config/auto.conf but do not care if they are up-to-date.