From 5d989b1edfffb9e886ef7792da90999881c363dd Mon Sep 17 00:00:00 2001 From: Pawel Piatek Date: Tue, 24 Jan 2023 08:48:30 +0100 Subject: [PATCH] autobuild: support for dpdk-stable repository Branches other than "main" are kept in a separate repository named "dpdk-stable". Signed-off-by: Pawel Piatek Change-Id: Icf38d2bbf7f9943a66f1ee1d6c033a77e3b2e481 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16433 Reviewed-by: Michal Berger Tested-by: SPDK CI Jenkins Reviewed-by: Tomasz Zawadzki Reviewed-by: Konrad Sztyber --- test/common/autobuild_common.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/common/autobuild_common.sh b/test/common/autobuild_common.sh index 1b56ef00f..f2baa5ce0 100755 --- a/test/common/autobuild_common.sh +++ b/test/common/autobuild_common.sh @@ -43,6 +43,7 @@ _build_native_dpdk() { local compiler_version local compiler local dpdk_kmods + local repo='dpdk' compiler=${CC:-gcc} @@ -57,6 +58,10 @@ _build_native_dpdk() { return 1 fi + if [[ $SPDK_TEST_NATIVE_DPDK != 'main' ]]; then + repo='dpdk-stable' + fi + compiler_version=$("$compiler" -dumpversion) compiler_version=${compiler_version%%.*} external_dpdk_dir="$SPDK_RUN_EXTERNAL_DPDK" @@ -69,7 +74,7 @@ _build_native_dpdk() { orgdir=$PWD rm -rf "$external_dpdk_base_dir" - git clone --branch $SPDK_TEST_NATIVE_DPDK --depth 1 http://dpdk.org/git/dpdk "$external_dpdk_base_dir" + git clone --branch $SPDK_TEST_NATIVE_DPDK --depth 1 http://dpdk.org/git/${repo} "$external_dpdk_base_dir" git -C "$external_dpdk_base_dir" log --oneline -n 5 dpdk_cflags="-fPIC -g -fcommon"