summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRom Lemarchand2015-06-04 11:59:01 -0500
committerRom Lemarchand2015-06-04 11:59:01 -0500
commita8221d34274701550d558293c2b2f0a5bddc628f (patch)
tree686f1d226d0f8cfd885865bfba2174b9056bfbf1 /mkbootimg
parent79ae578eddaf0af5ef84ac7d71b3330d1a8c41ae (diff)
downloadplatform-system-core-a8221d34274701550d558293c2b2f0a5bddc628f.tar.gz
platform-system-core-a8221d34274701550d558293c2b2f0a5bddc628f.tar.xz
platform-system-core-a8221d34274701550d558293c2b2f0a5bddc628f.zip
mkbootimg: misc typo fixes
- Fix whitespace in parse_int - Use two dashes for kernel_offset instead of four Change-Id: I59667da457d0f0d78a946e543d1aa0aec5e682d5
Diffstat (limited to 'mkbootimg')
-rwxr-xr-xmkbootimg/mkbootimg4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkbootimg/mkbootimg b/mkbootimg/mkbootimg
index 1e09f4db0..aea258593 100755
--- a/mkbootimg/mkbootimg
+++ b/mkbootimg/mkbootimg
@@ -94,7 +94,7 @@ def write_padded_file(f_out, f_in, padding):
94 94
95 95
96def parse_int(x): 96def parse_int(x):
97 return int(x,0) 97 return int(x, 0)
98 98
99 99
100def parse_cmdline(): 100def parse_cmdline():
@@ -106,7 +106,7 @@ def parse_cmdline():
106 parser.add_argument('--cmdline', help='extra arguments to be passed on the ' 106 parser.add_argument('--cmdline', help='extra arguments to be passed on the '
107 'kernel command line', default='', action=ValidateStrLenAction, maxlen=1536) 107 'kernel command line', default='', action=ValidateStrLenAction, maxlen=1536)
108 parser.add_argument('--base', help='base address', type=parse_int, default=0x10000000) 108 parser.add_argument('--base', help='base address', type=parse_int, default=0x10000000)
109 parser.add_argument('----kernel_offset', help='kernel offset', type=parse_int, default=0x00008000) 109 parser.add_argument('--kernel_offset', help='kernel offset', type=parse_int, default=0x00008000)
110 parser.add_argument('--ramdisk_offset', help='ramdisk offset', type=parse_int, default=0x01000000) 110 parser.add_argument('--ramdisk_offset', help='ramdisk offset', type=parse_int, default=0x01000000)
111 parser.add_argument('--second_offset', help='2nd bootloader offset', type=parse_int, 111 parser.add_argument('--second_offset', help='2nd bootloader offset', type=parse_int,
112 default=0x00f00000) 112 default=0x00f00000)