mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
scripts: AArch64: Build SPDK NVMe before running integration tests
The SPDK-NVMe is needed for the integration test for vfio_user. Signed-off-by: Henry Wang <Henry.Wang@arm.com> Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
1db7718589
commit
7a42ce9310
@ -102,6 +102,25 @@ build_edk2() {
|
||||
popd
|
||||
}
|
||||
|
||||
build_spdk_nvme() {
|
||||
SPDK_DIR="$WORKLOADS_DIR/spdk"
|
||||
SPDK_REPO="https://github.com/spdk/spdk.git"
|
||||
checkout_repo "$SPDK_DIR" "$SPDK_REPO" master "f9c496b8e21a8f499df268818bf8b5d8e2b19f04"
|
||||
|
||||
pushd $SPDK_DIR
|
||||
git submodule update --init
|
||||
apt-get update
|
||||
./scripts/pkgdep.sh
|
||||
./configure --with-vfio-user
|
||||
chmod +x /usr/local/lib/python3.8/dist-packages/ninja/data/bin/ninja
|
||||
make -j `nproc`
|
||||
mkdir /usr/local/bin/spdk-nvme
|
||||
cp ./build/bin/nvmf_tgt /usr/local/bin/spdk-nvme
|
||||
cp ./scripts/rpc.py /usr/local/bin/spdk-nvme
|
||||
cp -r ./scripts/rpc /usr/local/bin/spdk-nvme
|
||||
popd
|
||||
}
|
||||
|
||||
update_workloads() {
|
||||
cp scripts/sha1sums-aarch64 $WORKLOADS_DIR
|
||||
|
||||
@ -233,6 +252,9 @@ update_workloads() {
|
||||
echo "bar" > "$SHARED_DIR/file3" || exit 1
|
||||
fi
|
||||
|
||||
# checkout and build SPDK NVMe
|
||||
build_spdk_nvme
|
||||
|
||||
# Check and build EDK2 binary
|
||||
build_edk2
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user