zephyr/scripts
Martí Bolívar 74abb2bf95 devicetree: add first-class node label helpers
Add the following new macros:

- DT_FOREACH_NODELABEL
- DT_FOREACH_NODELABEL_VARGS
- DT_INST_FOREACH_NODELABEL
- DT_INST_FOREACH_NODELABEL_VARGS

These are for-each helpers for iterating over the node labels of a
devicetree node. Since node labels are unique in the entire
devicetree, their token representations can be useful as unique IDs in
code as well.

As a first user of these, add:

- DT_NODELABEL_STRING_ARRAY
- DT_INST_NODELABEL_STRING_ARRAY

The motivating use case for these macros is to allow looking up a
struct device by devicetree node label in Zephyr shell utilities.
The work on the shells themselves is deferred to other patches.

To make working with the string array helpers easier, add:

- DT_NUM_NODELABELS
- DT_INST_NUM_NODELABELS

Signed-off-by: Martí Bolívar <mbolivar@amperecomputing.com>
2024-06-12 18:49:54 +02:00
..
build llext: add support for SLID-based linking 2024-06-03 15:29:34 -04:00
checkpatch
ci scripts: nrf_common: Handle SUIT artifacts 2024-06-10 17:03:14 +03:00
coccinelle scripts: coccinelle: Remove strtok_r symbol from checklist 2023-08-23 16:05:08 +01:00
coredump arch: rename all esf struct to struct arch_esf 2024-06-04 14:02:51 -05:00
dts devicetree: add first-class node label helpers 2024-06-12 18:49:54 +02:00
footprint samples: Bluetooth: Audio: Change names to <profile>_<role> 2024-05-31 09:56:11 -05:00
generate_usb_vif
gitlint gitlint: do not allow treewide as an area in commit messages 2024-04-10 09:22:24 +02:00
kconfig scripts: kconfig: Add dt_compat_any_has_prop 2024-06-06 20:08:27 -04:00
logging/dictionary scripts: logging: support native_posix dictionary logging 2024-04-12 11:54:18 +02:00
native_simulator native_simulator: Rework fuzzing support 2024-05-02 20:46:03 +03:00
net tests|scripts/net: Change native_posix references to native_sim 2024-03-20 15:43:05 +01:00
pylib scripts: twister: help - change help text to match hwmv2 2024-06-11 16:18:15 +02:00
pylint/checkers
release
schemas Twister: Rework integration with renode-test 2024-05-28 12:54:52 +02:00
support
tests twister: hardwaremap: avoid exceptions when generating hardware map 2024-06-06 07:50:51 -04:00
tracing
utils doc: release: posix: deprecate non-normative POSIX Kconfig 2024-06-04 16:27:12 -05:00
west_commands scripts: nrf_common: Handle SUIT artifacts 2024-06-10 17:03:14 +03:00
.gitignore
checkpatch.pl scripts/checkpatch: Improve blank line check after declarations 2024-04-19 17:03:49 +00:00
checkstack.pl
coccicheck
dump_bugs_pickle.py
gen_gcov_files.py
get_maintainer.py MAINTAINERS: add 2 new keys: tags, tests 2023-12-22 09:54:12 +01:00
github_helpers.py
list_boards.py scripts: Loader change 2024-05-07 09:38:00 +02:00
list_hardware.py scripts: Loader change 2024-05-07 09:38:00 +02:00
list_shields.py scripts: list_shields: add script for listing the supported shields 2024-05-21 16:47:24 -04:00
make_bugs_pickle.py
requirements-base.txt scripts: dts: update pyyaml version 2024-03-29 09:03:34 -04:00
requirements-build-test.txt scripts: coverage: gcovr to ignore negative counters 2023-11-03 07:57:10 -04:00
requirements-compliance.txt requirements: Set min version of pylint to 3 2024-05-26 21:02:21 +03:00
requirements-extras.txt scripts/requirements: bump imgtool to 2.0.0 2024-02-12 23:26:04 +01:00
requirements-run-test.txt scripts: requirements: run-tests: add python-can 2024-06-03 15:37:49 +02:00
requirements.txt
series-push-hook.sh
set_assignees.py scripts: set_assignees.py: Use "size: XS" label for one-liners 2024-06-06 20:06:47 -04:00
snippets.py terminology: adopt CMake, python, and Kconfig code to use qualifiers 2024-03-21 15:32:17 +01:00
spelling.txt spelling: Replace occurrences of "iff" with "if and only if" 2024-05-06 14:58:08 +01:00
tags.sh
twister twister: Add Twister execution options to twister.json 2024-05-15 14:56:59 +02:00
valgrind.supp valgrind: Update POSIX soc no cpu cleanup suppression 2023-11-29 15:33:49 +01:00
west-commands.yml West: Add west robot command 2024-05-28 12:54:52 +02:00
zephyr_module.py scripts: Loader change 2024-05-07 09:38:00 +02:00