diff options
author | Sonny Rao <sonnyrao@chromium.org> | 2011-09-16 11:52:22 -0700 |
---|---|---|
committer | Sonny Rao <sonnyrao@chromium.org> | 2011-09-19 00:28:21 -0700 |
commit | 06edfc60f329d71ac00d16b29c034149cc5249a9 (patch) | |
tree | 007f3b8549ee8de7b6f438dd73d7bc447db3ca35 | |
parent | 236faae91a224b36fb48ec407535a426f1f67877 (diff) | |
download | vboot-06edfc60f329d71ac00d16b29c034149cc5249a9.tar.gz |
vbutil: support 64bit x86
This changes the code accept x86.* as an alias for x86 architecture
since both x86 and x86_64 systems will handle things identically
BUG=chromium-os:20336
TEST=try to use update_kernel.sh on a system running an x86_64 kernel
Change-Id: Icf18925bdb8583cd53c6f6254c7493bdec540465
Reviewed-on: http://gerrit.chromium.org/gerrit/7873
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Tested-by: Sonny Rao <sonnyrao@chromium.org>
-rw-r--r-- | utility/vbutil_kernel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utility/vbutil_kernel.c b/utility/vbutil_kernel.c index 821f7519..757896aa 100644 --- a/utility/vbutil_kernel.c +++ b/utility/vbutil_kernel.c @@ -872,7 +872,8 @@ int main(int argc, char* argv[]) { break; case OPT_ARCH: - if (!strcasecmp(optarg, "x86")) + /* check the first 3 characters to also detect x86_64 */ + if (!strncasecmp(optarg, "x86", 3)) arch = ARCH_X86; else if (!strcasecmp(optarg, "arm")) arch = ARCH_ARM; |