From patchwork Wed Dec 15 07:37:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Aaberg X-Patchwork-Id: 412661 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBF85mRh013778 for ; Wed, 15 Dec 2010 08:05:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754395Ab0LOIFk (ORCPT ); Wed, 15 Dec 2010 03:05:40 -0500 Received: from eu1sys200aog109.obsmtp.com ([207.126.144.127]:50150 "EHLO eu1sys200aog109.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754384Ab0LOIFj (ORCPT ); Wed, 15 Dec 2010 03:05:39 -0500 Received: from source ([164.129.1.35]) (using TLSv1) by eu1sys200aob109.postini.com ([207.126.147.11]) with SMTP ID DSNKTQh20d0Utv+sWAazEAfO0hRTlIA/VMYl@postini.com; Wed, 15 Dec 2010 08:05:39 UTC Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 18B92DF; Wed, 15 Dec 2010 07:37:45 +0000 (GMT) Received: from relay2.stm.gmessaging.net (unknown [10.230.100.18]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D48FA1EE0; Wed, 15 Dec 2010 07:37:45 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay2.stm.gmessaging.net (Postfix) with ESMTPS id A7623A80A0; Wed, 15 Dec 2010 08:37:12 +0100 (CET) Received: from localhost.localdomain (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.2.254.0; Wed, 15 Dec 2010 08:37:15 +0100 From: Jonas Aaberg To: , Michal Marek Cc: Jonas Aaberg Subject: [PATCH] kbuild: add numeric --set-val option to scripts/config Date: Wed, 15 Dec 2010 08:37:00 +0100 Message-ID: <1292398620-13197-1-git-send-email-jonas.aberg@stericsson.com> X-Mailer: git-send-email 1.7.2.2 MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 15 Dec 2010 08:05:49 +0000 (UTC) diff --git a/scripts/config b/scripts/config index 608d7fd..5d8e57b 100755 --- a/scripts/config +++ b/scripts/config @@ -10,8 +10,10 @@ commands: --enable|-e option Enable option --disable|-d option Disable option --module|-m option Turn option into a module - --set-str option value - Set option to "value" + --set-str option string + Set option to "string" + --set-val option value + Set option to value --state|-s option Print state of option (n,y,m,undef) --enable-after|-E beforeopt option @@ -109,6 +111,11 @@ while [ "$1" != "" ] ; do shift ;; + --set-val) + set_var "CONFIG_$ARG" "CONFIG_$ARG=$1" + shift + ;; + --state|-s) if grep -q "# CONFIG_$ARG is not set" $FN ; then echo n