summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/streamline_config.pl
diff options
context:
space:
mode:
authorArnaud Lacombe <lacombar@gmail.com>2011-07-20 00:40:09 -0400
committerArnaud Lacombe <lacombar@gmail.com>2011-08-08 01:44:26 -0400
commit22d550ae83603aa8d64d72dd1e2309cd7a96ac89 (patch)
tree57952838dbc83d322a03bef2421596366991d8cd /scripts/kconfig/streamline_config.pl
parentf597a718296eef9622ebc1d13f4f8324fa169cef (diff)
downloadop-kernel-dev-22d550ae83603aa8d64d72dd1e2309cd7a96ac89.zip
op-kernel-dev-22d550ae83603aa8d64d72dd1e2309cd7a96ac89.tar.gz
kconfig/streamline_config.pl: use options to determine operating mode
The options introduced are --localmodconfig (default) and --localyesconfig. They match the Makefile target behavior. Cc: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Diffstat (limited to 'scripts/kconfig/streamline_config.pl')
-rw-r--r--scripts/kconfig/streamline_config.pl14
1 files changed, 13 insertions, 1 deletions
diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl
index ae34d20..ec7afce 100644
--- a/scripts/kconfig/streamline_config.pl
+++ b/scripts/kconfig/streamline_config.pl
@@ -43,6 +43,7 @@
# make oldconfig
#
use strict;
+use Getopt::Long;
my $config = ".config";
@@ -112,6 +113,13 @@ sub find_config {
find_config;
+# Parse options
+my $localmodconfig = 0;
+my $localyesconfig = 0;
+
+GetOptions("localmodconfig" => \$localmodconfig,
+ "localyesconfig" => \$localyesconfig);
+
# Get the build source and top level Kconfig file (passed in)
my $ksource = $ARGV[0];
my $kconfig = $ARGV[1];
@@ -425,7 +433,11 @@ while(<CIN>) {
if (/^(CONFIG.*)=(m|y)/) {
if (defined($configs{$1})) {
- $setconfigs{$1} = $2;
+ if ($localyesconfig) {
+ $setconfigs{$1} = 'y';
+ } else {
+ $setconfigs{$1} = $2;
+ }
} elsif ($2 eq "m") {
print "# $1 is not set\n";
next;
OpenPOWER on IntegriCloud