pkgdep/git: Fix spdk_abi_lts build for v20.01 under make 4.3
This attempts to mimic commit 2a860943b8 from DPDK repo to pass the build under make 4.3. Currently, this affects Fedora33 which ships with make 4.3 by default. Change-Id: If3afa8ad9200d618f43bbea42360efbfe99d3085 Signed-off-by: Michal Berger <michalx.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5779 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
95d8e7a683
commit
c3d5069947
@ -51,6 +51,21 @@ function install_refspdk() {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user