From: Sebastien Bourdeauducq Date: Mon, 21 May 2012 20:01:57 +0000 (+0200) Subject: tools/mkmmimg: remove LZMA option X-Git-Tag: 24jan2021_ls180~3183 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9958aab342f8baeb40948ebc2d8abef93f4d6dd3;p=litex.git tools/mkmmimg: remove LZMA option --- diff --git a/tools/mkmmimg.c b/tools/mkmmimg.c index 31ff4016..e3ad7309 100644 --- a/tools/mkmmimg.c +++ b/tools/mkmmimg.c @@ -1,6 +1,6 @@ /* * CRC32 computation tool and Milkymist image file writer - * (c) 2009, 2010, Sebastien Bourdeauducq + * (c) 2009, 2010, 2012 Sebastien Bourdeauducq * Released under GNU GPL v3 * This file is part of Milkymist. */ @@ -102,8 +102,8 @@ int main(int argc, char *argv[]) unsigned int crc; if(((argc != 2) && (argc != 3) && (argc != 4)) - || ((argc > 2) && (strcmp(argv[2], "write") && (strcmp(argv[2], "writelzma"))))) { - fprintf(stderr, "Usage: mkmmimg [write[lzma]] [dest]\n"); + || ((argc > 2) && (strcmp(argv[2], "write")))) { + fprintf(stderr, "Usage: mkmmimg [write] [dest]\n"); return 1; } @@ -155,8 +155,6 @@ int main(int argc, char *argv[]) b[1] = (length & 0x00ff0000) >> 16; b[2] = (length & 0x0000ff00) >> 8; b[3] = (length & 0x000000ff) >> 0; - if(strcmp(argv[2], "writelzma") == 0) - b[0] |= 0x80; write(fd_out, &b[0], 4); b[0] = (crc & 0xff000000) >> 24; b[1] = (crc & 0x00ff0000) >> 16;