pkgdep/git: cherry-pick instead of curl'ing the SPDK patches

We clone entire repo and then checkout into a proper tag so there's no
need to extra fetch the patches since they are already part of the
repo.

Signed-off-by: Michal Berger <michalx.berger@intel.com>
Change-Id: I38155a33506e373c129a02442b77bc48def23121
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9755
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Michal Berger 2021-10-06 11:58:02 +02:00 committed by Tomasz Zawadzki
parent 86f428c922
commit 19ad1783e4

View File

@ -43,8 +43,8 @@ function install_refspdk() {
if ((gcc_version >= 11)) && le "${release#v}" 21.04; then
git -C "$output_dir" config --global user.name "spdk"
git -C "$output_dir" config --global user.email "hotpatch@spdk.io"
curl -s https://github.com/spdk/spdk/commit/36b5a69bb0699694b53a2f08a13cc0de620450a9.patch | git -C "$output_dir" am
curl -s https://github.com/spdk/spdk/commit/2ac152158116a17b863270a4731977d9ddedf50d.patch | git -C "$output_dir" am
git -C "$output_dir" cherry-pick 36b5a69bb0699694b53a2f08a13cc0de620450a9
git -C "$output_dir" cherry-pick 2ac152158116a17b863270a4731977d9ddedf50d
fi
cat > $HOME/autorun-spdk.conf <<- EOF