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

Commit 3960ec22 authored by Colin Cross's avatar Colin Cross Committed by Gerrit Code Review
Browse files

Merge "mkbootimg: support 8192/16384 pagesizes"

parents fd5c6b9f 81ce3a79
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;
            }