Commit 1f990cf94559e0a7363d56aade1d5dc6c515b60b
Committed by
Sam Ravnborg
1 parent
47312d2cfd
Exists in
master
and in
20 other branches
kbuild: add generic --set-str option to scripts/config
Signed-off-by: Michal Marek <mmarek@suse.cz> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Showing 1 changed file with 9 additions and 2 deletions Side-by-side Diff
scripts/config
... | ... | @@ -9,8 +9,10 @@ |
9 | 9 | commands: |
10 | 10 | --enable|-e option Enable option |
11 | 11 | --disable|-d option Disable option |
12 | - --module|-m option Turn option into a module | |
13 | - --state|-s option Print state of option (n,y,m,undef) | |
12 | + --module|-m option Turn option into a module | |
13 | + --set-str option value | |
14 | + Set option to "value" | |
15 | + --state|-s option Print state of option (n,y,m,undef) | |
14 | 16 | |
15 | 17 | --enable-after|-E beforeopt option |
16 | 18 | Enable option directly after other option |
... | ... | @@ -100,6 +102,11 @@ |
100 | 102 | |
101 | 103 | --module|-m) |
102 | 104 | set_var "CONFIG_$ARG" "CONFIG_$ARG=m" |
105 | + ;; | |
106 | + | |
107 | + --set-str) | |
108 | + set_var "CONFIG_$ARG" "CONFIG_$ARG=\"$1\"" | |
109 | + shift | |
103 | 110 | ;; |
104 | 111 | |
105 | 112 | --state|-s) |