zephyr/scripts
Martí Bolívar ffa1515978 dtlib: fix issue which allowed invalid node names
Node names are subject to the rules in table 2.1 of the devicetree
specification v0.3, while properties are subject to rules in table
2.2. These rules mean that some property names are invalid node names.

However, the same regular expression is being used to validate the
names of nodes and properties in dtlib. This leads to invalid node
names being allowed to pass. Fix this issue by moving the node name
handling code to the Node constructor and checking against the
characters in table 2.1.

The test cases claim that the existing behavior matches dtc. I can't
reproduce that. I get errors when I use invalid characters (like "?")
in a node name. For example:

foo.dts:3.8-11: ERROR (node_name_chars): /node?: Bad character '?' in
node name

Try to make the dtlib error message reminiscent of that.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-08-31 19:36:31 -04:00
..
checkpatch kernel: add an architecture specific structs header 2021-04-21 09:03:47 -04:00
ci armclang: ARM Compiler C library support 2021-08-30 08:54:23 -04:00
coccinelle coccinelle: check reserved symbols based on a file 2021-04-30 22:09:43 -04:00
coredump scripts: coredump: rename parser to avoid conflict with builtin module 2021-07-19 21:14:16 +03:00
dts dtlib: fix issue which allowed invalid node names 2021-08-31 19:36:31 -04:00
footprint scripts: Track memory footprint for networking samples on frdm_k64f 2021-08-03 07:10:09 -04:00
gitlint
kconfig kernel: remove object tracing 2021-05-07 22:10:21 -04:00
logging/dictionary scripts: colorize parsed dictionary logging 2021-07-16 21:34:06 -04:00
net
pylib/twister twister: Fix bug re-running all tests when using test-only 2021-08-20 18:58:47 -04:00
release
schemas/twister sanitycheck: Add a feature which can handle pytest script. 2021-05-04 19:08:18 -04:00
support
tests twister: remove toolchain test 2021-06-11 08:16:41 -04:00
tracing
west_commands west: sign: add support for NXP i.MX 2021-08-28 23:27:02 -04:00
.gitignore cleanup: rename sanitycheck references to twister 2021-01-14 07:50:52 -06:00
checkpatch.pl scripts: checkpatch: do not require top-level Makefile 2021-03-29 10:59:28 -04:00
checkstack.pl
coccicheck
dir_is_writeable.py
file2hex.py
gen_app_partitions.py kernel: app_smem: allowing pinning memory partitions 2021-08-26 21:16:22 -04:00
gen_cfb_font_header.py
gen_gcov_files.py
gen_handles.py scripts: gen_handles.py: take device start symbol as argument. 2021-08-30 08:54:23 -04:00
gen_kobject_list.py kernel: app_smem: allowing pinning memory partitions 2021-08-26 21:16:22 -04:00
gen_kobject_placeholders.py kernel: generate placeholders for kobj tables before final build 2021-04-27 13:32:00 -04:00
gen_offset_header.py
gen_relocate_app.py scripts: Set align size for code relocated 2021-05-04 15:46:52 +02:00
gen_syscalls.py kernel: syscall: pin generated inline functions 2021-08-26 21:16:22 -04:00
get_maintainer.py
list_boards.py scripts: list_boards: handle boards dirs with subset of architectures 2021-06-11 16:26:30 +02:00
mergehex.py
parse_syscalls.py
process_gperf.py
requirements-base.txt requirements: bump west to >=0.10.1 2021-05-18 09:52:12 -05:00
requirements-build-test.txt scripts: move pip pykwalify from requirements-build-test to -base 2021-01-18 16:56:24 -05:00
requirements-compliance.txt requirements-compliance: restrict junitparser version < 2 2021-01-13 07:58:37 -05:00
requirements-doc.txt requirements-doc: add PyYAML which removes dependency on -base 2021-06-16 10:39:08 +02:00
requirements-extras.txt modules: nanopb: introduce new module 2021-04-08 14:57:55 +02:00
requirements-run-test.txt requirements: Update to pyocd 0.29 for LPC55S69 support 2021-01-21 15:53:22 -05:00
requirements.txt
series-push-hook.sh scripts: series-push-hook: Use main as base comparison branch 2021-05-27 15:55:43 -05:00
spelling.txt
subfolder_list.py
tags.sh scripts: Update paths on tags.sh 2021-02-19 05:28:09 -06:00
twister twister: improve set balancing 2021-04-22 21:15:07 -04:00
uf2conv.py cmake: Add UF2 as an additional build output option. 2021-02-23 21:11:04 +01:00
user_wordsize.py
valgrind.supp
west-commands.yml west: spdx: Generate SPDX 2.2 tag-value documents 2021-05-05 11:14:06 -04:00
zephyr_module.py cmake: add a comment header to zephyr_settings.txt 2021-08-10 07:37:19 -04:00