From 985d64688e85acb31b16e7f958991c9d92634d76 Mon Sep 17 00:00:00 2001 From: Kamil Godzwon Date: Mon, 17 Oct 2022 14:28:24 -0400 Subject: [PATCH] configure: change the default ocf path Change ocf default path to the rootdir relative one. When --with-ocf flag is used in the configure, being out of the spdk repository, the ocf path is incorrectly set. Depends on the actual directory where the configure is run. The path should point to main spdk repo directory regardless of where the configure is run from. Signed-off-by: Kamil Godzwon Change-Id: I6db3dd965ef9d119bb9e2f68ab3bd19c11b17a86 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15022 Tested-by: SPDK CI Jenkins Reviewed-by: wanghailiang Reviewed-by: Rafal Stefanowski Reviewed-by: Karol Latecki Reviewed-by: Paul Luse Reviewed-by: Krzysztof Karas Reviewed-by: Konrad Sztyber Reviewed-by: Tomasz Zawadzki --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index c75bd1949..e3be52a96 100755 --- a/configure +++ b/configure @@ -566,7 +566,7 @@ for i in "$@"; do ;; --with-ocf) CONFIG[OCF]=y - CONFIG[OCF_PATH]=$(readlink -f "./ocf") + CONFIG[OCF_PATH]=$(readlink -f "$rootdir/ocf") ;; --with-ocf=*) CONFIG[OCF]=y