diff options
author | Mathias Kresin <dev@kresin.me> | 2019-01-05 12:08:09 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2019-01-13 18:31:10 +0100 |
commit | f4aa9d8839958c39d24d7cca3d3215efad98a1e2 (patch) | |
tree | e26603d7cd8bef807659228cde6acbe8ef1f3857 /tools/firmware-utils/src/mkdlinkfw-lib.h | |
parent | 055cdab2bb229e39e8a4acaf096356d0c481a1f4 (diff) | |
download | upstream-f4aa9d8839958c39d24d7cca3d3215efad98a1e2.tar.gz upstream-f4aa9d8839958c39d24d7cca3d3215efad98a1e2.tar.bz2 upstream-f4aa9d8839958c39d24d7cca3d3215efad98a1e2.zip |
firmware-utils: mkdlinkfw: cleanup code
Drop unused function and macros. With the cleanup the gnu extension
typeof isn't used any longer and the gnu99 compile flag can be dropped.
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'tools/firmware-utils/src/mkdlinkfw-lib.h')
-rw-r--r-- | tools/firmware-utils/src/mkdlinkfw-lib.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/firmware-utils/src/mkdlinkfw-lib.h b/tools/firmware-utils/src/mkdlinkfw-lib.h index d61124cb63..da4ecf010c 100644 --- a/tools/firmware-utils/src/mkdlinkfw-lib.h +++ b/tools/firmware-utils/src/mkdlinkfw-lib.h @@ -33,6 +33,10 @@ #define SCH2_MAGIC 0x2124 #define SCH2_VER 0x02 +/* + * compression type values in the header + * so far onlysupport for LZMA is added + */ #define FLAT 0 #define JZ 1 #define GZIP 2 @@ -49,8 +53,6 @@ #define FACTORY 0 #define SYSUPGRADE 1 -#define ALIGN(x, a) ({ typeof(a) __a = (a); (((x) + __a - 1) & ~(__a - 1)); }) - #define ERR(fmt, ...) do { \ fflush(0); \ fprintf(stderr, "[%s] *** error: " fmt "\n", \ @@ -77,7 +79,6 @@ uint32_t jboot_timestamp(void); uint16_t jboot_checksum(uint16_t start_val, uint16_t *data, int size); int get_file_stat(struct file_info *fdata); int read_to_buf(const struct file_info *fdata, char *buf); -int pad_jffs2(char *buf, int currlen, int maxlen); int write_fw(const char *ofname, const char *data, int len); #endif /* mkdlinkfw_lib_h */ |