From d199eb295c6c591d340c8153e781fede5cc07418 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Thu, 1 Jun 2017 17:51:29 -0700 Subject: [PATCH] configure: check for DPDK submodule existence If the user doesn't specify --with-dpdk and the dpdk submodule is not checked out, print a message to help identify the problem. Change-Id: Ic3aafe3ba7e8dea66ce14ba4677f56824eed61bb Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/363472 Tested-by: SPDK Automated Test System Reviewed-by: Ben Walker --- configure | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 1b0aad8b3..00274f1b3 100755 --- a/configure +++ b/configure @@ -127,7 +127,14 @@ done if [ -z "$CONFIG_ENV" ]; then if [ -z "$CONFIG_DPDK_DIR" ]; then - CONFIG_DPDK_DIR=$(readlink -f $(dirname $0))/dpdk/build + rootdir=$(readlink -f $(dirname $0)) + if [ ! -f "$rootdir"/dpdk/config/common_spdk ]; then + echo "DPDK not found; please specify --with-dpdk= or run:" + echo + echo " git submodule update --init" + exit 1 + fi + CONFIG_DPDK_DIR="$rootdir"/dpdk/build fi fi