Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d33ce433 authored by ChampionSwimmer's avatar ChampionSwimmer Committed by Gerrit Code Review
Browse files

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: default avatarChampionSwimmer <android@championswimmer.tk>
Signed-off-by: default avatarMichael Bestas <mikeioannina@gmail.com>

Change-Id: I0ee608b74a1daefe536b9247f99368f3e043f93d
parent f7eba0c3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
            }