mehrdadh commented on a change in pull request #8156:
URL: https://github.com/apache/tvm/pull/8156#discussion_r641829859
##########
File path: docker/install/ubuntu_install_qemu.sh
##########
@@ -16,22 +16,46 @@
# specific language governing permissions and limitations
# under the License.
+#
+# Install QEMU on Ubuntu.
+#
+# Usage: ubuntu_install_qemu.sh [--target-list target0,target1,...]
+# --target-list is list of target for QEMU comma seperated. e.g.
aarch64-softmmu,arm-softmmu,...
+#
+
+set -e
+set -o pipefail
+
+QEMU_DIR=qemu-5.1.0
+
+# Get number of cores for build
if [[ "${CI_NUM_CORE}" ]]; then
- NUM_CORE=${CI_NUM_CORE}
+ num_cores=${CI_NUM_CORE}
else
- NUM_CORE=2
+ num_cores=2
fi
-set -e
-set -u
-set -o pipefail
+# Set target list for QEMU
+if [ "$1" == "--target-list" ]; then
+ shift
+ target_list=$1
+else
+
target_list="aarch64-softmmu,arm-softmmu,i386-softmmu,riscv32-softmmu,riscv64-softmmu,x86_64-softmmu"
+fi
-sudo sed -i '/deb-src/s/^# //' /etc/apt/sources.list
-apt update
-apt-get -y build-dep qemu
+# Check if QEMU already built
+rebuild=0
Review comment:
The reason is that we could update the RVM on vagrant cloud with a
version that has qemu already installed with limited targets. And then if
someone is using this locally, it will only rebuild with new set of targets.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]