Commit 713dbcdd authored by Michal Berger's avatar Michal Berger Committed by Jim Harris
Browse files

pkgdep/git: Add support for doxygen



Lock it under a 1.10 commit which is able to successfully generate
proper SPDK docs.

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


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
Reviewed-by: default avatarShuhei Matsumoto <smatsumoto@nvidia.com>
parent ee9e3438
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ function usage() {
	echo "  -h --help"
	echo "  -u --upgrade Run $package_manager upgrade"
	echo "  -i --install-deps Install $package_manager based dependencies"
	echo "  -t --test-conf List of test configurations to enable (${CONF},irdma,lcov,bpftrace)"
	echo "  -t --test-conf List of test configurations to enable (${CONF},irdma,lcov,bpftrace,doxygen)"
	echo "  -c --conf-path Path to configuration file"
	echo "  -d --dir-git Path to where git sources should be saved"
	echo "  -s --disable-tsocks Disable use of tsocks"
+23 −0
Original line number Diff line number Diff line
@@ -456,6 +456,26 @@ function install_bpftrace() {
	sudo make -C $GIT_REPOS/bpftrace/build install
}

function install_doxygen() {
	# Stable, 1.10 commit that works for our docs
	local release=78422d3905e57acebf0374feefafa6578dbe86aa

	rm -rf "$GIT_REPOS/doxygen"

	git clone "$GIT_REPO_DOXYGEN" "$GIT_REPOS/doxygen"
	git -C "$GIT_REPOS/doxygen" checkout "$release"

	mkdir -p "$GIT_REPOS/doxygen/build"

	cmake -G "Unix Makefiles" \
		-B "$GIT_REPOS/doxygen/build" \
		-S "$GIT_REPOS/doxygen"

	# This build is quite heavy, so let's not go crazy with -j here
	make -C "$GIT_REPOS/doxygen/build" -j$(($(nproc) / 2))
	make -C "$GIT_REPOS/doxygen/build" install
}

function install_sources() {
	if [[ $ID == centos ]] && (( VERSION_ID == 7 )); then
		# install proper version of the git first
@@ -484,6 +504,7 @@ function install_sources() {
			install_ice
			install_lcov
			install_bpftrace
			install_doxygen
		)
		install_extra_pkgs
	fi
@@ -542,6 +563,8 @@ export GIT_REPO_BPFTRACE
export GIT_REPO_NVME_CLI
: ${GIT_REPO_ITTAPI=https://github.com/intel/ittapi.git}
export GIT_REPO_ITTAPI
: ${GIT_REPO_DOXYGEN="https://github.com/doxygen/doxygen"}
export GIT_REPO_DOXYGEN

GIT_REPOS=${GIT_REPOS:-$HOME}