From: Petr Hodina <[email protected]>

Add two copies of fit/fdt.dts whose @fdt-SEQ template asks for "lzma"
and for an unsupported algorithm ("bzip2").

Signed-off-by: Petr Hodina <[email protected]>
---
 tools/binman/test/fit/fdt_bad_comp.dts | 72 ++++++++++++++++++++++++++++++++++
 tools/binman/test/fit/fdt_lzma.dts     | 72 ++++++++++++++++++++++++++++++++++
 2 files changed, 144 insertions(+)

diff --git a/tools/binman/test/fit/fdt_bad_comp.dts 
b/tools/binman/test/fit/fdt_bad_comp.dts
new file mode 100644
index 00000000000..26a74895ac7
--- /dev/null
+++ b/tools/binman/test/fit/fdt_bad_comp.dts
@@ -0,0 +1,72 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/dts-v1/;
+
+/ {
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       binman {
+               u-boot {
+               };
+               fit {
+                       description = "test-desc";
+                       #address-cells = <1>;
+                       fit,fdt-list = "of-list";
+
+                       images {
+                               atf {
+                                       description = "atf firmware";
+                                       type = "firmware";
+                                       compression = "none";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                               };
+                               uboot {
+                                       description = "U-Boot firmware";
+                                       type = "firmware";
+                                       compression = "none";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                               };
+                               kernel {
+                                       description = "Vanilla Linux kernel";
+                                       type = "kernel";
+                                       arch = "ppc";
+                                       os = "linux";
+                                       compression = "gzip";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                                       hash-1 {
+                                               algo = "crc32";
+                                       };
+                                       hash-2 {
+                                               algo = "sha1";
+                                       };
+                                       u-boot {
+                                       };
+                               };
+                               @fdt-SEQ {
+                                       description = "fdt-NAME.dtb";
+                                       type = "flat_dt";
+                                       compression = "bzip2";
+                                       hash {
+                                               algo = "sha256";
+                                       };
+                               };
+                       };
+
+                       configurations {
+                               default = "@config-DEFAULT-SEQ";
+                               @config-SEQ {
+                                       description = "conf-NAME.dtb";
+                                       firmware = "uboot";
+                                       loadables = "atf";
+                                       fdt = "fdt-SEQ";
+                               };
+                       };
+               };
+               u-boot-nodtb {
+               };
+       };
+};
diff --git a/tools/binman/test/fit/fdt_lzma.dts 
b/tools/binman/test/fit/fdt_lzma.dts
new file mode 100644
index 00000000000..1a25ded4b8b
--- /dev/null
+++ b/tools/binman/test/fit/fdt_lzma.dts
@@ -0,0 +1,72 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/dts-v1/;
+
+/ {
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       binman {
+               u-boot {
+               };
+               fit {
+                       description = "test-desc";
+                       #address-cells = <1>;
+                       fit,fdt-list = "of-list";
+
+                       images {
+                               atf {
+                                       description = "atf firmware";
+                                       type = "firmware";
+                                       compression = "none";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                               };
+                               uboot {
+                                       description = "U-Boot firmware";
+                                       type = "firmware";
+                                       compression = "none";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                               };
+                               kernel {
+                                       description = "Vanilla Linux kernel";
+                                       type = "kernel";
+                                       arch = "ppc";
+                                       os = "linux";
+                                       compression = "gzip";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                                       hash-1 {
+                                               algo = "crc32";
+                                       };
+                                       hash-2 {
+                                               algo = "sha1";
+                                       };
+                                       u-boot {
+                                       };
+                               };
+                               @fdt-SEQ {
+                                       description = "fdt-NAME.dtb";
+                                       type = "flat_dt";
+                                       compression = "lzma";
+                                       hash {
+                                               algo = "sha256";
+                                       };
+                               };
+                       };
+
+                       configurations {
+                               default = "@config-DEFAULT-SEQ";
+                               @config-SEQ {
+                                       description = "conf-NAME.dtb";
+                                       firmware = "uboot";
+                                       loadables = "atf";
+                                       fdt = "fdt-SEQ";
+                               };
+                       };
+               };
+               u-boot-nodtb {
+               };
+       };
+};

-- 
2.55.0


Reply via email to