From 6bd65015d7694f1736808e785e7bbd0642a9245d Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Wed, 9 Nov 2016 16:12:00 -0700 Subject: [PATCH] env: rename default implementation to env_dpdk Change-Id: I6aa48861917547e7081951b6d953693e109b02e6 Signed-off-by: Daniel Verkamp --- CONFIG | 2 +- PORTING.md | 4 ++-- lib/Makefile | 2 +- lib/{env => env_dpdk}/Makefile | 2 +- lib/{env => env_dpdk}/env.c | 0 lib/{env => env_dpdk}/env.mk | 4 ++-- lib/{env => env_dpdk}/pci.c | 0 lib/{env => env_dpdk}/vtophys.c | 0 8 files changed, 7 insertions(+), 7 deletions(-) rename lib/{env => env_dpdk}/Makefile (98%) rename lib/{env => env_dpdk}/env.c (100%) rename lib/{env => env_dpdk}/env.mk (94%) rename lib/{env => env_dpdk}/pci.c (100%) rename lib/{env => env_dpdk}/vtophys.c (100%) diff --git a/CONFIG b/CONFIG index 1d147e1cce..1d8e2ae454 100644 --- a/CONFIG +++ b/CONFIG @@ -45,7 +45,7 @@ CONFIG_ADDRESS_SANITIZER?=n # Directory that contains the desired SPDK environment library. # By default, this is implemented using DPDK. -CONFIG_ENV?=$(SPDK_ROOT_DIR)/lib/env +CONFIG_ENV?=$(SPDK_ROOT_DIR)/lib/env_dpdk # This directory should contain 'include' and 'lib' directories for your DPDK # installation. Alternatively you can specify this on the command line diff --git a/PORTING.md b/PORTING.md index 767d39153e..b595c85f75 100644 --- a/PORTING.md +++ b/PORTING.md @@ -10,7 +10,7 @@ defined in [include/spdk/env.h](include/spdk/env.h). SPDK includes a default implementation of the *env* library based on the Data Plane Development Kit ([DPDK](http://dpdk.org/)). -This DPDK implementation can be found in `lib/env`. +This DPDK implementation can be found in `lib/env_dpdk`. DPDK is currently supported on Linux and FreeBSD only. Users who want to use SPDK on other operating systems, or in @@ -19,4 +19,4 @@ a new version of the *env* library. The new implementation can be integrated into the SPDK build by updating the following line in CONFIG: - CONFIG_ENV?=$(SPDK_ROOT_DIR)/lib/env + CONFIG_ENV?=$(SPDK_ROOT_DIR)/lib/env_dpdk diff --git a/lib/Makefile b/lib/Makefile index edcc44f9d6..3f86753b9e 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -35,7 +35,7 @@ SPDK_ROOT_DIR := $(abspath $(CURDIR)/..) include $(SPDK_ROOT_DIR)/mk/spdk.common.mk DIRS-y += bdev conf copy cunit event json jsonrpc \ - log env net rpc trace util nvme nvmf scsi ioat + log env_dpdk net rpc trace util nvme nvmf scsi ioat ifeq ($(OS),Linux) DIRS-y += iscsi endif diff --git a/lib/env/Makefile b/lib/env_dpdk/Makefile similarity index 98% rename from lib/env/Makefile rename to lib/env_dpdk/Makefile index 08bf1b3bd4..0368465e7e 100644 --- a/lib/env/Makefile +++ b/lib/env_dpdk/Makefile @@ -36,6 +36,6 @@ include $(SPDK_ROOT_DIR)/mk/spdk.common.mk CFLAGS += $(DPDK_INC) C_SRCS = env.c pci.c vtophys.c -LIBNAME = env +LIBNAME = env_dpdk include $(SPDK_ROOT_DIR)/mk/spdk.lib.mk diff --git a/lib/env/env.c b/lib/env_dpdk/env.c similarity index 100% rename from lib/env/env.c rename to lib/env_dpdk/env.c diff --git a/lib/env/env.mk b/lib/env_dpdk/env.mk similarity index 94% rename from lib/env/env.mk rename to lib/env_dpdk/env.mk index 7b1c1a2b62..be0e55b278 100644 --- a/lib/env/env.mk +++ b/lib/env_dpdk/env.mk @@ -68,5 +68,5 @@ endif ENV_CFLAGS = $(DPDK_INC) ENV_CXXFLAGS = $(ENV_CFLAGS) -ENV_LIBS = $(SPDK_ROOT_DIR)/lib/env/libspdk_env.a $(DPDK_LIB) -ENV_LINKER_ARGS = -Wl,--start-group -Wl,--whole-archive $(SPDK_ROOT_DIR)/lib/env/libspdk_env.a $(DPDK_LIB) -Wl,--end-group -Wl,--no-whole-archive +ENV_LIBS = $(SPDK_ROOT_DIR)/lib/env_dpdk/libspdk_env_dpdk.a $(DPDK_LIB) +ENV_LINKER_ARGS = -Wl,--start-group -Wl,--whole-archive $(SPDK_ROOT_DIR)/lib/env_dpdk/libspdk_env_dpdk.a $(DPDK_LIB) -Wl,--end-group -Wl,--no-whole-archive diff --git a/lib/env/pci.c b/lib/env_dpdk/pci.c similarity index 100% rename from lib/env/pci.c rename to lib/env_dpdk/pci.c diff --git a/lib/env/vtophys.c b/lib/env_dpdk/vtophys.c similarity index 100% rename from lib/env/vtophys.c rename to lib/env_dpdk/vtophys.c