zephyr/scripts/kconfig
Grzegorz Swiderski 64bb8b6796 scripts: kconfig: Add hex variants of arithmetic functions
Functions like `add` and `sub` can only return base 10 integers, which
means they can't really be used to define Kconfig symbols of type `hex`.

For the same reason, there already exist pairs of devicetree functions
named e.g., `dt_node_reg_addr_(int|hex)` after different return types.

Introduce `add_hex`, `sub_hex`, and friends.

To avoid confusion, it should be possible for those new functions to
accept arguments in base 16 as well. It's actually easier to let all
arithmetic functions take their inputs in "any" base, by leveraging
Python's built-in: `int(..., base=0)`.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2025-06-17 16:09:41 +02:00
..
diffconfig
guiconfig.py
hardenconfig.py
hardened.csv drivers: ethernet: Remove deprecated eth_mcux 2025-02-26 22:04:26 +00:00
kconfig.py
kconfigfunctions.py scripts: kconfig: Add hex variants of arithmetic functions 2025-06-17 16:09:41 +02:00
kconfiglib.py
lint.py
menuconfig.py