diff options
author | Colin Cross <ccross@android.com> | 2013-03-12 21:47:47 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-03-12 21:47:47 +0000 |
commit | 3960ec226d07c7327ac6967a2977c521fd4884b6 (patch) | |
tree | 73de3268d123cfd812a8d363da92c9b1a0d84606 | |
parent | fd5c6b9f137940ce2d762c85dfdb4d2f1104f2bd (diff) | |
parent | 81ce3a79ff0d828f8eafc1395851ae535dd151d4 (diff) | |
download | system_core-3960ec226d07c7327ac6967a2977c521fd4884b6.zip system_core-3960ec226d07c7327ac6967a2977c521fd4884b6.tar.gz system_core-3960ec226d07c7327ac6967a2977c521fd4884b6.tar.bz2 |
Merge "mkbootimg: support 8192/16384 pagesizes"
-rw-r--r-- | mkbootimg/mkbootimg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mkbootimg/mkbootimg.c b/mkbootimg/mkbootimg.c index 2c32ce3..34a879b 100644 --- a/mkbootimg/mkbootimg.c +++ b/mkbootimg/mkbootimg.c @@ -72,7 +72,7 @@ int usage(void) -static unsigned char padding[4096] = { 0, }; +static unsigned char padding[16384] = { 0, }; int write_padding(int fd, unsigned pagesize, unsigned itemsize) { @@ -152,7 +152,8 @@ int main(int argc, char **argv) board = val; } else if(!strcmp(arg,"--pagesize")) { pagesize = strtoul(val, 0, 10); - if ((pagesize != 2048) && (pagesize != 4096)) { + if ((pagesize != 2048) && (pagesize != 4096) + && (pagesize != 8192) && (pagesize != 16384)) { fprintf(stderr,"error: unsupported page size %d\n", pagesize); return -1; } |