From patchwork Fri Aug 21 02:43:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 11727445 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 53015722 for ; Fri, 21 Aug 2020 02:44:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3B977207BB for ; Fri, 21 Aug 2020 02:44:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597977867; bh=PSBZsG49m+1il9g4SVTaYVI+/MuD86ehxQbgurit/lg=; h=From:To:Cc:Subject:Date:List-ID:From; b=UXlRin8M5Er27yiHixFZ6AVozWAlguP9Isj9rwKWnbgBwT/Ut4aMoH3icnvuKMgc2 O6GGiQ/vHhS76KoDo5zjysLz6hyVF5lMFeEcLHwiqnV3lRN6N+/q6DombFKSQ0D7B4 wDUlg0eL6SezWRgM0ejwIxgrK86rPyYTnR0ryVNE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726975AbgHUCo0 (ORCPT ); Thu, 20 Aug 2020 22:44:26 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:20716 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726840AbgHUCo0 (ORCPT ); Thu, 20 Aug 2020 22:44:26 -0400 Received: from oscar.flets-west.jp (softbank126090211135.bbtec.net [126.90.211.135]) (authenticated) by conuserg-08.nifty.com with ESMTP id 07L2i0YL020183; Fri, 21 Aug 2020 11:44:01 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com 07L2i0YL020183 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1597977841; bh=WlGygibzUZpm/729meq5HruVG8ZYIIqB07d7CuZFwm0=; h=From:To:Cc:Subject:Date:From; b=mOL5rVhjBiK3dGckBV0DKsNOYs4g3J6ECQ1xoW6dTKmZbEAmVIgtO5zZH/h5H7ntW 5ACc3H4simMYjYzmOGtlSTb4/dqLxkVQMW3YpJLVcNGWPfIoJ1C0FtuGojMyP0+kvn 6RCgVk+7R5rpVBhLX82EHu5aKXSh7G5PasSPloYSwf/Iu6xhRwmgUONEPFgGgYtOrU Dcbc/5b+xKXC8j5qo8ckEUoycJVJBKYIJZnzB2W0EF8l5bkMHcFwWruCJ95X8LLuQi UjHn9bScVx0lBmyS5mN59pdwfg/V/52UFKAWM4lAHXF9EFCUVgx4fXtWsuSQs4+lSA dMsirmCJnTbeQ== X-Nifty-SrcIP: [126.90.211.135] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Ingo Molnar , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH] kbuild: hide commands to run Kconfig, and show short log for syncconfig Date: Fri, 21 Aug 2020 11:43:58 +0900 Message-Id: <20200821024358.616384-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Some targets (localyesconfig, localmodconfig, defconfig) hide the command running, but the others do not. Users know which Kconfig flavor they are running, so it is OK to hide the command. Add $(Q) to all commands consistently. If you want to see the full command running, pass V=1 from the command line. syncconfig is the exceptional case, which occurs without explicit command invocation by the user. Display the Kbuild-style log for it. The ugly bare log will go away. [Before] scripts/kconfig/conf --syncconfig Kconfig [After] SYNC include/config/auto.conf Signed-off-by: Masahiro Yamada --- Makefile | 5 ++++- scripts/kconfig/Makefile | 16 ++++++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 9cac6fde3479..0693314d51c3 100644 --- a/Makefile +++ b/Makefile @@ -708,8 +708,11 @@ $(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 + %/config/auto.conf %/config/auto.conf.cmd %/generated/autoconf.h: $(KCONFIG_CONFIG) - $(Q)$(MAKE) -f $(srctree)/Makefile syncconfig + +$(call cmd,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. diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 52b59bf9efe4..e46df0a2d4f9 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -20,19 +20,19 @@ endif unexport CONFIG_ xconfig: $(obj)/qconf - $< $(silent) $(Kconfig) + $(Q)$< $(silent) $(Kconfig) gconfig: $(obj)/gconf - $< $(silent) $(Kconfig) + $(Q)$< $(silent) $(Kconfig) menuconfig: $(obj)/mconf - $< $(silent) $(Kconfig) + $(Q)$< $(silent) $(Kconfig) config: $(obj)/conf - $< $(silent) --oldaskconfig $(Kconfig) + $(Q)$< $(silent) --oldaskconfig $(Kconfig) nconfig: $(obj)/nconf - $< $(silent) $(Kconfig) + $(Q)$< $(silent) $(Kconfig) build_menuconfig: $(obj)/mconf @@ -68,12 +68,12 @@ simple-targets := oldconfig allnoconfig allyesconfig allmodconfig \ PHONY += $(simple-targets) $(simple-targets): $(obj)/conf - $< $(silent) --$@ $(Kconfig) + $(Q)$< $(silent) --$@ $(Kconfig) PHONY += savedefconfig defconfig savedefconfig: $(obj)/conf - $< $(silent) --$@=defconfig $(Kconfig) + $(Q)$< $(silent) --$@=defconfig $(Kconfig) defconfig: $(obj)/conf ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),) @@ -111,7 +111,7 @@ tinyconfig: # CHECK: -o cache_dir= working? PHONY += testconfig testconfig: $(obj)/conf - $(PYTHON3) -B -m pytest $(srctree)/$(src)/tests \ + $(Q)$(PYTHON3) -B -m pytest $(srctree)/$(src)/tests \ -o cache_dir=$(abspath $(obj)/tests/.cache) \ $(if $(findstring 1,$(KBUILD_VERBOSE)),--capture=no) clean-files += tests/.cache