Kbuild 611 B

12345678910111213141516171819202122
  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. # CONFIG_CNSS_PLAT_IPC_QMI_SVC should never be "y" here since it
  11. # can be only compiled as a module from out-of-kernel-tree source.
  12. ifeq ($(CONFIG_CNSS_PLAT_IPC_QMI_SVC),m)
  13. KBUILD_CPPFLAGS += -DCONFIG_CNSS_PLAT_IPC_QMI_SVC
  14. endif
  15. obj-$(CONFIG_CNSS2) += cnss2/
  16. obj-$(CONFIG_CNSS_GENL) += cnss_genl/
  17. obj-$(CONFIG_WCNSS_MEM_PRE_ALLOC) += cnss_prealloc/
  18. obj-y += cnss_utils/