summaryrefslogtreecommitdiffstats
path: root/fastboot
diff options
context:
space:
mode:
authorMohamad Ayyash <mkayyash@google.com>2014-01-14 18:27:25 -0800
committerMohamad Ayyash <mkayyash@google.com>2014-05-01 20:31:29 +0000
commit29fd7b1f4f86e4955cf78156a9de174c5b7233c1 (patch)
treebad1b6f1867992dbdd3a9d8db0b44abed058810e /fastboot
parent6b91fefdb22b33d7cdebe10fab4db834f5f8784d (diff)
downloadsystem_core-29fd7b1f4f86e4955cf78156a9de174c5b7233c1.tar.gz
system_core-29fd7b1f4f86e4955cf78156a9de174c5b7233c1.tar.bz2
system_core-29fd7b1f4f86e4955cf78156a9de174c5b7233c1.zip
fastboot: Make tags_offset a command line option.
cherry picked from commit bdf513c5f25b3c2051af737c37a7734c4559208e Change-Id: I4ceca528f88cc8ede5742f8a67bec972e41eebe7
Diffstat (limited to 'fastboot')
-rw-r--r--fastboot/fastboot.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fastboot/fastboot.c b/fastboot/fastboot.c
index 73a6e5616..7d26c6fb6 100644
--- a/fastboot/fastboot.c
+++ b/fastboot/fastboot.c
@@ -889,6 +889,7 @@ int main(int argc, char **argv)
{"kernel_offset", required_argument, 0, 'k'},
{"page_size", required_argument, 0, 'n'},
{"ramdisk_offset", required_argument, 0, 'r'},
+ {"tags_offset", required_argument, 0, 't'},
{"help", 0, 0, 'h'},
{0, 0, 0, 0}
};
@@ -897,7 +898,7 @@ int main(int argc, char **argv)
while (1) {
int option_index = 0;
- c = getopt_long(argc, argv, "wub:k:n:r:s:S:lp:c:i:m:h", longopts, NULL);
+ c = getopt_long(argc, argv, "wub:k:n:r:t:s:S:lp:c:i:m:h", longopts, NULL);
if (c < 0) {
break;
}
@@ -938,6 +939,9 @@ int main(int argc, char **argv)
case 'r':
ramdisk_offset = strtoul(optarg, 0, 16);
break;
+ case 't':
+ tags_offset = strtoul(optarg, 0, 16);
+ break;
case 's':
serial = optarg;
break;