diff options
author | Thibaut VARÈNE <hacks@slashdirt.org> | 2017-10-03 20:19:52 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-10-06 08:28:41 +0200 |
commit | 9e768b9aac2367057fc8d6b7d07ea456b5433b9d (patch) | |
tree | 20014481111a09f6799e5f2a00ed916854146686 /tools/firmware-utils/src/mktplinkfw-lib.h | |
parent | 10324fcb3992cdf40db651ae6ad0b3cda670d81b (diff) | |
download | upstream-9e768b9aac2367057fc8d6b7d07ea456b5433b9d.tar.gz upstream-9e768b9aac2367057fc8d6b7d07ea456b5433b9d.tar.bz2 upstream-9e768b9aac2367057fc8d6b7d07ea456b5433b9d.zip |
tools/firmware-utils: mktplinkfw move build_fw() to lib
This patch moves build_fw() to mktplinkfw-lib.c
The versions of mktplinkfw.c and mktplinkfw2.c had slight
differences in code flow, the version from mktplinkfw.c has been
preferred.
While it's expected that this change will not affect mktplinkfw2,
all use cases could not be tested and so this particular change
is committed separately.
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Diffstat (limited to 'tools/firmware-utils/src/mktplinkfw-lib.h')
-rw-r--r-- | tools/firmware-utils/src/mktplinkfw-lib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/mktplinkfw-lib.h b/tools/firmware-utils/src/mktplinkfw-lib.h index 38fe065c1a..31e6d0b1e6 100644 --- a/tools/firmware-utils/src/mktplinkfw-lib.h +++ b/tools/firmware-utils/src/mktplinkfw-lib.h @@ -58,11 +58,11 @@ struct flash_layout *find_layout(struct flash_layout *layouts, const char *id); void get_md5(const char *data, int size, uint8_t *md5); 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); inline void inspect_fw_pstr(const char *label, const char *str); inline void inspect_fw_phex(const char *label, uint32_t val); inline void inspect_fw_phexdec(const char *label, uint32_t val); inline void inspect_fw_pmd5sum(const char *label, const uint8_t *val, const char *text); +int build_fw(size_t header_size); #endif /* mktplinkfw_lib_h */ |