Skip to content

Commit 2cc35b0

Browse files
kaadamchrome-bot
authored andcommitted
futility: Add --arch=arm64 option to vbutil_kernel
vbutil_kernel already supports 64bit arm architecture, but it just allows "aarch64" option. However other script, for example build_kernel_image uses ARCH environment variable, which for arm64-generic overlay is defined as "arm64". So vbutil_kernel will refuse the call. BUG=None TEST=run vbutil_kernel --arch=arm64 Check that the "Unknown architecture string: arm64" is gone BRANCH=None Change-Id: I94c547d6b6940ab8c622a6b8cff49b5f83c1fcad Reviewed-on: https://chromium-review.googlesource.com/1080529 Commit-Ready: Adam Kallai <kadam@inf.u-szeged.hu> Tested-by: Adam Kallai <kadam@inf.u-szeged.hu> Reviewed-by: Mike Frysinger <vapier@chromium.org>
1 parent 04e3f31 commit 2cc35b0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

futility/cmd_vbutil_kernel.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@ static int do_vbutil_kernel(int argc, char *argv[])
299299
if ((!strncasecmp(optarg, "x86", 3)) ||
300300
(!strcasecmp(optarg, "amd64")))
301301
arch = ARCH_X86;
302-
else if ((!strcasecmp(optarg, "arm")) ||
302+
/* check the first 3 characters to also detect arm64 */
303+
else if ((!strncasecmp(optarg, "arm", 3)) ||
303304
(!strcasecmp(optarg, "aarch64")))
304305
arch = ARCH_ARM;
305306
else if (!strcasecmp(optarg, "mips"))

0 commit comments

Comments
 (0)