Makefile 699 B

12345678910111213141516171819202122232425262728293031
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # Copyright (C) 2020-2024 Microsoft Corporation. All rights reserved.
  4. #
  5. # Makefile for building the IPE module as part of the kernel tree.
  6. #
  7. quiet_cmd_polgen = IPE_POL $(2)
  8. cmd_polgen = scripts/ipe/polgen/polgen security/ipe/boot_policy.c $(2)
  9. targets += boot_policy.c
  10. $(obj)/boot_policy.c: scripts/ipe/polgen/polgen $(CONFIG_IPE_BOOT_POLICY) FORCE
  11. $(call if_changed,polgen,$(CONFIG_IPE_BOOT_POLICY))
  12. obj-$(CONFIG_SECURITY_IPE) += \
  13. boot_policy.o \
  14. digest.o \
  15. eval.o \
  16. hooks.o \
  17. fs.o \
  18. ipe.o \
  19. policy.o \
  20. policy_fs.o \
  21. policy_parser.o \
  22. audit.o \
  23. clean-files := boot_policy.c \
  24. obj-$(CONFIG_SECURITY_IPE_KUNIT_TEST) += \
  25. policy_tests.o \