diff options
| author | ChampionSwimmer <android@championswimmer.tk> | 2013-03-05 00:36:05 +0530 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2013-03-24 15:38:11 -0700 |
| commit | d33ce433dda9ac4edb69d37407c6c6eb335c3aee (patch) | |
| tree | 481f82cb9bf4c5512954c33e0eed431b154a50d9 | |
| parent | f7eba0c3a8779dd09f858871718166569694f9cc (diff) | |
| download | system_core-d33ce433dda9ac4edb69d37407c6c6eb335c3aee.tar.gz system_core-d33ce433dda9ac4edb69d37407c6c6eb335c3aee.tar.bz2 system_core-d33ce433dda9ac4edb69d37407c6c6eb335c3aee.zip | |
add 8K 16K 32K 64K and 128K pagesizes in bootimage
Ported from jellybean (was Change-Id: I4bc74ad6b0a473de68c906422bcd7eac00c89793)
http://review.cyanogenmod.org/33216
Signed-off-by: ChampionSwimmer <android@championswimmer.tk>
Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
Change-Id: I0ee608b74a1daefe536b9247f99368f3e043f93d
| -rw-r--r-- | mkbootimg/mkbootimg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mkbootimg/mkbootimg.c b/mkbootimg/mkbootimg.c index 988a637c..e7c29181 100644 --- a/mkbootimg/mkbootimg.c +++ b/mkbootimg/mkbootimg.c @@ -73,7 +73,7 @@ int usage(void) -static unsigned char padding[4096] = { 0, }; +static unsigned char padding[131072] = { 0, }; int write_padding(int fd, unsigned pagesize, unsigned itemsize) { @@ -153,7 +153,7 @@ 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) && (pagesize != 32768) && (pagesize != 65536) && (pagesize != 131072)) { fprintf(stderr,"error: unsupported page size %d\n", pagesize); return -1; } |
