-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3632 from masatake/kconfig--macro-language
Kconfig: support the macro language
- Loading branch information
Showing
16 changed files
with
88 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--sort=no | ||
--map-Kconfig=.kconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CC input.kconfig /^CC := gcc$/;" v | ||
CC_HAS_FOO input.kconfig /^config CC_HAS_FOO$/;" c | ||
CONFIG_CC_HAS_FOO input.kconfig /^config CC_HAS_FOO$/;" c | ||
CONFIG_CC_HAS_FOO_MODULE input.kconfig /^config CC_HAS_FOO$/;" c | ||
stringify input.kconfig /^stringify = $(squote)$(quote)$1$(quote)$(squote)$/;" v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Taken from https://www.kernel.org/doc/html/latest/kbuild/kconfig-macro-language.html | ||
CC := gcc | ||
|
||
config CC_HAS_FOO | ||
def_bool $(shell, $(srctree)/scripts/gcc-check-foo.sh $(CC)) | ||
|
||
# Taken from linux/scripts/Kbuild.include | ||
### | ||
# Quote a string to pass it to C files. foo => '"foo"' | ||
stringify = $(squote)$(quote)$1$(quote)$(squote) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.. _ctags-lang-kconfig(7): | ||
|
||
============================================================== | ||
ctags-lang-kconfig | ||
============================================================== | ||
--------------------------------------------------------------------- | ||
Random notes about tagging Kconfig source code with Universal Ctags | ||
--------------------------------------------------------------------- | ||
:Version: @VERSION@ | ||
:Manual group: Universal Ctags | ||
:Manual section: 7 | ||
|
||
SYNOPSIS | ||
-------- | ||
| **@CTAGS_NAME_EXECUTABLE@** ... --languages=+Kconfig ... | ||
| **@CTAGS_NAME_EXECUTABLE@** ... --language-force=Kconfig ... | ||
| **@CTAGS_NAME_EXECUTABLE@** ... --map-Kconfig=+(Kconfig*) ... | ||
|
||
DESCRIPTION | ||
----------- | ||
This man page gathers random notes about tagging Kconfig scripts. | ||
|
||
VERSIONS | ||
-------- | ||
|
||
Change since "0.0" | ||
~~~~~~~~~~~~~~~~~~ | ||
|
||
* New kind ``variable`` | ||
|
||
SEE ALSO | ||
-------- | ||
ctags(1), | ||
`Kconfig Language <https://www.kernel.org/doc/html/latest/kbuild/kconfig-language.html>`_ (https://www.kernel.org/doc/html/latest/kbuild/kconfig-language.html), | ||
`Kconfig macro language <https://www.kernel.org/doc/html/latest/kbuild/kconfig-macro-language.html>`_ (https://www.kernel.org/doc/html/latest/kbuild/kconfig-macro-language.html), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters