Permalink
Browse files

Fix the pagesize argument parsing

Change-Id: I8a3d1a2a70c5ad972d3e150b320ee2184c9d5b4a
  • Loading branch information...
Maarten Hooft
Maarten Hooft committed Aug 24, 2010
1 parent fc2f7cb commit 65e461c478b000246ef81c3ca5fdd2dbb819d7ad
Showing with 2 additions and 2 deletions.
  1. +2 −2 mkbootimg/mkbootimg.c
View
@@ -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");

0 comments on commit 65e461c

Please sign in to comment.