Skip to contentSkip to conversation

cmd: Add unlz4 command

PATCH New Yusuke Ashiduka 2 participants 2 messages Feb 20, 2020 – Apr 21, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd: Add unlz4 command

This command is a new command called "unlz4" that decompresses from memory into memory.
Used with the CONFIG_CMD_UNLZ4 optionenabled.

---
 cmd/Kconfig  |  7 +++++++
 cmd/Makefile |  1 +
 cmd/unlz4.c  | 45 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 53 insertions(+)
 create mode 100644 cmd/unlz4.c
cmd/Kconfig +7 -0
index 6403bc45a5..3607edd2d2 100644
@@ -769,6 +769,13 @@ config CMD_LZMADEC
 	  Support decompressing an LZMA (Lempel-Ziv-Markov chain algorithm)
 	  image from memory.
 
+config CMD_UNLZ4
+	bool "unlz4"
+	default y if CMD_BOOTI
+	select LZ4
+	help
+	  Support decompressing an LZ4 image from memory region.
+
 config CMD_UNZIP
 	bool "unzip"
 	default y if CMD_BOOTI
cmd/Makefile +1 -0
index f1dd513a4b..6692ed96c6 100644
@@ -144,6 +144,7 @@ obj-$(CONFIG_CMD_TSI148) += tsi148.o
 obj-$(CONFIG_CMD_UBI) += ubi.o
 obj-$(CONFIG_CMD_UBIFS) += ubifs.o
 obj-$(CONFIG_CMD_UNIVERSE) += universe.o
+obj-$(CONFIG_CMD_UNLZ4) += unlz4.o
 obj-$(CONFIG_CMD_UNZIP) += unzip.o
 obj-$(CONFIG_CMD_VIRTIO) += virtio.o
 obj-$(CONFIG_CMD_WDT) += wdt.o
cmd/unlz4.c new file +45 -0

45 lines not on this page · raw message

Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 cmd: Add unlz4 command

Quoted 5 lines · Yusuke Ashiduka

This command is a new command called "unlz4" that decompresses from memory into memory.
Used with the CONFIG_CMD_UNLZ4 optionenabled.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200421/46712681/attachment.sig>