Commit 3677f46a authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

build: allow make to work from any directory



Set SPDK_ROOT_DIR explicitly in each Makefile so that make from a
subdirectory will work (assuming all dependencies from the upper
directory have already been built).  This allows partial rebuilds of the
source tree, as well as building the unit tests without requiring DPDK.

Change-Id: I3f65b805d490b40ff5ec53cceb61df542ce814f1
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 35e56a96
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -32,8 +32,6 @@
#

SPDK_ROOT_DIR := $(CURDIR)
export SPDK_ROOT_DIR

include $(SPDK_ROOT_DIR)/mk/spdk.common.mk

DIRS-y += lib test examples
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@
#  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

SPDK_ROOT_DIR := $(CURDIR)/..
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk

DIRS-y += nvme
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@
#  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

SPDK_ROOT_DIR := $(CURDIR)/../..
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk

DIRS-y += identify perf
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@
#  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

SPDK_ROOT_DIR := $(CURDIR)/../../..
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk

APP = identify
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@
#  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

SPDK_ROOT_DIR := $(CURDIR)/../../..
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk

APP = perf
Loading