From patchwork Sat Jul 19 23:25:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 371871 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id A563114011D for ; Sun, 20 Jul 2014 09:25:13 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E7FC18917E; Sat, 19 Jul 2014 23:25:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id smyLlnlxKtJn; Sat, 19 Jul 2014 23:25:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 6C23D89190; Sat, 19 Jul 2014 23:25:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 6494A1C0F18 for ; Sat, 19 Jul 2014 23:25:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 5FA7F89190 for ; Sat, 19 Jul 2014 23:25:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6y1nYCqw2F0a for ; Sat, 19 Jul 2014 23:25:10 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by hemlock.osuosl.org (Postfix) with ESMTPS id 974FD8917E for ; Sat, 19 Jul 2014 23:25:10 +0000 (UTC) Received: by mail-wi0-f169.google.com with SMTP id n3so2637503wiv.2 for ; Sat, 19 Jul 2014 16:25:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=IWlFbusv9siSu34izEX1ygkoa6TyeaDBO2MhD7ix9sc=; b=UrPoFVsKIvGsn3T6Ebx40qYSsmQcFtNmeI4Ww9TPMpRfMRSMxtLKVKq0+H2QroHgr5 /S+0W+BqcS5iPsMuDkUH5rEexRp+BrWA9LzUgggxS2uwqXt57JztPD+9UR6XYUvksB1U cqzm3FlIaxSAqOSkrdaFHWELIs9i31yQM/mLB4EjxcbTyzGCQMz0Kp43GZfqm3E1T2Us CUH1X3NeXTHYy2cpHtsho4lu3iJZz6CehmIzpyIuiOjWZaFms/2JE0KuZKnipA7JMSbu L7uzgACAwpla8w/19Dv519nHnS0PtIwkMNahRLO8n++nrIE6MInFhW+2VntSMucEp3It Mr/g== X-Received: by 10.194.92.148 with SMTP id cm20mr8666313wjb.57.1405812309117; Sat, 19 Jul 2014 16:25:09 -0700 (PDT) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id jy8sm25210038wjc.7.2014.07.19.16.25.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 19 Jul 2014 16:25:08 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sun, 20 Jul 2014 01:25:04 +0200 Message-Id: <1405812304-7603-1-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 1.9.1 Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH RFC] kconfig: allow pre-seending randpackageconfig X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net 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" Cc: Thomas Petazzoni --- 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)