Add a new config option CONFIG_ISAL_CRYPTO which is set if both isa-l and isa-l-crypto are enabled. This config option will be used in next patch to enable SW crypto operations in accel fw Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com> Change-Id: I9cf6b754fb3888e21c05aa20bade21cf90d5d090 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14857 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-by: <qun.wan@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
33 lines
757 B
Makefile
33 lines
757 B
Makefile
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (c) Intel Corporation.
|
|
# Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES.
|
|
# All rights reserved.
|
|
#
|
|
|
|
SPDK_ROOT_DIR := $(abspath $(CURDIR)/..)
|
|
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
|
|
|
.PHONY: all clean install
|
|
|
|
ifneq ($(Q),)
|
|
REDIRECT=> /dev/null
|
|
endif
|
|
|
|
# Force-disable scan-build
|
|
SUB_CC = $(patsubst %ccc-analyzer,$(DEFAULT_CC),$(CC))
|
|
|
|
$(ISAL_CRYPTO_DIR)/isa-l-crypto:
|
|
@ln -s $(ISAL_CRYPTO_DIR)/include $(ISAL_CRYPTO_DIR)/isa-l-crypto
|
|
|
|
all: $(ISAL_CRYPTO_DIR)/isa-l-crypto
|
|
$(Q)$(MAKE) -C $(SPDK_ROOT_DIR)/isa-l-crypto all CC="$(SUB_CC)" $(REDIRECT)
|
|
|
|
install: all
|
|
|
|
uninstall:
|
|
@:
|
|
|
|
clean:
|
|
$(Q)$(MAKE) -C $(SPDK_ROOT_DIR)/isa-l-crypto clean $(REDIRECT)
|
|
$(Q)rm -rf $(ISAL_CRYPTO_DIR)/isa-l-crypto
|