diff options
author | Sonny Rao <sonnyrao@chromium.org> | 2011-10-11 18:36:19 -0700 |
---|---|---|
committer | Sonny Rao <sonnyrao@chromium.org> | 2011-10-12 15:53:05 -0700 |
commit | 74554733156c33cd79ed90563e9a92e5fa011cbe (patch) | |
tree | 3e5d66c5a8890542519bc270c256ca250de3d323 | |
parent | 0600e41e0fd2912486832a150f75765ab6c90a2b (diff) | |
download | vboot-74554733156c33cd79ed90563e9a92e5fa011cbe.tar.gz |
vbutil: accept amd64 as a valid alias for x86
The rest of the chromiumos build system uses amd64 as the
architecture name for 64bit x86. This adds support for this
name to vbutil.
BUG=chromium-os:21284
TEST=vbutil --arch amd64 should not return unknown architecture
Change-Id: I37531591a7a31486f6447ae611d54569d1ea59d5
Reviewed-on: http://gerrit.chromium.org/gerrit/9959
Tested-by: Sonny Rao <sonnyrao@chromium.org>
Reviewed-by: Randall Spangler <rspangler@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 757896aa..06896750 100644 --- a/utility/vbutil_kernel.c +++ b/utility/vbutil_kernel.c @@ -873,7 +873,8 @@ int main(int argc, char* argv[]) { case OPT_ARCH: /* check the first 3 characters to also detect x86_64 */ - if (!strncasecmp(optarg, "x86", 3)) + if ((!strncasecmp(optarg, "x86", 3)) || + (!strcasecmp(optarg, "amd64"))) arch = ARCH_X86; else if (!strcasecmp(optarg, "arm")) arch = ARCH_ARM; |