You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75dcaf3d23
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> |
5 years ago | |
---|---|---|
.. | ||
config | 5 years ago | |
flashing | 5 years ago | |
arm-magic.sh | 9 years ago | |
brcmImage.pl | 7 years ago | |
bundle-libraries.sh | 6 years ago | |
checkpatch.pl | 7 years ago | |
clang-gcc-wrapper | 11 years ago | |
clean-package.sh | 5 years ago | |
cleanfile | 7 years ago | |
cleanpatch | 7 years ago | |
combined-ext-image.sh | 6 years ago | |
combined-image.sh | 7 years ago | |
config.guess | 6 years ago | |
config.rpath | 13 years ago | |
config.sub | 6 years ago | |
deptest.sh | 8 years ago | |
diffconfig.sh | 8 years ago | |
dl_cleanup.py | 9 years ago | |
dl_github_archive.py | 6 years ago | |
download.pl | 6 years ago | |
env | 6 years ago | |
ext-toolchain.sh | 7 years ago | |
feeds | 6 years ago | |
fixup-makefile.pl | 6 years ago | |
gen-dependencies.sh | 7 years ago | |
gen_image_generic.sh | 5 years ago | |
get_source_date_epoch.sh | 7 years ago | |
getver.sh | 7 years ago | |
ipkg-build | 6 years ago | |
ipkg-make-index.sh | 5 years ago | |
ipkg-remove | 5 years ago | |
kconfig.pl | 8 years ago | |
linksys-image.sh | 5 years ago | |
make-ipkg-dir.sh | 8 years ago | |
md5sum | 16 years ago | |
metadata.pm | 5 years ago | |
mkhash.c | 7 years ago | |
mkits-qsdk-ipq-image.sh | 5 years ago | |
mkits.sh | 6 years ago | |
om-fwupgradecfg-gen.sh | 6 years ago | |
package-metadata.pl | 5 years ago | |
pad_image | 8 years ago | |
patch-kernel.sh | 9 years ago | |
patch-specs.sh | 5 years ago | |
portable_date.sh | 8 years ago | |
qemustart | 5 years ago | |
redboot-script.pl | 8 years ago | |
relink-lib.sh | 13 years ago | |
remote-gdb | 7 years ago | |
rstrip.sh | 6 years ago | |
slugimage.pl | 6 years ago | |
srecimage.pl | 8 years ago | |
strip-kmod.sh | 8 years ago | |
symlink-tree.sh | 8 years ago | |
sysupgrade-tar.sh | 5 years ago | |
target-metadata.pl | 5 years ago | |
time.pl | 6 years ago | |
timestamp.pl | 14 years ago | |
ubinize-image.sh | 8 years ago |