diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-05-26 22:51:03 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-05-26 22:51:03 +0200 |
commit | a257ff7da8d2ae772011d3cce0b22c741e5b3ce1 (patch) | |
tree | 77368caaa2730b7a8fbee52837284433509af9eb /.hgignore | |
parent | 7aa57aa228e88bf2b90f27ab75a9e86c7a6410a9 (diff) | |
download | crosstool-ng-a257ff7da8d2ae772011d3cce0b22c741e5b3ce1.tar.gz crosstool-ng-a257ff7da8d2ae772011d3cce0b22c741e5b3ce1.tar.bz2 crosstool-ng-a257ff7da8d2ae772011d3cce0b22c741e5b3ce1.zip |
configure: add possibility to set arbitrary variable in check_for
If check_for is able to find the required prog/inc/lib, allow it to
set an arbitrary variable to 'y'. This variable is then pushed down
to the kconfig definition.
For example:
has_or_abort prog=foobar kconfig=has_foobar
If foobar is available, it yields a kconfig variable defaulting to y:
config CONFIGURE_has_foobar
bool
default y
If foobar is missing, it yields a kconfig variable defaulting to n:
config CONFIGURE_has_foobar
bool
Thus it is possible to depends on that variabel to show/hide options:
config SOME_FEATURE
bool
prompt "Some feature"
depends on CONFIGURE_has_foobar
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to '.hgignore')
-rw-r--r-- | .hgignore | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -13,6 +13,7 @@ kconfig/conf kconfig/?conf kconfig/**.o kconfig/**.dep +config/configure.in config.gen/ .config .config.2 |