dpdkbuild: completely rebuild dpdk on SPDK config change
Configuring SPDK with different options might result in enabling different CONFIG_RTE_LIB* options, but since it does not modify any DPDK config files, DPDK doesn't get rebuilt and keeps using older, potentially outdated build options. We'll now clear dpdk/build whenever SPDK config is modified, which will result in automatically re-configuring DPDK. Change-Id: I9c7c3434dc317e4f47767d7b3df3df48db2b0d5b Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/460563 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
5f96e92c8c
commit
30ff7f7d85
@ -129,7 +129,8 @@ endif
|
|||||||
# Allow users to specify EXTRA_DPDK_CFLAGS if they want to build DPDK using unsupported compiler versions
|
# Allow users to specify EXTRA_DPDK_CFLAGS if they want to build DPDK using unsupported compiler versions
|
||||||
DPDK_CFLAGS += $(EXTRA_DPDK_CFLAGS)
|
DPDK_CFLAGS += $(EXTRA_DPDK_CFLAGS)
|
||||||
|
|
||||||
$(SPDK_ROOT_DIR)/dpdk/build:
|
$(SPDK_ROOT_DIR)/dpdk/build: $(SPDK_ROOT_DIR)/mk/cc.mk $(SPDK_ROOT_DIR)/include/spdk/config.h
|
||||||
|
$(Q)rm -rf $(SPDK_ROOT_DIR)/dpdk/build
|
||||||
$(Q)$(MAKE) -C $(SPDK_ROOT_DIR)/dpdk config T=$(DPDK_CONFIG) $(DPDK_OPTS)
|
$(Q)$(MAKE) -C $(SPDK_ROOT_DIR)/dpdk config T=$(DPDK_CONFIG) $(DPDK_OPTS)
|
||||||
|
|
||||||
all: $(SPDK_ROOT_DIR)/dpdk/build
|
all: $(SPDK_ROOT_DIR)/dpdk/build
|
||||||
|
Loading…
Reference in New Issue
Block a user