build: add SKIP_DPDK_BUILD option

DPDK can take a long time to build - even when nothing
in DPDK has changed.  So for users who are using SPDK's
DPDK submodule, add a SKIP_DPDK_BUILD option.  When
this is set to 1, the build will skip building the
DPDK submodule if it is being used.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Ib48238fe607276fb69e495f8b7318e5b82754276

Reviewed-on: https://review.gerrithub.io/398849
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
Jim Harris 2018-02-07 13:12:05 -07:00
parent d13c94b9fb
commit 9fccc84fba

View File

@ -41,9 +41,11 @@ DIRS-y += lib test examples app include
.PHONY: all clean $(DIRS-y) config.h CONFIG.local mk/cc.mk
ifeq ($(CURDIR)/dpdk/build,$(CONFIG_DPDK_DIR))
ifneq ($(SKIP_DPDK_BUILD),1)
DPDKBUILD = dpdkbuild
DIRS-y += dpdkbuild
endif
endif
all: $(DIRS-y)
clean: $(DIRS-y)