This commit is contained in:
“niuyuling” 2017-08-17 20:53:52 +08:00
parent 1af971efc2
commit b594454bed

8
aq.sh
View File

@ -26,6 +26,7 @@ init() {
QEMU_VERSION="2.10.0-rc0" QEMU_VERSION="2.10.0-rc0"
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=${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
@ -95,6 +96,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_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}"
@ -185,6 +187,9 @@ check_qemu_version() {
"2.10.0-rc2") "2.10.0-rc2")
: :
;; ;;
"2.10.0-rc3")
:
;;
*) *)
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
;; ;;
@ -331,6 +336,9 @@ configure() {
"2.10.0-rc2") "2.10.0-rc2")
${QEMU_CONFIGURE_2_10_0_RC2} ${QEMU_CONFIGURE_2_10_0_RC2}
;; ;;
"2.10.0-rc3")
${QEMU_CONFIGURE_2_10_0_RC3}
;;
esac esac
;; ;;
qemu-git) qemu-git)