X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=common%2Fbootm.c;h=58936ca4978a9e3914abdfd415b84c133b73cfe9;hb=9f29aeb89de8199ebaea9995dbb30ea5fa2f1085;hp=c0d0d09411f0df2886db4fcec75a11ffae6ca23a;hpb=2959f936c57239aab38e4e5df92c5451a62f36d6;p=oweals%2Fu-boot.git diff --git a/common/bootm.c b/common/bootm.c index c0d0d09411..58936ca497 100644 --- a/common/bootm.c +++ b/common/bootm.c @@ -389,6 +389,15 @@ int bootm_decomp_image(int comp, ulong load, ulong image_start, int type, break; } #endif /* CONFIG_LZO */ +#ifdef CONFIG_LZ4 + case IH_COMP_LZ4: { + size_t size = unc_len; + + ret = ulz4fn(image_buf, image_len, load_buf, &size); + image_len = size; + break; + } +#endif /* CONFIG_LZ4 */ default: printf("Unimplemented compression type %d\n", comp); return BOOTM_ERR_UNIMPLEMENTED;