autobuild: support for dpdk-stable repository

Branches other than "main" are kept in a separate repository
named "dpdk-stable".

Signed-off-by: Pawel Piatek <pawelx.piatek@intel.com>
Change-Id: Icf38d2bbf7f9943a66f1ee1d6c033a77e3b2e481
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16433
Reviewed-by: Michal Berger <michal.berger@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
This commit is contained in:
Pawel Piatek 2023-01-24 08:48:30 +01:00 committed by Tomasz Zawadzki
parent 2db14b40ec
commit 5d989b1edf

View File

@ -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"