build_gpt.sh: accept amd64 as a valid architecture

This change causes build_gpt to treat x86 and amd64 as the same.

BUG=chromium-os:21284
TEST=./build_image for amd64-generic shouldn't generate an invalid
architecture error

Change-Id: I60424515e162a257b9c8d99885cac18f6bb013cd
Reviewed-on: http://gerrit.chromium.org/gerrit/9705
Reviewed-by: Vince Laviano <vlaviano@chromium.org>
Commit-Ready: Sonny Rao <sonnyrao@chromium.org>
Tested-by: Sonny Rao <sonnyrao@chromium.org>
This commit is contained in:
Sonny Rao 2011-10-05 19:40:29 -07:00 committed by Gerrit
parent 8bfc4b5247
commit 0c80dfb97d

View File

@ -47,7 +47,7 @@ build_gpt() {
local pmbr_img
if [ "$ARCH" = "arm" ]; then
pmbr_img=/dev/zero
elif [ "$ARCH" = "x86" ]; then
elif [ "$ARCH" = "x86" -o "$ARCH" = "amd64" ]; then
pmbr_img=$(readlink -f /usr/share/syslinux/gptmbr.bin)
else
error "Unknown architecture: $ARCH"