From: Mark Brown <broonie@kernel.org> To: Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Nathan Chancellor <nathan@kernel.org>, Nick Desaulniers <ndesaulniers@google.com>, Nicolas Schier <nicolas@fjasle.eu>, soc@kernel.org, Masahiro Yamada <masahiroy@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com>, Peter Zijlstra <peterz@infradead.org>, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown <broonie@kernel.org> Subject: [PATCH 2/3] kbuild: Provide a version of merge_into_defconfig without override warnings Date: Fri, 10 Feb 2023 19:52:48 +0000 [thread overview] Message-ID: <20230203-arm64-defconfigs-v1-2-cd0694a05f13@kernel.org> (raw) In-Reply-To: <20230203-arm64-defconfigs-v1-0-cd0694a05f13@kernel.org> While warning on overridden Kconfig options is a good default for merging config fragements sometimes that is our explicit intent and the warnings are unhelpful, add a new merge_into_defconfig_override which does the merge but with warnings suppressed. Since merge_into_defconfig accepts any number of fragments it is difficult to allow it to accept the flag. Signed-off-by: Mark Brown <broonie@kernel.org> --- scripts/Makefile.defconf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/Makefile.defconf b/scripts/Makefile.defconf index ab332f7534f5..ab271b2051a2 100644 --- a/scripts/Makefile.defconf +++ b/scripts/Makefile.defconf @@ -13,3 +13,17 @@ define merge_into_defconfig $(foreach config,$(2),$(srctree)/arch/$(ARCH)/configs/$(config).config) +$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig endef + + +# Creates 'merged defconfigs without warning about overrides' +# --------------------------------------------------------------------------- +# Usage: +# $(call merge_into_defconfig_override,base_config,config_fragment1 config_fragment2 ...) +# +# Input config fragments without '.config' suffix +define merge_into_defconfig_override + $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \ + -Q -m -O $(objtree) $(srctree)/arch/$(ARCH)/configs/$(1) \ + $(foreach config,$(2),$(srctree)/arch/$(ARCH)/configs/$(config).config) + +$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig +endef -- 2.30.2
WARNING: multiple messages have this Message-ID (diff)
From: Mark Brown <broonie@kernel.org> To: Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Nathan Chancellor <nathan@kernel.org>, Nick Desaulniers <ndesaulniers@google.com>, Nicolas Schier <nicolas@fjasle.eu>, soc@kernel.org, Masahiro Yamada <masahiroy@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com>, Peter Zijlstra <peterz@infradead.org>, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown <broonie@kernel.org> Subject: [PATCH 2/3] kbuild: Provide a version of merge_into_defconfig without override warnings Date: Fri, 10 Feb 2023 19:52:48 +0000 [thread overview] Message-ID: <20230203-arm64-defconfigs-v1-2-cd0694a05f13@kernel.org> (raw) In-Reply-To: <20230203-arm64-defconfigs-v1-0-cd0694a05f13@kernel.org> While warning on overridden Kconfig options is a good default for merging config fragements sometimes that is our explicit intent and the warnings are unhelpful, add a new merge_into_defconfig_override which does the merge but with warnings suppressed. Since merge_into_defconfig accepts any number of fragments it is difficult to allow it to accept the flag. Signed-off-by: Mark Brown <broonie@kernel.org> --- scripts/Makefile.defconf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/Makefile.defconf b/scripts/Makefile.defconf index ab332f7534f5..ab271b2051a2 100644 --- a/scripts/Makefile.defconf +++ b/scripts/Makefile.defconf @@ -13,3 +13,17 @@ define merge_into_defconfig $(foreach config,$(2),$(srctree)/arch/$(ARCH)/configs/$(config).config) +$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig endef + + +# Creates 'merged defconfigs without warning about overrides' +# --------------------------------------------------------------------------- +# Usage: +# $(call merge_into_defconfig_override,base_config,config_fragment1 config_fragment2 ...) +# +# Input config fragments without '.config' suffix +define merge_into_defconfig_override + $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \ + -Q -m -O $(objtree) $(srctree)/arch/$(ARCH)/configs/$(1) \ + $(foreach config,$(2),$(srctree)/arch/$(ARCH)/configs/$(config).config) + +$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig +endef -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-02-10 19:54 UTC|newest] Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-02-10 19:52 [PATCH 0/3] arm64: configs: Provide slimmed down configuration for guests Mark Brown 2023-02-10 19:52 ` Mark Brown 2023-02-10 19:52 ` [PATCH 1/3] scripts: merge_config: Add option to suppress warning on overrides Mark Brown 2023-02-10 19:52 ` Mark Brown 2023-02-10 19:52 ` Mark Brown [this message] 2023-02-10 19:52 ` [PATCH 2/3] kbuild: Provide a version of merge_into_defconfig without override warnings Mark Brown 2023-02-10 19:52 ` [PATCH 3/3] arm64: configs: Add virtconfig Mark Brown 2023-02-10 19:52 ` Mark Brown 2023-02-11 7:37 ` Masahiro Yamada 2023-02-11 7:37 ` Masahiro Yamada 2023-02-11 23:10 ` Mark Brown 2023-02-11 23:10 ` Mark Brown 2023-02-13 15:15 ` Arnd Bergmann 2023-02-13 15:15 ` Arnd Bergmann 2023-02-13 15:48 ` Mark Brown 2023-02-13 15:48 ` Mark Brown 2023-02-13 16:18 ` Masahiro Yamada 2023-02-13 16:18 ` Masahiro Yamada 2023-02-10 23:51 ` [PATCH 0/3] arm64: configs: Provide slimmed down configuration for guests Mark Brown 2023-02-10 23:51 ` Mark Brown 2023-02-13 19:30 ` patchwork-bot+linux-soc
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230203-arm64-defconfigs-v1-2-cd0694a05f13@kernel.org \ --to=broonie@kernel.org \ --cc=catalin.marinas@arm.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kbuild@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=mark.rutland@arm.com \ --cc=masahiroy@kernel.org \ --cc=nathan@kernel.org \ --cc=ndesaulniers@google.com \ --cc=nicolas@fjasle.eu \ --cc=peterz@infradead.org \ --cc=soc@kernel.org \ --cc=will@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.