Commit 1fc4165f authored by paul luse's avatar paul luse Committed by Jim Harris
Browse files

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: default avatarpaul luse <paul.e.luse@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/445767


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent d2bbef66
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ endif

ifeq ($(CONFIG_REDUCE),y)
DPDK_OPTS += CONFIG_RTE_LIBRTE_PMD_ISAL=y
DPDK_CFLAGS += -I$(ISAL_DIR)/..
DPDK_CFLAGS += -I$(ISAL_DIR)
else
DPDK_OPTS += CONFIG_RTE_LIBRTE_PMD_ISAL=n
endif
+5 −1
Original line number Diff line number Diff line
@@ -40,10 +40,14 @@ ifneq ($(Q),)
REDIRECT=> /dev/null
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)

install: all

clean:
	$(Q)$(MAKE) -C $(SPDK_ROOT_DIR)/isa-l clean $(REDIRECT)
	$(Q)rm -f $(ISAL_DIR)/isa-l