summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-09-20 08:28:18 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-09-20 08:28:18 +0000
commit6d1d9bed3ea567c74d787c0450c6de193e232851 (patch)
treefe406086d25f5f7956880c91ae45f599cbe1bf79 /tools
parentfc30b183c826ce006b531a24acfb3484bdd9871b (diff)
Integrate mknkboot into beastpatcher.
Add a new option to beastpatcher to patch and upload an original firmware file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22745 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rw-r--r--tools/mknkboot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/mknkboot.c b/tools/mknkboot.c
index f17d1e9070..e63840427e 100644
--- a/tools/mknkboot.c
+++ b/tools/mknkboot.c
@@ -124,6 +124,7 @@ static void put_uint32le(uint32_t x, unsigned char* p)
p[3] = (x >> 24) & 0xff;
}
+#if !defined(BEASTPATCHER)
static off_t filesize(int fd) {
struct stat buf;
@@ -134,6 +135,7 @@ static off_t filesize(int fd) {
return(buf.st_size);
}
}
+#endif
int mknkboot(const struct filebuf *indata, const struct filebuf *bootdata,