summaryrefslogtreecommitdiffstats
path: root/mkbootimg
diff options
context:
space:
mode:
authorMaarten Hooft <mthooft@google.com>2010-08-24 15:24:50 -0700
committerMaarten Hooft <mthooft@google.com>2010-08-24 15:24:50 -0700
commit65e461c478b000246ef81c3ca5fdd2dbb819d7ad (patch)
treec0e7fdb7ae54079135073f60a1848bd6191b57b5 /mkbootimg
parentfc2f7cb69e3f15a616330a69f0675675c68112f3 (diff)
downloadsystem_core-65e461c478b000246ef81c3ca5fdd2dbb819d7ad.zip
system_core-65e461c478b000246ef81c3ca5fdd2dbb819d7ad.tar.gz
system_core-65e461c478b000246ef81c3ca5fdd2dbb819d7ad.tar.bz2
Fix the pagesize argument parsing
Change-Id: I8a3d1a2a70c5ad972d3e150b320ee2184c9d5b4a
Diffstat (limited to 'mkbootimg')
-rw-r--r--mkbootimg/mkbootimg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkbootimg/mkbootimg.c b/mkbootimg/mkbootimg.c
index 47ab5f1..a94cb9c 100644
--- a/mkbootimg/mkbootimg.c
+++ b/mkbootimg/mkbootimg.c
@@ -121,8 +121,6 @@ int main(int argc, char **argv)
hdr.second_addr = 0x10F00000;
hdr.tags_addr = 0x10000100;
- hdr.page_size = pagesize;
-
while(argc > 0){
char *arg = argv[0];
char *val = argv[1];
@@ -159,6 +157,8 @@ int main(int argc, char **argv)
return usage();
}
}
+ hdr.page_size = pagesize;
+
if(bootimg == 0) {
fprintf(stderr,"error: no output filename specified\n");