Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH RFC] kconfig: allow pre-seending randpackageconfig
@ 2014-07-19 23:25 Yann E. MORIN
  2014-08-05 19:10 ` Thomas De Schampheleire
  2014-10-12 17:26 ` [Buildroot] [PATCH] randconfig: seed with BR2_RAND_PRESEED_CONFIG Arnout Vandecappelle
  0 siblings, 2 replies; 8+ messages in thread
From: Yann E. MORIN @ 2014-07-19 23:25 UTC (permalink / raw)
  To: buildroot

NOTE: this is only a proof of concept, for initial feedback.

kconfig is not able to properly randomise choices when a base .config
file is provided.

Sicne we do have quite a few choices that selects one package or
another, and we do want to sometime build them, we need to be able to
preseed those packages.

Add a new environment variable that contains the path to a file
containing options to be preseeded to randpackageconfig.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

---
 Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Makefile b/Makefile
index 1af51de..eeaf7d3 100644
--- a/Makefile
+++ b/Makefile
@@ -751,6 +751,9 @@ randpackageconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
 	@grep '^config BR2_PACKAGE_' Config.in.legacy | \
 		while read config pkg; do \
 		echo "# $$pkg is not set" >> $(CONFIG_DIR)/.config.nopkg; done
+ifneq ($(BR2_RAND_PRESEED_CONFIG),)
+	@cat $(BR2_RAND_PRESEED_CONFIG) >> $(CONFIG_DIR)/.config.nopkg
+endif
 	@$(COMMON_CONFIG_ENV) \
 		KCONFIG_ALLCONFIG=$(CONFIG_DIR)/.config.nopkg \
 		$< --randconfig $(CONFIG_CONFIG_IN)
-- 
1.9.1

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

end of thread, other threads:[~2014-10-14  9:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-19 23:25 [Buildroot] [PATCH RFC] kconfig: allow pre-seending randpackageconfig Yann E. MORIN
2014-08-05 19:10 ` Thomas De Schampheleire
2014-10-12 17:26 ` [Buildroot] [PATCH] randconfig: seed with BR2_RAND_PRESEED_CONFIG Arnout Vandecappelle
2014-10-12 18:21   ` [Buildroot] [PATCH v2 1/2] randconfig, allyesconfig: fix handling of legacy options Arnout Vandecappelle
2014-10-12 18:21     ` [Buildroot] [PATCH v2 2/2] randconfig: seed with BR2_RAND_PRESEED_CONFIG_FILES Arnout Vandecappelle
2014-10-14  7:32       ` Yann E. MORIN
2014-10-14  9:08         ` Arnout Vandecappelle
2014-10-14  7:18     ` [Buildroot] [PATCH v2 1/2] randconfig, allyesconfig: fix handling of legacy options Yann E. MORIN

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