bdev/crypto: add /include symlink for ISAL

Currently we only include the dir just above ISA-L which allows
the isal.h file includes to be found however DPDK can't find
isa-l.h at that location because its one level deeper.

By adding a symlink in the isa-l subdir we can redirect DPDK to
find the isa-l header files.

Change-Id: Ieeabd4273bade0241db5581764b2169103f9770f
Signed-off-by: paul luse <paul.e.luse@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/445767
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
paul luse 2019-02-21 13:57:24 -05:00 committed by Jim Harris
parent d2bbef66dc
commit 1fc4165fe9
2 changed files with 6 additions and 2 deletions

View File

@ -66,7 +66,7 @@ endif
ifeq ($(CONFIG_REDUCE),y) ifeq ($(CONFIG_REDUCE),y)
DPDK_OPTS += CONFIG_RTE_LIBRTE_PMD_ISAL=y DPDK_OPTS += CONFIG_RTE_LIBRTE_PMD_ISAL=y
DPDK_CFLAGS += -I$(ISAL_DIR)/.. DPDK_CFLAGS += -I$(ISAL_DIR)
else else
DPDK_OPTS += CONFIG_RTE_LIBRTE_PMD_ISAL=n DPDK_OPTS += CONFIG_RTE_LIBRTE_PMD_ISAL=n
endif endif

View File

@ -40,10 +40,14 @@ ifneq ($(Q),)
REDIRECT=> /dev/null REDIRECT=> /dev/null
endif endif
all: $(ISAL_DIR)/isa-l:
@ln -s $(ISAL_DIR)/include $(ISAL_DIR)/isa-l
all: $(ISAL_DIR)/isa-l
$(Q)$(MAKE) -C $(SPDK_ROOT_DIR)/isa-l -j$(NPROC) all CC=cc $(REDIRECT) $(Q)$(MAKE) -C $(SPDK_ROOT_DIR)/isa-l -j$(NPROC) all CC=cc $(REDIRECT)
install: all install: all
clean: clean:
$(Q)$(MAKE) -C $(SPDK_ROOT_DIR)/isa-l clean $(REDIRECT) $(Q)$(MAKE) -C $(SPDK_ROOT_DIR)/isa-l clean $(REDIRECT)
$(Q)rm -f $(ISAL_DIR)/isa-l