aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/config/expr.c
Commit message (Collapse)AuthorAgeFilesLines
* config: fix relational operators for bool and tristate symbolsNicolas Pitre2019-06-201-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 31847b67bec0 ("kconfig: allow use of relations other than (in)equality") it is possible to use relational operators in Kconfig statements. However, those operators give unexpected results when applied to bool/tristate values: (n < y) = y (correct) (m < y) = y (correct) (n < m) = n (wrong) This happens because relational operators process bool and tristate symbols as strings and m sorts before n. It makes little sense to do a lexicographical compare on bool and tristate values though. Documentation/kbuild/kconfig-language.txt states that expression can have a value of 'n', 'm' or 'y' (or 0, 1, 2 respectively for calculations). Let's make it so for relational comparisons with bool/tristate expressions as well and document them. If at least one symbol is an actual string then the lexicographical compare works just as before. Signed-off-by: Nicolas Pitre <nico@linaro.org> Acked-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> [rebased against OpenWrt kconfig, slightly reword commit message] (backported from upstream 9059a3493efea6492451430c7e2fa0af799a2abb) Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* scripts/config: sync with latest linux upstreamFelix Fietkau2016-08-031-125/+163
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: add new menuconfig code based on linux 3.9Felix Fietkau2013-04-181-23/+60
| | | | SVN-Revision: 36361
* scripts/config: merge fixes for various issues, including recursive ↵Felix Fietkau2011-10-281-29/+61
| | | | | | dependency detection/handling (patch by mbm) SVN-Revision: 28658
* finally move buildroot-ng to trunkFelix Fietkau2016-03-201-0/+1099