Skip to content

Commit

Permalink
autobuild: support for dpdk-stable repository
Browse files Browse the repository at this point in the history
Branches other than "main" are kept in a separate repository
named "dpdk-stable".

Signed-off-by: Pawel Piatek <[email protected]>
Change-Id: Icf38d2bbf7f9943a66f1ee1d6c033a77e3b2e481
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16433
Reviewed-by: Michal Berger <[email protected]>
Tested-by: SPDK CI Jenkins <[email protected]>
Reviewed-by: Tomasz Zawadzki <[email protected]>
Reviewed-by: Konrad Sztyber <[email protected]>
  • Loading branch information
xjjx authored and tomzawadzki committed Feb 14, 2023
1 parent 2db14b4 commit 5d989b1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/common/autobuild_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ _build_native_dpdk() {
local compiler_version
local compiler
local dpdk_kmods
local repo='dpdk'

compiler=${CC:-gcc}

Expand All @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 5d989b1

Please sign in to comment.