developer | 4f0d2ba | 2023-08-21 17:33:25 +0800 | [diff] [blame] | 1 | # SPDX-Liscense-Identifier: GPL-2.0-or-later |
| 2 | # |
| 3 | # Copyright (C) 2023 MediaTek Inc. |
| 4 | # |
| 5 | # Author: Chris.Chou <chris.chou@mediatek.com> |
| 6 | # Ren-Ting Wang <ren-ting.wang@mediatek.com> |
| 7 | |
| 8 | # Configure for crypto-eip DDK makefile |
| 9 | EIP_KERNEL_PKGS+= \ |
| 10 | crypto-eip-ddk |
| 11 | |
| 12 | ifeq ($(CONFIG_PACKAGE_kmod-crypto-eip-ddk),y) |
| 13 | EXTRA_KCONFIG+= \ |
| 14 | CONFIG_RAMBUS_DDK=m |
| 15 | |
| 16 | EXTRA_CFLAGS+= \ |
| 17 | -I$(PKG_BUILD_DIR)/ddk/inc \ |
| 18 | -I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk \ |
| 19 | -I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/configs \ |
| 20 | -I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/device \ |
| 21 | -I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/device/lkm \ |
| 22 | -I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/device/lkm/of \ |
| 23 | -I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/dmares \ |
| 24 | -I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/firmware_api \ |
| 25 | -I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/kit/builder/sa \ |
| 26 | -I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/kit/builder/token \ |
| 27 | -I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/kit/eip197 \ |
| 28 | -I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/kit/iotoken \ |
| 29 | -I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/kit/list \ |
| 30 | -I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/kit/ring \ |
| 31 | -I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/libc \ |
| 32 | -I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/log \ |
| 33 | -I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/shdevxs \ |
| 34 | -I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/slad \ |
| 35 | -I$(PKG_BUILD_DIR)/ddk/inc/crypto-eip/ddk/slad/lkm \ |
| 36 | -DEIP197_BUS_VERSION_AXI3 \ |
| 37 | -DDRIVER_64BIT_HOST \ |
| 38 | -DDRIVER_64BIT_DEVICE \ |
| 39 | -DADAPTER_AUTO_TOKENBUILDER |
| 40 | endif |
| 41 | |
| 42 | # crypto-eip-ddk kernel package configuration |
| 43 | define KernelPackage/crypto-eip-ddk |
| 44 | CATEGORY:=MTK Properties |
| 45 | SUBMENU:=Drivers |
| 46 | TITLE:= MTK EIP DDK |
| 47 | FILES+=$(PKG_BUILD_DIR)/ddk/crypto-eip-ddk.ko |
| 48 | DEPENDS:= \ |
| 49 | @CRYPTO_OFFLOAD_INLINE \ |
| 50 | kmod-crypto-eip |
| 51 | endef |
| 52 | |
| 53 | define KernelPackage/crypto-eip-ddk/description |
| 54 | Porting DDK source code to package. |
| 55 | endef |