build_kernel_image: Use "==" instead of "=" in conditional expressions

'=' and '==' both express testing for equal strings within conditional
expressions. '=' is likely a carry-over from `test` and `[` style
checks, but might be confusing to people less familiar with bash shell
scripts.

Convert the existing '=' operators within conditional expressions to
'=='. Behavior should stay the same.

BUG=none
TEST=Run `build_kernel_image.sh --arch ${arch} ...` and check produced
     config.txt:
     contains "i915.modeset=1" for ${arch} = "x86" or "amd64",
     no "i915.modeset=1" for ${arch} in {"arm", "arm64", "mips"},
     Produces error "Unknown arch: XXX" for any other ${arch}

Change-Id: I40ad081bcb2e4fe04ed3fb7edf6f901fde099d38
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosutils/+/3185521
Tested-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Commit-Queue: Chen-Yu Tsai <wenst@chromium.org>
1 file changed