Skip to content

Commit 14b3285

Browse files
committed
fdt: parse_dts: skip props "phandle" and "linux,phandle"
1 parent a7c0d69 commit 14b3285

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fdt/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,10 @@ def parse_dts(text: str, root_dir: str = '', is_only_diff: bool = False) -> FDT:
435435
prop_name = line[0].rstrip(' ')
436436
prop_value = line[1].lstrip(' ')
437437

438+
if prop_name == 'phandle' or \
439+
prop_name == 'linux,phandle':
440+
continue
441+
438442
if is_only_diff:
439443
prop_obj = PropVariables(prop_name, prop_value)
440444
else:

0 commit comments

Comments
 (0)