c4cb12e193
This patch allows dtc to accept multiple /dts-v1/ tags (provided they're all at the beginning of the input), rather than giving a syntax error. This makes it more convenient to include one .dts file from another without having to be careful that the /dts-v1/ tag is in exactly one of them. We a couple of existing testcases to take advantage of this, which simplifies them slightly. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
68 lines
732 B
Text
68 lines
732 B
Text
/dts-v1/;
|
|
|
|
/include/ "test_tree1.dts"
|
|
|
|
/ {
|
|
nonexistant-property = <0xdeadbeef>;
|
|
|
|
nonexistant-subnode {
|
|
prop-int = <1>;
|
|
};
|
|
|
|
dellabel: deleted-by-label {
|
|
prop-int = <1>;
|
|
};
|
|
|
|
subnode@1 {
|
|
delete-this-str = "deadbeef";
|
|
};
|
|
|
|
};
|
|
|
|
/ {
|
|
/delete-property/ nonexistant-property;
|
|
|
|
/delete-node/ nonexistant-subnode;
|
|
|
|
subnode@1 {
|
|
/delete-property/ delete-this-str;
|
|
};
|
|
};
|
|
|
|
/delete-node/ &dellabel;
|
|
|
|
/ {
|
|
/delete-property/ prop-str;
|
|
};
|
|
|
|
/ {
|
|
prop-str = "hello world";
|
|
};
|
|
|
|
/ {
|
|
subnode@1 {
|
|
/delete-node/ ss1;
|
|
};
|
|
};
|
|
|
|
/ {
|
|
subnode@1 {
|
|
ss1 {
|
|
};
|
|
};
|
|
};
|
|
|
|
/{
|
|
duplabel1: foo1 = "bar";
|
|
duplabel2: foo2 = "bar";
|
|
};
|
|
|
|
/{
|
|
duplabel1: baz1 = "qux";
|
|
duplabel2: baz2 = "qux";
|
|
};
|
|
|
|
/{
|
|
/delete-property/ foo1;
|
|
/delete-property/ baz2;
|
|
};
|