summaryrefslogtreecommitdiff
path: root/tools/binman/test
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-07-20 12:24:15 -0600
committerSimon Glass <sjg@chromium.org>2019-07-29 09:38:06 -0600
commita6cb995096c40ecd6597e20d792851ac7f80004e (patch)
tree53c627ff17381b4eceeb0156e226c4602ed07b2c /tools/binman/test
parentbb5edc1d3c0ebc989dfaa7d1e57cdde15d61f2e0 (diff)
downloadu-boot-a6cb995096c40ecd6597e20d792851ac7f80004e.tar.gz
binman: Add command-line support for replacing entries
Add a 'replace' command to binman to permit entries to be replaced, either individually or all at once (using a filter). Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/test')
-rw-r--r--tools/binman/test/143_replace_all.dts28
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/binman/test/143_replace_all.dts b/tools/binman/test/143_replace_all.dts
new file mode 100644
index 0000000000..c5744a3c1c
--- /dev/null
+++ b/tools/binman/test/143_replace_all.dts
@@ -0,0 +1,28 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/dts-v1/;
+
+/ {
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ binman {
+ size = <0xc00>;
+ allow-repack;
+ u-boot {
+ };
+ fdtmap {
+ };
+ u-boot2 {
+ type = "u-boot";
+ };
+ text {
+ text = "some text";
+ };
+ u-boot-dtb {
+ };
+ image-header {
+ location = "end";
+ };
+ };
+};