Kbuild 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. LINUXINCLUDE += -I$(SSG_MODULE_ROOT)/ \
  2. -I$(SSG_MODULE_ROOT)/linux/ \
  3. -I$(SSG_MODULE_ROOT)/include/linux/ \
  4. -I$(SSG_MODULE_ROOT)/include/uapi/ \
  5. -I$(SSG_MODULE_ROOT)/include/uapi/linux/
  6. ifneq ($(CONFIG_ARCH_QTI_VM), y)
  7. LINUXINCLUDE += -include $(SSG_MODULE_ROOT)/config/sec-kernel_defconfig.h
  8. include $(SSG_MODULE_ROOT)/config/sec-kernel_defconfig.conf
  9. endif
  10. #Enable Qseecom if CONFIG_ARCH_KHAJE OR CONFIG_ARCH_KHAJE or CONFIG_QTI_QUIN_GVM is set to y
  11. ifneq (, $(filter y, $(CONFIG_QTI_QUIN_GVM) $(CONFIG_ARCH_KHAJE) $(CONFIG_ARCH_SA8155)))
  12. include $(SSG_MODULE_ROOT)/config/sec-kernel_defconfig_qseecom.conf
  13. LINUXINCLUDE += -include $(SSG_MODULE_ROOT)/config/sec-kernel_defconfig_qseecom.h
  14. obj-$(CONFIG_QSEECOM) += qseecom_dlkm.o
  15. qseecom_dlkm-objs := qseecom/qseecom.o
  16. endif
  17. include $(SSG_MODULE_ROOT)/config/sec-kernel_defconfig_smcinvoke.conf
  18. LINUXINCLUDE += -include $(SSG_MODULE_ROOT)/config/sec-kernel_defconfig_smcinvoke.h
  19. obj-$(CONFIG_QCOM_SMCINVOKE) += smcinvoke_dlkm.o
  20. smcinvoke_dlkm-objs := smcinvoke/smcinvoke_kernel.o smcinvoke/smcinvoke.o
  21. obj-$(CONFIG_QTI_TZ_LOG) += tz_log_dlkm.o
  22. tz_log_dlkm-objs := tz_log/tz_log.o
  23. obj-$(CONFIG_CRYPTO_DEV_QCEDEV) += qce50_dlkm.o
  24. qce50_dlkm-objs := crypto-qti/qce50.o
  25. obj-$(CONFIG_CRYPTO_DEV_QCEDEV) += qcedev-mod_dlkm.o
  26. qcedev-mod_dlkm-objs := crypto-qti/qcedev.o crypto-qti/qcedev_smmu.o crypto-qti/compat_qcedev.o
  27. obj-$(CONFIG_CRYPTO_DEV_QCRYPTO) += qcrypto-msm_dlkm.o
  28. qcrypto-msm_dlkm-objs := crypto-qti/qcrypto.o
  29. obj-$(CONFIG_HDCP_QSEECOM) += hdcp_qseecom_dlkm.o
  30. hdcp_qseecom_dlkm-objs := hdcp/hdcp_main.o hdcp/hdcp_smcinvoke.o hdcp/hdcp_qseecom.o
  31. obj-$(CONFIG_HW_RANDOM_MSM_LEGACY) += qrng_dlkm.o
  32. qrng_dlkm-objs := qrng/msm_rng.o
  33. ifneq (, $(filter y, $(ARCH_QTI_VM) $(CONFIG_ARCH_PINEAPPLE)))
  34. include $(SSG_MODULE_ROOT)/config/sec-kernel_defconfig_smmu_proxy.conf
  35. LINUXINCLUDE += -include $(SSG_MODULE_ROOT)/config/sec-kernel_defconfig_smmu_proxy.h
  36. obj-$(CONFIG_QTI_SMMU_PROXY) += smmu_proxy_dlkm.o
  37. smmu_proxy_dlkm-objs := smmu-proxy/qti-smmu-proxy-common.o
  38. ifneq ($(CONFIG_ARCH_QTI_VM), y)
  39. smmu_proxy_dlkm-objs += smmu-proxy/qti-smmu-proxy-pvm.o
  40. else
  41. smmu_proxy_dlkm-objs += smmu-proxy/qti-smmu-proxy-tvm.o
  42. endif
  43. endif