From patchwork Thu Sep 22 14:49:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 76801 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp75075qgf; Thu, 22 Sep 2016 07:50:58 -0700 (PDT) X-Received: by 10.28.167.204 with SMTP id q195mr3049329wme.76.1474555857939; Thu, 22 Sep 2016 07:50:57 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id m129si2837189wma.8.2016.09.22.07.50.57; Thu, 22 Sep 2016 07:50:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C2D7BB3842; Thu, 22 Sep 2016 16:50:45 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MxAOhSZtbfRJ; Thu, 22 Sep 2016 16:50:45 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EC708B384F; Thu, 22 Sep 2016 16:50:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5BBC3B381B for ; Thu, 22 Sep 2016 16:50:23 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NgTLSnWDRvgY for ; Thu, 22 Sep 2016 16:50:23 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from conuserg-07.nifty.com (conuserg-07.nifty.com [210.131.2.74]) by theia.denx.de (Postfix) with ESMTPS id 0FE18B3812 for ; Thu, 22 Sep 2016 16:50:18 +0200 (CEST) Received: from grover.sesame (FL1-111-169-71-157.osk.mesh.ad.jp [111.169.71.157]) (authenticated) by conuserg-07.nifty.com with ESMTP id u8MEnRgt030021; Thu, 22 Sep 2016 23:49:35 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com u8MEnRgt030021 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1474555776; bh=W/pcIen8ew7yX4TT7faBeAW/6dfk7Xke9mq64hnT2b0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xSnUnXMIbqvHFGzFvkcexctFKDoPxmKVJ+JZKYIffAob6ZFOiWq7qeX8rr7nzD+Iz Gl9iVcK7soZFIOpzjdUHBb3Z4EE8dpCpNqwzsOhf8aqa8oAyQZZggSbFWTpFXUZdCv LAlgNjNE0PAoUVthFZzvIZylY1NY/Sjz/fUjzxKzKJigOqLurNlzte9AqZBe7S2jeW 8HMiL+d8G0FZ61+lBubU2b+WVmvJFoGuXkf0KBnO9yEIg9/lJe3sD5xtHOYxaKRTmp NSjEkM/AmHfJ91hVem4RQSadVt5QrblKjHbhVdjW8vnKRMcPWabx/lB7Sd9y7E8zcb 2FUpQQ1J9uqsQ== X-Nifty-SrcIP: [111.169.71.157] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Thu, 22 Sep 2016 23:49:25 +0900 Message-Id: <1474555766-23559-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1474555766-23559-1-git-send-email-yamada.masahiro@socionext.com> References: <1474555766-23559-1-git-send-email-yamada.masahiro@socionext.com> Cc: Tom Rini Subject: [U-Boot] [PATCH 1/2] build-whitelist: do not add new options to whitelist when update X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" If somebody adds a reference to a new CONFIG option in .c files, it will be added in the whitelist when we sync it. (For example, if we run scripts/build-whitelist.sh against commit a2ed3f452dd1, a new option CONFIG_USB_XHCI_UNIPHIER will appear in the list.) In order to make steady progress of Kconfig migration, we want to only decrease options in the whitelist, never increase. So, when we update the whitelist, we should create a temporary list, then take the intersection of the temporary list and the current whitelist. Signed-off-by: Masahiro Yamada --- scripts/build-whitelist.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/scripts/build-whitelist.sh b/scripts/build-whitelist.sh index 7cf7a66..b681ed4 100755 --- a/scripts/build-whitelist.sh +++ b/scripts/build-whitelist.sh @@ -45,7 +45,13 @@ cat `find . -name "Kconfig*"` |sed -n \ # Use only the options that are present in the first file but not the second. comm -23 scripts/config_whitelist.txt.tmp1 scripts/config_whitelist.txt.tmp2 \ - |sort |uniq >scripts/config_whitelist.txt -rm scripts/config_whitelist.txt.tmp1 scripts/config_whitelist.txt.tmp2 + |sort |uniq >scripts/config_whitelist.txt.tmp3 + +comm -12 scripts/config_whitelist.txt.tmp3 scripts/config_whitelist.txt \ + > scripts/config_whitelist.txt.tmp4 + +mv scripts/config_whitelist.txt.tmp4 scripts/config_whitelist.txt + +rm scripts/config_whitelist.txt.tmp* unset LC_ALL LC_COLLATE