diff options
author | Alexey Neyman <stilor@att.net> | 2017-11-29 00:14:04 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-11-29 23:44:49 -0800 |
commit | 9fdb93cce0a05e2562522153fe5deba8a9e9ae54 (patch) | |
tree | 54a6aab24418d733f750853f44a5bf74dd5056a1 /maintainer | |
parent | d759137c46fb7a04c4db44123ba3050afd734eef (diff) | |
download | crosstool-ng-9fdb93cce0a05e2562522153fe5deba8a9e9ae54.tar.gz crosstool-ng-9fdb93cce0a05e2562522153fe5deba8a9e9ae54.tar.bz2 crosstool-ng-9fdb93cce0a05e2562522153fe5deba8a9e9ae54.zip |
Make comp.libs use generated templates, too
This allows us to include the component-to-package relation in the
generated kconfig files and make use of that information in the
show-config.sh script.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'maintainer')
-rw-r--r-- | maintainer/kconfig-choice.template | 10 | ||||
-rw-r--r-- | maintainer/kconfig-menu.template | 7 |
2 files changed, 16 insertions, 1 deletions
diff --git a/maintainer/kconfig-choice.template b/maintainer/kconfig-choice.template index ec66f742..affaf65d 100644 --- a/maintainer/kconfig-choice.template +++ b/maintainer/kconfig-choice.template @@ -25,7 +25,7 @@ config @@dir|@@ default "@@choice@@" if @@dir|@@_@@choice|@@ #!end-foreach -config @@dir|@@_KSYM +config @@dir|@@_CHOICE_KSYM string #!foreach choice default "@@choice|@@" if @@dir|@@_@@choice|@@ @@ -33,6 +33,14 @@ config @@dir|@@_KSYM #!foreach choice if @@dir|@@_@@choice|@@ +config @@dir|@@_@@choice|@@_PKG_KSYM + string + default "@@pkg|@@" + +#!if [ -n "@@pkg@@" ] +source "config/versions/@@pkg@@.in" +#!end-if source "config/@@dir@@/@@choice@@.in" endif + #!end-foreach diff --git a/maintainer/kconfig-menu.template b/maintainer/kconfig-menu.template index 1a7daa5f..3e32e16c 100644 --- a/maintainer/kconfig-menu.template +++ b/maintainer/kconfig-menu.template @@ -14,6 +14,13 @@ menuconfig @@dir|@@_@@choice|@@ #!end-foreach if @@dir|@@_@@choice|@@ +config @@dir|@@_@@choice|@@_PKG_KSYM + string + default "@@pkg|@@" + +#!if [ -n "@@pkg@@" ] +source "config/versions/@@pkg@@.in" +#!end-if source "config/@@dir@@/@@choice@@.in" endif |