This commit is contained in:
aixiao 2017-08-26 17:20:01 +08:00
parent 949efb3146
commit 4397b8344f

10
aq.sh
View File

@ -27,6 +27,7 @@ init() {
QEMU_VERSION="2.10.0-rc1" QEMU_VERSION="2.10.0-rc1"
QEMU_VERSION="2.10.0-rc2" QEMU_VERSION="2.10.0-rc2"
QEMU_VERSION="2.10.0-rc3" QEMU_VERSION="2.10.0-rc3"
QEMU_VERSION="2.10.0-rc4"
QEMU_VERSION=${qemu_version:-"$QEMU_VERSION"} QEMU_VERSION=${qemu_version:-"$QEMU_VERSION"}
check_qemu_version $QEMU_VERSION check_qemu_version $QEMU_VERSION
QEMU_TAR_SRC=${PWD}/AQ/qemu-${QEMU_VERSION}.tar.xz QEMU_TAR_SRC=${PWD}/AQ/qemu-${QEMU_VERSION}.tar.xz
@ -97,6 +98,7 @@ init() {
QEMU_CONFIGURE_2_10_0_RC1=$QEMU_CONFIGURE_2_10_0_RC0 QEMU_CONFIGURE_2_10_0_RC1=$QEMU_CONFIGURE_2_10_0_RC0
QEMU_CONFIGURE_2_10_0_RC2=$QEMU_CONFIGURE_2_10_0_RC2 QEMU_CONFIGURE_2_10_0_RC2=$QEMU_CONFIGURE_2_10_0_RC2
QEMU_CONFIGURE_2_10_0_RC3=$QEMU_CONFIGURE_2_10_0_RC2 QEMU_CONFIGURE_2_10_0_RC3=$QEMU_CONFIGURE_2_10_0_RC2
QEMU_CONFIGURE_2_10_0_RC4=$QEMU_CONFIGURE_2_10_0_RC2
QEMU_CONFIGURE_GIT=$QEMU_CONFIGURE_2_10_0_RC2 QEMU_CONFIGURE_GIT=$QEMU_CONFIGURE_2_10_0_RC2
MAKE_J="$(grep -c ^processor /proc/cpuinfo | grep -E '^[1-9]+[0-9]*$' || echo 1)" ; test $MAKE_J != "1" && make_j=$((MAKE_J - 1)) || make_j=$MAKE_J MAKE_J="$(grep -c ^processor /proc/cpuinfo | grep -E '^[1-9]+[0-9]*$' || echo 1)" ; test $MAKE_J != "1" && make_j=$((MAKE_J - 1)) || make_j=$MAKE_J
MAKE_J="-j${make_j}" MAKE_J="-j${make_j}"
@ -203,6 +205,9 @@ check_qemu_version() {
"2.10.0-rc3") "2.10.0-rc3")
: :
;; ;;
"2.10.0-rc4")
:
;;
*) *)
echo -ne The QEMU $QEMU_VERSION version does not support configure\\n ; exit 1 echo -ne The QEMU $QEMU_VERSION version does not support configure\\n ; exit 1
;; ;;
@ -385,6 +390,9 @@ configure() {
"2.10.0-rc3") "2.10.0-rc3")
${QEMU_CONFIGURE_2_10_0_RC3} ${QEMU_CONFIGURE_2_10_0_RC3}
;; ;;
"2.10.0-rc4")
${QEMU_CONGIGURE_2_10_0_RC4}
;;
esac esac
;; ;;
qemu-git) qemu-git)
@ -506,7 +514,7 @@ HELP
esac esac
} }
path path
VER=1.05 VER=1.06
for((i=1;i<=$#;i++)); do for((i=1;i<=$#;i++)); do
ini_cfg=${!i} ini_cfg=${!i}
ini_cfg_a=`echo $ini_cfg | sed -r s/^-?-?.*=//` ini_cfg_a=`echo $ini_cfg | sed -r s/^-?-?.*=//`