summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaarten Hooft2010-08-24 17:24:50 -0500
committerMaarten Hooft2010-08-24 17:24:50 -0500
commit65e461c478b000246ef81c3ca5fdd2dbb819d7ad (patch)
treec0e7fdb7ae54079135073f60a1848bd6191b57b5 /mkbootimg
parentfc2f7cb69e3f15a616330a69f0675675c68112f3 (diff)
downloadplatform-system-core-65e461c478b000246ef81c3ca5fdd2dbb819d7ad.tar.gz
platform-system-core-65e461c478b000246ef81c3ca5fdd2dbb819d7ad.tar.xz
platform-system-core-65e461c478b000246ef81c3ca5fdd2dbb819d7ad.zip
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 47ab5f195..a94cb9c89 100644
--- a/mkbootimg/mkbootimg.c
+++ b/mkbootimg/mkbootimg.c
@@ -121,8 +121,6 @@ int main(int argc, char **argv)
121 hdr.second_addr = 0x10F00000; 121 hdr.second_addr = 0x10F00000;
122 hdr.tags_addr = 0x10000100; 122 hdr.tags_addr = 0x10000100;
123 123
124 hdr.page_size = pagesize;
125
126 while(argc > 0){ 124 while(argc > 0){
127 char *arg = argv[0]; 125 char *arg = argv[0];
128 char *val = argv[1]; 126 char *val = argv[1];
@@ -159,6 +157,8 @@ int main(int argc, char **argv)
159 return usage(); 157 return usage();
160 } 158 }
161 } 159 }
160 hdr.page_size = pagesize;
161
162 162
163 if(bootimg == 0) { 163 if(bootimg == 0) {
164 fprintf(stderr,"error: no output filename specified\n"); 164 fprintf(stderr,"error: no output filename specified\n");