Kconfig for arithmetic comparisons
License
jaretcantu/kconfig
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
KCONFIG VERSION COMPARISON This is a derivation of Kconfig (scripts/config in the Linux kernel source tree) which provides version comparison functionality (greater/less than/or equal to). It is based on Kconfig from v5.10. This functionality is designed for use with versions that have major and minor numbers (or more), as opposed to theh vanilla kernel which only allows the comparison of integers. The functionality presented herein will also work for integer comparisons, but it will not work (the way you would expect, at least) with floating-point numbers. Each revision level of a version is taken as a separate integer comparison. The comparisons continue until one of the levels is unequal or until there are no more levels to compare. Therefore, 3.9 < 3.14. Also, 3.14 < 3.14.0 simply because it has more revision levels. Versions may be separated with a number of different symbols: . - _ Only the changes from the C source files need to be included for this functionality to be included in another project. The rest is simply for testing and building as part of an isolated tree.
About
Kconfig for arithmetic comparisons
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published