Commit c2e1dac9 authored by Michal Berger's avatar Michal Berger Committed by Konrad Sztyber
Browse files

pkgdep/git: Update bpftrace submodules after clone



Recent changes in the bpftrace repo removed entire .gitmodules, hence
--recurse-modules is now foobar. Since we build specific version of
bpftrace, which still does include proper .gitmodules, first clone
the base repo, checkout and then attempt to fetch submodules.

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


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
parent a26b8bd3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -410,8 +410,9 @@ function install_bpftrace() {

	rm -rf $GIT_REPOS/bpftrace

	git clone $GIT_REPO_BPFTRACE $GIT_REPOS/bpftrace --recurse-submodules
	git clone "$GIT_REPO_BPFTRACE" "$GIT_REPOS/bpftrace"
	git -C $GIT_REPOS/bpftrace checkout $BPFTRACE_VERSION
	git -C "$GIT_REPOS/bpftrace" submodule update --init
	mkdir -p $GIT_REPOS/bpftrace/build
	mkdir -p "$GIT_REPOS/bpftrace/build/build-libs/bcc"