diff options
author | Rom Lemarchand <romlem@android.com> | 2015-06-04 09:59:01 -0700 |
---|---|---|
committer | Rom Lemarchand <romlem@google.com> | 2015-06-04 09:59:01 -0700 |
commit | a8221d34274701550d558293c2b2f0a5bddc628f (patch) | |
tree | 686f1d226d0f8cfd885865bfba2174b9056bfbf1 /mkbootimg | |
parent | 79ae578eddaf0af5ef84ac7d71b3330d1a8c41ae (diff) | |
download | system_core-a8221d34274701550d558293c2b2f0a5bddc628f.tar.gz system_core-a8221d34274701550d558293c2b2f0a5bddc628f.tar.bz2 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-x | mkbootimg/mkbootimg | 4 |
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): def parse_int(x): - return int(x,0) + return int(x, 0) def parse_cmdline(): @@ -106,7 +106,7 @@ def parse_cmdline(): parser.add_argument('--cmdline', help='extra arguments to be passed on the ' 'kernel command line', default='', action=ValidateStrLenAction, maxlen=1536) parser.add_argument('--base', help='base address', type=parse_int, default=0x10000000) - parser.add_argument('----kernel_offset', help='kernel offset', type=parse_int, default=0x00008000) + parser.add_argument('--kernel_offset', help='kernel offset', type=parse_int, default=0x00008000) parser.add_argument('--ramdisk_offset', help='ramdisk offset', type=parse_int, default=0x01000000) parser.add_argument('--second_offset', help='2nd bootloader offset', type=parse_int, default=0x00f00000) |