Kbuild 900 B

1234567891011121314151617181920212223242526272829303132333435
  1. ifeq ($(CONFIG_CNSS_OUT_OF_TREE),y)
  2. KBUILD_CPPFLAGS += -DCONFIG_CNSS_OUT_OF_TREE
  3. endif
  4. ifeq ($(CONFIG_CNSS2_DEBUG),y)
  5. KBUILD_CPPFLAGS += -DCONFIG_CNSS2_DEBUG
  6. endif
  7. ifeq ($(CONFIG_CNSS2_QMI),y)
  8. KBUILD_CPPFLAGS += -DCONFIG_CNSS2_QMI
  9. endif
  10. ifeq ($(CONFIG_ICNSS2_DEBUG),y)
  11. KBUILD_CPPFLAGS += -DCONFIG_ICNSS2_DEBUG
  12. endif
  13. ifeq ($(CONFIG_ICNSS2_QMI),y)
  14. KBUILD_CPPFLAGS += -DCONFIG_ICNSS2_QMI
  15. endif
  16. # CONFIG_CNSS_PLAT_IPC_QMI_SVC should never be "y" here since it
  17. # can be only compiled as a module from out-of-kernel-tree source.
  18. ifeq ($(CONFIG_CNSS_PLAT_IPC_QMI_SVC),m)
  19. KBUILD_CPPFLAGS += -DCONFIG_CNSS_PLAT_IPC_QMI_SVC
  20. endif
  21. ifeq ($(CONFIG_CNSS_HW_SECURE_DISABLE), y)
  22. KBUILD_CPPFLAGS += -DCONFIG_CNSS_HW_SECURE_DISABLE
  23. endif
  24. obj-$(CONFIG_CNSS2) += cnss2/
  25. obj-$(CONFIG_ICNSS2) += icnss2/
  26. obj-$(CONFIG_CNSS_GENL) += cnss_genl/
  27. obj-$(CONFIG_WCNSS_MEM_PRE_ALLOC) += cnss_prealloc/
  28. obj-y += cnss_utils/