rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # |
| 3 | # Makefile for the CAAM backend and dependent components |
| 4 | # |
| 5 | ifeq ($(CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG), y) |
| 6 | ccflags-y := -DDEBUG |
| 7 | endif |
| 8 | |
| 9 | obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM) += caam.o |
| 10 | obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM_JR) += caam_jr.o |
| 11 | obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API) += caamalg.o |
| 12 | obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_QI) += caamalg_qi.o |
| 13 | obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC) += caamalg_desc.o |
| 14 | obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API) += caamhash.o |
| 15 | obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API) += caamrng.o |
| 16 | obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API) += caam_pkc.o |
| 17 | |
| 18 | caam-objs := ctrl.o |
| 19 | caam_jr-objs := jr.o key_gen.o error.o |
| 20 | caam_pkc-y := caampkc.o pkc_desc.o |
| 21 | ifneq ($(CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_QI),) |
| 22 | ccflags-y += -DCONFIG_CAAM_QI |
| 23 | caam-objs += qi.o |
| 24 | endif |