From d62fca9685961034ca3676ed61cadddcbd88ecb2 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Wed, 29 Dec 2010 18:11:47 -0600 Subject: [PATCH] bring in beta bootloader suppport Signed-off-by: Robert Nelson --- mk_mmc.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 9478d62..f4f45ab 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -30,6 +30,7 @@ KERNEL_PATCH=7 unset MMC unset FIRMWARE unset SERIAL_MODE +unset BETA BOOT_LABEL=boot PARTITION_PREFIX="" @@ -56,8 +57,14 @@ function dl_xload_uboot { wget -c --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${MIRROR}tools/latest/bootloader - MLO=$(cat ${TEMPDIR}/dl/bootloader | grep "ABI:1 MLO" | awk '{print $3}') - UBOOT=$(cat ${TEMPDIR}/dl/bootloader | grep "ABI:1 UBOOT" | awk '{print $3}') + if [ "$BETA" ];then + ABI="ABX" + else + ABI="ABI" + fi + + MLO=$(cat ${TEMPDIR}/dl/bootloader | grep "${ABI}:1 MLO" | awk '{print $3}') + UBOOT=$(cat ${TEMPDIR}/dl/bootloader | grep "${ABI}:1 UBOOT" | awk '{print $3}') wget -c --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${MLO} wget -c --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${UBOOT} @@ -490,6 +497,7 @@ cat > ${TEMPDIR}/get_chrome.sh < Unformated MMC Card @@ -729,6 +739,9 @@ while [ ! -z "$1" ]; do --serial-mode) SERIAL_MODE=1 ;; + --beta) + BETA=1 + ;; esac shift done