mtd: Added trx_fixup for brcm63xx imagetag, and made references to fix_trx use the weak reference rather than the brcm47xx ifdef. This fixes a bug in which sysupgrade failed due to changing bad CRC on reboot.
Signed-off-by: Daniel Dickinson <daniel@cshore.neomailbox.net> SVN-Revision: 24837
This commit is contained in:
@@ -244,9 +244,9 @@ int mtd_replace_jffs2(const char *mtd, int fd, int ofs, const char *filename)
|
||||
pad(erasesize);
|
||||
free(buf);
|
||||
|
||||
#ifdef target_brcm
|
||||
trx_fixup(outfd, mtd);
|
||||
#endif
|
||||
if (trx_fixup) {
|
||||
trx_fixup(outfd, mtd);
|
||||
}
|
||||
return (mtdofs - ofs);
|
||||
}
|
||||
|
||||
@@ -347,9 +347,9 @@ int mtd_write_jffs2(const char *mtd, const char *filename, const char *dir)
|
||||
|
||||
err = 0;
|
||||
|
||||
#ifdef target_brcm
|
||||
trx_fixup(outfd, mtd);
|
||||
#endif
|
||||
if (trx_fixup) {
|
||||
trx_fixup(outfd, mtd);
|
||||
}
|
||||
|
||||
done:
|
||||
close(outfd);
|
||||
|
||||
Reference in New Issue
Block a user