kernel_samsung_a34x-permissive/security/samsung/dsms/Makefile
2024-04-28 15:51:13 +02:00

27 lines
721 B
Makefile

#
# Makefile for the DSMS
#
DSMS_PREBOOT_BUFFER = true
ccflags-y := -Wformat
ccflags-y += -DDSMS_ALLOWLIST_IGNORE_NAME_SUFFIXES_ENABLE
ccflags-y += -I$(srctree)/$(src)
obj-$(CONFIG_SECURITY_DSMS) := dsms_access_control.o
obj-$(CONFIG_SECURITY_DSMS) += dsms_init.o
obj-$(CONFIG_SECURITY_DSMS) += dsms_kernel_api.o
obj-$(CONFIG_SECURITY_DSMS) += dsms_policy.o
obj-$(CONFIG_SECURITY_DSMS) += dsms_rate_limit.o
obj-$(CONFIG_SECURITY_DSMS) += dsms_netlink.o
ifeq ($(DSMS_PREBOOT_BUFFER), true)
ccflags-y += -DDSMS_PREBOOT_BUFFER_ENABLE
obj-$(CONFIG_SECURITY_DSMS) += dsms_preboot_buffer.o
endif
# kunit tests options:
ifeq ($(CONFIG_SEC_KUNIT), y)
GCOV_PROFILE := y
ccflags-y += -DDSMS_KUNIT_ENABLED
endif