Commit 385f42eb authored by Darek Stojaczyk's avatar Darek Stojaczyk Committed by Ben Walker
Browse files

configure: fix building without isa-l submodule



The isa-l directory is generated automatically by
git on checkout, although it's empty. We check for
that directory existence in order to build ISA-L
and without `git submodule update --init` the build
just fails.

To fix, instead of checking the dir existence, we
check for the autogen.sh file inside that dir.

Change-Id: I7b62513afcd7e9f3953f825c41b265efe3484d57
Signed-off-by: default avatarDarek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/442523


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarPiotr Pelpliński <piotr.pelplinski@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent 891bf99a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -416,7 +416,7 @@ if [[ "${CONFIG[ISAL]}" = "y" ]] || [[ "${CONFIG[CRYPTO]}" = "y" ]]; then
fi

if [[ "${CONFIG[ISAL]}" = "y" ]]; then
	if [ ! -d "$rootdir"/isa-l ]; then
	if [ ! -f "$rootdir"/isa-l/autogen.sh ]; then
		echo "isa-l folder is not found; If you do want to install isa-l, run:"
		echo "  git submodule update --init"
		exit 1