Skip to contentSkip to conversation

scripts : config : Added example use when run without argument,extend help

PATCH Superseded Bhaskar Chowdhury 2 participants 3 messages Sep 10, 2020 Kbuild

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts : config : Added example use when run without argument,extend help

This patch extends the help section by adding an explicit example of use.

---
 scripts/config | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
scripts/config +19 -0
index eee5b7f3a092..b75a5aab2453 100755
@@ -45,6 +45,25 @@ make time.
 By default, $myname will upper-case the given symbol. Use --keep-case to keep
 the case of all following symbols unchanged.
 
+The concerete example, say, you want to change any particular config ,like
+GKOV for profiling , you can simply use this command
+
+To enable :
+
+#scripts/config --enable GKOV_KERNEL  && grep GKOV .config
+
+ and the output will be like this :
+
+  CONFIG_GKOV_KERNEL=y
+
+To disable :
+
+#scripts/config --disable GKOV_KERNEL  && grep GKOV .config
+
+  and the output will be like this :
+
+# CONFIG_GKOV_KERNEL is not set
+
 $myname uses 'CONFIG_' as the default symbol prefix. Set the environment
 variable CONFIG_ to the prefix to use. Eg.: CONFIG_="FOO_" $myname ...
 EOL
Signature · 1 line
2.26.2
#1 lore raw

Hi,

Please be more careful. There are many errors here. (see below)

Quoted 12 lines · Bhaskar Chowdhury

This patch extends the help section by adding an explicit example of use.

---
 scripts/config | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
scripts/config +0 -0
index eee5b7f3a092..b75a5aab2453 100755

scripts/config make time. · line 48

Quoted 4 lines
scripts/config +1 -0
@@ -45,6 +45,25 @@ make time.
 By default, $myname will upper-case the given symbol. Use --keep-case to keep
 the case of all following symbols unchanged.
 
+The concerete example, say, you want to change any particular config ,like

concrete config, like

scripts/config make time. · line 49

Quoted 1 line
scripts/config +1 -0
+GKOV for profiling , you can simply use this command

GCOV

scripts/config make time. · line 51

Quoted 2 lines
scripts/config +2 -0
+
+To enable :

enable:

scripts/config make time. · line 53

Quoted 2 lines
scripts/config +2 -0
+
+#scripts/config --enable GKOV_KERNEL  && grep GKOV .config

GCOV_KERNEL GCOV

scripts/config make time. · line 55

Quoted 2 lines
scripts/config +2 -0
+
+ and the output will be like this :

this:

scripts/config make time. · line 57

Quoted 2 lines
scripts/config +2 -0
+
+  CONFIG_GKOV_KERNEL=y

GCOV

scripts/config make time. · line 59

Quoted 2 lines
scripts/config +2 -0
+
+To disable :

disable:

scripts/config make time. · line 61

Quoted 2 lines
scripts/config +2 -0
+
+#scripts/config --disable GKOV_KERNEL  && grep GKOV .config

GCOV GCOV

scripts/config make time. · line 63

Quoted 2 lines
scripts/config +2 -0
+
+  and the output will be like this :

this:

scripts/config make time. · line 65

Quoted 2 lines
scripts/config +2 -0
+
+# CONFIG_GKOV_KERNEL is not set

GCOV

Quoted 5 lines
scripts/config +1 -0
+
 $myname uses 'CONFIG_' as the default symbol prefix. Set the environment
 variable CONFIG_ to the prefix to use. Eg.: CONFIG_="FOO_" $myname ...
 EOL
Signature · 1 line
~Randy
#2 lore raw
Quoted 3 lines · Randy Dunlap

Hi,

Please be more careful. There are many errors here. (see below)

Silly me! thanks Randy :)

~Bhaskar

Quoted 75 lines · Bhaskar Chowdhury
Quoted 12 lines

This patch extends the help section by adding an explicit example of use.

---
 scripts/config | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
scripts/config +0 -0
index eee5b7f3a092..b75a5aab2453 100755

scripts/config make time. · line 48

Quoted 4 lines
scripts/config +1 -0
@@ -45,6 +45,25 @@ make time.
 By default, $myname will upper-case the given symbol. Use --keep-case to keep
 the case of all following symbols unchanged.
 
+The concerete example, say, you want to change any particular config ,like

concrete config, like

scripts/config make time. · line 49

Quoted 1 line
scripts/config +1 -0
+GKOV for profiling , you can simply use this command

GCOV

scripts/config make time. · line 51

Quoted 2 lines
scripts/config +2 -0
+
+To enable :

enable:

scripts/config make time. · line 53

Quoted 2 lines
scripts/config +2 -0
+
+#scripts/config --enable GKOV_KERNEL  && grep GKOV .config

GCOV_KERNEL GCOV

scripts/config make time. · line 55

Quoted 2 lines
scripts/config +2 -0
+
+ and the output will be like this :

this:

scripts/config make time. · line 57

Quoted 2 lines
scripts/config +2 -0
+
+  CONFIG_GKOV_KERNEL=y

GCOV

scripts/config make time. · line 59

Quoted 2 lines
scripts/config +2 -0
+
+To disable :

disable:

scripts/config make time. · line 61

Quoted 2 lines
scripts/config +2 -0
+
+#scripts/config --disable GKOV_KERNEL  && grep GKOV .config

GCOV GCOV

scripts/config make time. · line 63

Quoted 2 lines
scripts/config +2 -0
+
+  and the output will be like this :

this:

scripts/config make time. · line 65

Quoted 2 lines
scripts/config +2 -0
+
+# CONFIG_GKOV_KERNEL is not set

GCOV

Quoted 5 lines
scripts/config +1 -0
+
 $myname uses 'CONFIG_' as the default symbol prefix. Set the environment
 variable CONFIG_ to the prefix to use. Eg.: CONFIG_="FOO_" $myname ...
 EOL
Signature · 1 line
~Randy