1# 2# Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 3# 4# This program is free software; you can redistribute it and/or modify it 5# under the terms of the GNU General Public License as published by the 6# Free Software Foundation; either version 2 of the License, or (at your 7# option) any later version. 8# 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY; without even the implied warranty of 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12# GNU General Public License for more details. 13# 14# You should have received a copy of the GNU General Public License 15# along with this program. If not, see <http://www.gnu.org/licenses/>. 16# 17# 18 19cflags-y += -I$(srctree)/product/cipher/v2/api 20cflags-y += -I$(srctree)/product/cipher/v2/drv/platform 21cflags-y += -I$(srctree)/product/cipher/v2/drv/rng 22cflags-y += -I$(srctree)/product/cipher/v2/drv/rsa 23cflags-y += -I$(srctree)/product/cipher/v2/drv/compat 24cflags-y += -I$(srctree)/product/cipher/v2/drv/sm2 25cflags-y += -I$(srctree)/product/cipher/v2/drv/spacc 26cflags-y += -I$(srctree)/product/cipher/v2/drv/include 27 28ccflags-y += $(cflags-y) 29HOSTCFLAGS += $(cflags-y) 30CPPFLAGS += $(cflags-y) 31 32obj-y += v2/api/ree_mpi_cipher.o 33obj-y += v2/api/ree_mpi_hash.o 34obj-y += v2/api/ree_mpi_rsa.o 35obj-y += v2/api/ree_mpi_rng.o 36 37obj-y += v2/drv/platform/cipher_adapt.o 38obj-y += v2/drv/drv_cipher_intf.o 39obj-y += v2/drv/rng/drv_rng.o 40obj-y += v2/drv/rsa/drv_rsa.o 41obj-y += v2/drv/spacc/spacc_body.o 42obj-y += v2/drv/spacc/spacc_intf.o 43obj-y += v2/drv/compat/hal_otp.o 44obj-y += v2/drv/compat/drv_klad.o 45obj-y += v2/drv/compat/hi_drv_compat.o 46