mirror of
https://github.com/dgibson/dtc.git
synced 2025-12-08 12:45:29 -05:00
Allow device tree to be modified by additonal device tree sections
This patch allows the following construct:
/ {
property-a = "old";
property-b = "does not change";
};
/ {
property-a = "changed";
property-c = "new";
node-a {
};
};
Where the later device tree overrides the properties found in the
earlier tree. This is useful for laying down a template device tree
in an include file and modifying it for a specific board without having
to clone the entire tree.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
parent
716418849a
commit
83da1b2a4e
7 changed files with 214 additions and 6 deletions
|
|
@ -297,6 +297,13 @@ dtc_tests () {
|
|||
done
|
||||
done
|
||||
|
||||
# Check merge/overlay functionality
|
||||
run_dtc_test -I dts -O dtb -o dtc_tree1_merge.test.dtb test_tree1_merge.dts
|
||||
tree1_tests dtc_tree1_merge.test.dtb test_tree1.dtb
|
||||
run_dtc_test -I dts -O dtb -o multilabel_merge.test.dtb multilabel_merge.dts
|
||||
run_test references multilabel.test.dtb
|
||||
run_test dtbs_equal_ordered multilabel.test.dtb multilabel_merge.test.dtb
|
||||
|
||||
# Check some checks
|
||||
check_tests dup-nodename.dts duplicate_node_names
|
||||
check_tests dup-propname.dts duplicate_property_names
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue