Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f990cf9 authored by Michal Marek's avatar Michal Marek Committed by Sam Ravnborg
Browse files

kbuild: add generic --set-str option to scripts/config



Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 47312d2c
Loading
Loading
Loading
Loading
+9 −2
Original line number Original line Diff line number Diff line
@@ -10,6 +10,8 @@ commands:
	--enable|-e option   Enable option
	--enable|-e option   Enable option
	--disable|-d option  Disable option
	--disable|-d option  Disable option
	--module|-m option   Turn option into a module
	--module|-m option   Turn option into a module
	--set-str option value
	                     Set option to "value"
	--state|-s option    Print state of option (n,y,m,undef)
	--state|-s option    Print state of option (n,y,m,undef)


	--enable-after|-E beforeopt option
	--enable-after|-E beforeopt option
@@ -102,6 +104,11 @@ while [ "$1" != "" ] ; do
		set_var "CONFIG_$ARG" "CONFIG_$ARG=m"
		set_var "CONFIG_$ARG" "CONFIG_$ARG=m"
		;;
		;;


	--set-str)
		set_var "CONFIG_$ARG" "CONFIG_$ARG=\"$1\""
		shift
		;;

	--state|-s)
	--state|-s)
		if grep -q "# CONFIG_$ARG is not set" $FN ; then
		if grep -q "# CONFIG_$ARG is not set" $FN ; then
			echo n
			echo n