From 942188433486f8406998bd65c3810345057fb0f4 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Wed, 8 Mar 2023 16:03:45 -0800 Subject: [PATCH] scripts: Use 'build_custom_linux' if possible Signed-off-by: Bo Chen --- .../run_integration_tests_live_migration.sh | 20 +------------------ scripts/run_integration_tests_rate_limiter.sh | 20 +------------------ 2 files changed, 2 insertions(+), 38 deletions(-) diff --git a/scripts/run_integration_tests_live_migration.sh b/scripts/run_integration_tests_live_migration.sh index c3839ae9f..fd41250ba 100755 --- a/scripts/run_integration_tests_live_migration.sh +++ b/scripts/run_integration_tests_live_migration.sh @@ -56,26 +56,8 @@ popd # Build custom kernel based on virtio-pmem and virtio-fs upstream patches VMLINUX_IMAGE="$WORKLOADS_DIR/vmlinux" - -LINUX_CUSTOM_DIR="$WORKLOADS_DIR/linux-custom" - if [ ! -f "$VMLINUX_IMAGE" ]; then - SRCDIR=$PWD - pushd $WORKLOADS_DIR - time git clone --depth 1 "https://github.com/cloud-hypervisor/linux.git" -b "ch-6.1.6" $LINUX_CUSTOM_DIR - cp $SRCDIR/resources/linux-config-x86_64 $LINUX_CUSTOM_DIR/.config - popd -fi - -if [ ! -f "$VMLINUX_IMAGE" ]; then - pushd $LINUX_CUSTOM_DIR - time make bzImage -j `nproc` - cp vmlinux $VMLINUX_IMAGE || exit 1 - popd -fi - -if [ -d "$LINUX_CUSTOM_DIR" ]; then - rm -rf $LINUX_CUSTOM_DIR + build_custom_linux fi BUILD_TARGET="$(uname -m)-unknown-linux-${CH_LIBC}" diff --git a/scripts/run_integration_tests_rate_limiter.sh b/scripts/run_integration_tests_rate_limiter.sh index d90257006..42a987146 100755 --- a/scripts/run_integration_tests_rate_limiter.sh +++ b/scripts/run_integration_tests_rate_limiter.sh @@ -47,26 +47,8 @@ popd # Build custom kernel based on virtio-pmem and virtio-fs upstream patches VMLINUX_IMAGE="$WORKLOADS_DIR/vmlinux" - -LINUX_CUSTOM_DIR="$WORKLOADS_DIR/linux-custom" - if [ ! -f "$VMLINUX_IMAGE" ]; then - SRCDIR=$PWD - pushd $WORKLOADS_DIR - time git clone --depth 1 "https://github.com/cloud-hypervisor/linux.git" -b "ch-6.1.6" $LINUX_CUSTOM_DIR - cp $SRCDIR/resources/linux-config-x86_64 $LINUX_CUSTOM_DIR/.config - popd -fi - -if [ ! -f "$VMLINUX_IMAGE" ]; then - pushd $LINUX_CUSTOM_DIR - time make bzImage -j `nproc` - cp vmlinux $VMLINUX_IMAGE || exit 1 - popd -fi - -if [ -d "$LINUX_CUSTOM_DIR" ]; then - rm -rf $LINUX_CUSTOM_DIR + build_custom_linux fi BUILD_TARGET="$(uname -m)-unknown-linux-${CH_LIBC}"