blob: bd6f30a0f066fe8807a17f6323471e1803575be8 [file] [log] [blame]
# SPDX-Liscense-Identifier: GPL-2.0-or-later
#
# Copyright (C) 2023 MediaTek Inc.
#
# Author: Chris.Chou <chris.chou@mediatek.com>
# Ren-Ting Wang <ren-ting.wang@mediatek.com>
# Configure for crypto-eip DDK makefile
EIP_KERNEL_PKGS+= \
crypto-eip-ddk
ifeq ($(CONFIG_PACKAGE_kmod-crypto-eip-ddk),y)
EXTRA_KCONFIG+= \
CONFIG_RAMBUS_DDK=m
EXTRA_CFLAGS+= \
-I$(PKG_BUILD_DIR)/ddk/inc \
-I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk \
-I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/configs \
-I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/device \
-I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/device/lkm \
-I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/device/lkm/of \
-I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/dmares \
-I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/firmware_api \
-I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/kit/builder/sa \
-I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/kit/builder/token \
-I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/kit/eip197 \
-I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/kit/iotoken \
-I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/kit/list \
-I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/kit/ring \
-I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/libc \
-I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/log \
-I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/shdevxs \
-I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/slad \
-I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/slad/lkm \
-DEIP197_BUS_VERSION_AXI3 \
-DDRIVER_64BIT_HOST \
-DDRIVER_64BIT_DEVICE \
-DADAPTER_AUTO_TOKENBUILDER
endif
# crypto-eip-ddk kernel package configuration
define KernelPackage/crypto-eip-ddk
CATEGORY:=MTK Properties
SUBMENU:=Drivers
TITLE:= MTK EIP DDK
FILES+=$(PKG_BUILD_DIR)/ddk/crypto-eip-ddk.ko
DEPENDS:= \
@CRYPTO_OFFLOAD_INLINE \
kmod-crypto-eip
endef
define KernelPackage/crypto-eip-ddk/description
Porting DDK source code to package.
endef