public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kconfig: add KCONFIG_ALLCONFIG support for tinyconfig
@ 2022-03-03 16:51 Randrianaina Georges Aaron
  2022-03-04 17:06 ` Masahiro Yamada
  0 siblings, 1 reply; 4+ messages in thread
From: Randrianaina Georges Aaron @ 2022-03-03 16:51 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: linux-kbuild, linux-kernel, Mathieu Acher

Since f8f0d06438e5, tinyconfig overrides KCONFIG_ALLCONFIG to
include kernel/configs/tiny-base.config. However, this ignores
user's preset if defined.

This modification checks if the user has set KCONFIG_ALLCONFIG
and if so, concatenates it with kernel/configs/tiny-base.config
to be used as preset config symbols.

Signed-off-by: Randrianaina Georges Aaron <georges-aaron.randrianaina@irisa.fr>
---
 scripts/kconfig/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index b8ef0fb4bbef..337693fb4762 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -102,7 +102,13 @@ configfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/c
 
 PHONY += tinyconfig
 tinyconfig:
+ifeq ($(KCONFIG_ALLCONFIG),)
 	$(Q)KCONFIG_ALLCONFIG=kernel/configs/tiny-base.config $(MAKE) -f $(srctree)/Makefile allnoconfig
+else
+	$(Q)cat $(KCONFIG_ALLCONFIG) <(echo) kernel/configs/tiny-base.config > .tmp.config
+	$(Q)KCONFIG_ALLCONFIG=.tmp.config $(MAKE) -f $(srctree)/Makefile allnoconfig
+	$(Q)rm -f .tmp.config
+endif
 	$(Q)$(MAKE) -f $(srctree)/Makefile tiny.config
 
 # CHECK: -o cache_dir=<path> working?
-- 
2.34.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-03-08  2:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-03 16:51 [PATCH] kconfig: add KCONFIG_ALLCONFIG support for tinyconfig Randrianaina Georges Aaron
2022-03-04 17:06 ` Masahiro Yamada
2022-03-05  9:05   ` RANDRIANAINA Georges Aaron
2022-03-08  2:40     ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox