mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 02:05:01 +00:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user