projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added OpenWRT-specific field to imagetag so that we can record the real root length...
[openwrt/svn-archive/archive.git]
/
tools
/
firmware-utils
/
src
/
imagetag.c
diff --git
a/tools/firmware-utils/src/imagetag.c
b/tools/firmware-utils/src/imagetag.c
index 1818daaca1d8b2e850a51ddb02b3406e13c28d1b..a7b9babd3e911f98e91f8893f2dc359f6a8ea43a 100644
(file)
--- a/
tools/firmware-utils/src/imagetag.c
+++ b/
tools/firmware-utils/src/imagetag.c
@@
-338,11
+338,12
@@
int tagfile(const char *kernel, const char *rootfs, const char *bin, \
if (args->root_first_flag) {
sprintf(tag.flashImageStart, "%lu", rootfsoff);
if (args->root_first_flag) {
sprintf(tag.flashImageStart, "%lu", rootfsoff);
- sprintf(tag.
rootLength, "%lu", rootfslen);
+ sprintf(tag.
flashRootLength, "%lu", rootfslen);
} else {
sprintf(tag.flashImageStart, "%lu", kerneloff);
} else {
sprintf(tag.flashImageStart, "%lu", kerneloff);
- sprintf(tag.
r
ootLength, "%lu", rootfslen + sizeof(deadcode));
+ sprintf(tag.
flashR
ootLength, "%lu", rootfslen + sizeof(deadcode));
}
}
+ int2tag(tag.rootLength, rootfslen + sizeof(deadcode));
if (args->rsa_signature_given) {
strncpy(tag.rsa_signature, args->rsa_signature_arg, RSASIG_LEN);
if (args->rsa_signature_given) {
strncpy(tag.rsa_signature, args->rsa_signature_arg, RSASIG_LEN);