mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-03-04 21:41:30 +01:00
Dynamically going through the subnode array and deleting leads to templates being skipped from deletion when templates are consecutive in the subnode list. Prevent this from happening by first parsing the DT and then deleting the nodes. Add a testcase as well for this cornercase. Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
50 lines
756 B
Plaintext
50 lines
756 B
Plaintext
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
/dts-v1/;
|
|
/ {
|
|
binman: binman {
|
|
multiple-images;
|
|
|
|
template_1: template-1 {
|
|
section {
|
|
phandle1: my-blob.bin {
|
|
filename = "my-blob.bin";
|
|
type = "blob-ext";
|
|
};
|
|
};
|
|
};
|
|
template_2: template-2 {
|
|
section {
|
|
ti-secure {
|
|
content = <&phandle2>;
|
|
keyfile = "key.pem";
|
|
};
|
|
phandle2: my-blob.bin {
|
|
filename = "my-blob.bin";
|
|
type = "blob-ext";
|
|
};
|
|
};
|
|
};
|
|
template_3: template-3 {
|
|
section {
|
|
phandle3: my-blob.bin {
|
|
filename = "my-blob.bin";
|
|
type = "blob-ext";
|
|
};
|
|
};
|
|
};
|
|
|
|
file1 {
|
|
insert-template = <&template_1>;
|
|
};
|
|
|
|
file2 {
|
|
insert-template = <&template_2>;
|
|
};
|
|
|
|
file3 {
|
|
insert-template = <&template_3>;
|
|
};
|
|
};
|
|
};
|