summaryrefslogtreecommitdiff
path: root/tools/binman/test/184_compress_section_size.dts
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-10-27 02:40:25 +0300
committerSimon Glass <sjg@chromium.org>2020-10-29 23:42:59 +0300
commit8f5ef89f00133df6381e60f0415269ded39647c1 (patch)
treeb498fd32d47a0eddea9c9dd48f9f81db6cb6990b /tools/binman/test/184_compress_section_size.dts
parent0ff83da634c4e4a8e510c5b2434cab88cb33c164 (diff)
downloadu-boot-8f5ef89f00133df6381e60f0415269ded39647c1.tar.xz
binman: Support compression of sections
With the previous changes, it is now possible to compress entire sections. Add some tests to check that compression works correctly, including updating the metadata. Also update the documentation. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/test/184_compress_section_size.dts')
-rw-r--r--tools/binman/test/184_compress_section_size.dts17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/binman/test/184_compress_section_size.dts b/tools/binman/test/184_compress_section_size.dts
new file mode 100644
index 0000000000..95ed30add1
--- /dev/null
+++ b/tools/binman/test/184_compress_section_size.dts
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: GPL-2.0+
+/dts-v1/;
+
+/ {
+ binman {
+ section {
+ size = <0x30>;
+ compress = "lz4";
+ blob {
+ filename = "compress";
+ };
+
+ u-boot {
+ };
+ };
+ };
+};