diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-05-10 16:35:39 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2016-05-11 01:57:59 +0200 |
commit | b9afc86b5c2af0034614f3c28c502459c635d7f6 (patch) | |
tree | 3df8096d06af914f5c3c63d4dafb3f44b1c1f251 /package/system | |
parent | 86777a40e9f0d6c0cf5fe7170cbd586d5379bec6 (diff) | |
download | mtk-20170518-b9afc86b5c2af0034614f3c28c502459c635d7f6.zip mtk-20170518-b9afc86b5c2af0034614f3c28c502459c635d7f6.tar.gz mtk-20170518-b9afc86b5c2af0034614f3c28c502459c635d7f6.tar.bz2 |
mtd: imagetag: fix compilation with changed mtd_fixtrx call
Function mtd_fixtrx was changed during trx improvements.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Diffstat (limited to 'package/system')
-rw-r--r-- | package/system/mtd/src/imagetag.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/package/system/mtd/src/imagetag.c b/package/system/mtd/src/imagetag.c index b850837..2ad2076 100644 --- a/package/system/mtd/src/imagetag.c +++ b/package/system/mtd/src/imagetag.c @@ -288,7 +288,7 @@ trx_check(int imagefd, const char *mtd, char *buf, int *len) } int -mtd_fixtrx(const char *mtd, size_t offset) +mtd_fixtrx(const char *mtd, size_t offset, size_t data_size) { int fd; struct bcm_tag *tag; @@ -299,6 +299,9 @@ mtd_fixtrx(const char *mtd, size_t offset) uint32_t imagecrc, rootfscrc, headercrc; cfelen = imagelen = imagestart = imagecrc = rootfscrc = headercrc = rootfslen = 0; + if (data_size) + fprintf(stderr, "Specifying data size in unsupported for imagetag\n"); + if (quiet < 2) fprintf(stderr, "Trying to fix trx header in %s at 0x%x...\n", mtd, offset); |