Skip to content

Commit 51cf415

Browse files
nordicjmkartben
authored andcommitted
scripts: dts: gen_defines: Add support for fixed-subpartitions
Adds support for generating defines for this binding type Signed-off-by: Jamie McCrae <[email protected]>
1 parent f85d017 commit 51cf415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/dts/gen_defines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ def write_pinctrls(node: edtlib.Node) -> None:
554554
def write_fixed_partitions(node: edtlib.Node) -> None:
555555
# Macros for child nodes of each fixed-partitions node.
556556

557-
if not (node.parent and "fixed-partitions" in node.parent.compats):
557+
if not (node.parent and ("fixed-partitions" in node.parent.compats or "fixed-subpartitions" in node.parent.compats)):
558558
return
559559

560560
global flash_area_num

0 commit comments

Comments
 (0)