Debian Codegraph @

drivers/iommu/generic_pt/fmt/Makefile

raw symbols SCIP
1 # SPDX-License-Identifier: GPL-2.0
2
3 iommu_pt_fmt-$(CONFIG_IOMMU_PT_AMDV1) += amdv1
4 iommu_pt_fmt-$(CONFIG_IOMMUFD_TEST) += mock
5
6 iommu_pt_fmt-$(CONFIG_IOMMU_PT_VTDSS) += vtdss
7
8 iommu_pt_fmt-$(CONFIG_IOMMU_PT_X86_64) += x86_64
9
10 IOMMU_PT_KUNIT_TEST :=
11 define create_format
12 obj-$(2) += iommu_$(1).o
13 iommu_pt_kunit_test-y += kunit_iommu_$(1).o
14 CFLAGS_kunit_iommu_$(1).o += -DGENERIC_PT_KUNIT=1
15 IOMMU_PT_KUNIT_TEST := iommu_pt_kunit_test.o
16
17 endef
18
19 $(eval $(foreach fmt,$(iommu_pt_fmt-y),$(call create_format,$(fmt),y)))
20 $(eval $(foreach fmt,$(iommu_pt_fmt-m),$(call create_format,$(fmt),m)))
21
22 # The kunit objects are constructed by compiling the main source
23 # with -DGENERIC_PT_KUNIT
24 $(obj)/kunit_iommu_%.o: $(src)/iommu_%.c FORCE
25 $(call rule_mkdir)
26 $(call if_changed_dep,cc_o_c)
27
28 obj-$(CONFIG_IOMMU_PT_KUNIT_TEST) += $(IOMMU_PT_KUNIT_TEST)