Commit ef68667a authored by Michal Berger's avatar Michal Berger Committed by Tomasz Zawadzki
Browse files

pkgdep/git: Remove 20.01 release workarounds



There's already a new LTS release in place, hence these workarounds
are not needed anymore.

Signed-off-by: default avatarMichal Berger <michalx.berger@intel.com>
Change-Id: Idf597a5cf8da18d75f2630d59a277d4545fadc0f
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7987


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJohn Kariuki <John.K.Kariuki@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
parent f8d6541d
Loading
Loading
Loading
Loading
+2 −42
Original line number Diff line number Diff line
@@ -37,35 +37,9 @@ function install_refspdk() {
		cp -R "$GIT_REPOS/spdk_repo/spdk" "$output_dir"
	fi

	lts_2001_fallback=false
	if [[ "$release" == v20.01* ]]; then
		# We switch to a .x branch in order to slurp all the backports which fix spdk_abi_lts
		# build for this particular release. Fetch the branch explicitly as in case of our CI,
		# jenkins will set remote.*.fetch to a particular ref the build run against, so plain
		# git fetch won't include any branches from the repo. FIXME: This could be removed
		# after new LTS is in place.
		release=${release%%-*}.x
		git -C "$output_dir" fetch origin "+refs/heads/$release:refs/heads/$release"
		lts_2001_fallback=true
	fi
	git -C "$output_dir" checkout "$release"
	git -C "$output_dir" submodule update --init

	if [[ "$release" == v20.01* ]]; then
		makefiles=(
			"$output_dir/dpdk/drivers/crypto/aesni_gcm/Makefile"
			"$output_dir/dpdk/drivers/crypto/aesni_mb/Makefile"
			"$output_dir/dpdk/drivers/crypto/kasumi/Makefile"
			"$output_dir/dpdk/drivers/crypto/snow3g/Makefile"
		)
		# Attempt to replicate dpdk's 2a860943b8 commit which fixes builds under make 4.3
		# FIXME: Remove this when LTS changes!
		for makefile in "${makefiles[@]}"; do
			# This sed call is meant to be compatible with its FreeBSD implementation
			echo "$(sed -e 's/\\#/\$H/g' -e '/IMB_HDR =/i\
				H := \\#' "$makefile")" > "$makefile"
		done
	fi
	cat > $HOME/autorun-spdk.conf <<- EOF
		SPDK_BUILD_SHARED_OBJECT=1
		SPDK_TEST_AUTOBUILD=1
@@ -99,26 +73,12 @@ function install_refspdk() {
		if [[ $OSID == freebsd ]]; then
			config_params="--enable-debug"
			config_params+=" --without-isal --with-fio=/usr/src/fio"

			# TODO: Remove this if-block after 21.01 LTS is released and 20.01 LTS is deprecated.
			if ! "$lts_2001_fallback"; then
			config_params+=" --with-idxd --disable-unit-tests"
			fi

			MAKE=gmake
		else
			# TODO: "get_config_params" was not available in 20.01 LTS release.
			# Remove this if-block after 21.01 release.
			if "$lts_2001_fallback"; then
				config_params="--enable-debug --enable-werror --with-rdma"
				config_params+=" --with-fio=/usr/src/fio --with-iscsi-initiator"
				config_params+=" --with-nvme-cuse --with-pmdk --with-reduce"
				config_params+=" --with-rbd --with-crypto --with-ocf --enable-ubsan"
				config_params+=" --enable-asan --with-fuse --with-uring"
		else
			config_params="$(get_config_params)"
		fi
		fi
		$output_dir/configure $(echo $config_params | sed 's/--enable-coverage//g')
		if [[ $OSID != freebsd ]]; then
			$MAKE -C $output_dir $MAKEFLAGS include/spdk/config.h