Kbuild 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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_ONE_MSI_VECTOR),y)
  11. KBUILD_CPPFLAGS += -DCONFIG_ONE_MSI_VECTOR
  12. endif
  13. ifeq ($(CONFIG_ICNSS2_DEBUG),y)
  14. KBUILD_CPPFLAGS += -DCONFIG_ICNSS2_DEBUG
  15. endif
  16. ifeq ($(CONFIG_ICNSS2_QMI),y)
  17. KBUILD_CPPFLAGS += -DCONFIG_ICNSS2_QMI
  18. endif
  19. # CONFIG_CNSS_PLAT_IPC_QMI_SVC should never be "y" here since it
  20. # can be only compiled as a module from out-of-kernel-tree source.
  21. ifeq ($(CONFIG_CNSS_PLAT_IPC_QMI_SVC),m)
  22. KBUILD_CPPFLAGS += -DCONFIG_CNSS_PLAT_IPC_QMI_SVC
  23. endif
  24. ifeq ($(CONFIG_CNSS_HW_SECURE_DISABLE), y)
  25. KBUILD_CPPFLAGS += -DCONFIG_CNSS_HW_SECURE_DISABLE
  26. endif
  27. ifeq ($(CONFIG_CNSS2_CONDITIONAL_POWEROFF),y)
  28. KBUILD_CPPFLAGS += -DCONFIG_CNSS2_CONDITIONAL_POWEROFF
  29. endif
  30. ifeq ($(CONFIG_CNSS_REQ_FW_DIRECT),y)
  31. KBUILD_CPPFLAGS += -DCONFIG_CNSS_REQ_FW_DIRECT
  32. endif
  33. ifeq ($(CONFIG_CNSS_SUPPORT_DUAL_DEV),y)
  34. KBUILD_CPPFLAGS += -DCONFIG_CNSS_SUPPORT_DUAL_DEV
  35. endif
  36. ifeq ($(CONFIG_AUTO_PROJECT),y)
  37. KBUILD_CPPFLAGS += -DCONFIG_PULLDOWN_WLANEN
  38. endif
  39. ifeq ($(CONFIG_CNSS2_SSR_DRIVER_DUMP),y)
  40. KBUILD_CPPFLAGS += -DCONFIG_CNSS2_SSR_DRIVER_DUMP
  41. endif
  42. ifeq ($(CONFIG_FREE_M3_BLOB_MEM),y)
  43. KBUILD_CPPFLAGS += -DCONFIG_FREE_M3_BLOB_MEM
  44. endif
  45. ifeq ($(CONFIG_DISABLE_CNSS_SRAM_DUMP),y)
  46. KBUILD_CPPFLAGS += -DCONFIG_DISABLE_CNSS_SRAM_DUMP
  47. endif
  48. obj-$(CONFIG_CNSS2) += cnss2/
  49. obj-$(CONFIG_ICNSS2) += icnss2/
  50. obj-$(CONFIG_CNSS_GENL) += cnss_genl/
  51. obj-$(CONFIG_WCNSS_MEM_PRE_ALLOC) += cnss_prealloc/
  52. obj-y += cnss_utils/