1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for building Trusted Computing Group's(TCG) runtime Integrity
4# Measurement Architecture(IMA).
5#
6
7obj-$(CONFIG_IMA) += ima.o
8
9ima-y := ima_fs.o ima_queue.o ima_init.o ima_main.o ima_crypto.o ima_api.o \
10	 ima_policy.o ima_template.o ima_template_lib.o
11ima-$(CONFIG_IMA_APPRAISE) += ima_appraise.o
12ima-$(CONFIG_IMA_APPRAISE_MODSIG) += ima_modsig.o
13ima-$(CONFIG_HAVE_IMA_KEXEC) += ima_kexec.o
14ima-$(CONFIG_IMA_BLACKLIST_KEYRING) += ima_mok.o
15ima-$(CONFIG_IMA_MEASURE_ASYMMETRIC_KEYS) += ima_asymmetric_keys.o
16ima-$(CONFIG_IMA_QUEUE_EARLY_BOOT_KEYS) += ima_queue_keys.o
17
18ifeq ($(CONFIG_EFI),y)
19ima-$(CONFIG_IMA_SECURE_AND_OR_TRUSTED_BOOT) += ima_efi.o
20endif
21