Kbuild 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. obj-$(CONFIG_CNSS2) += cnss2/
  43. obj-$(CONFIG_ICNSS2) += icnss2/
  44. obj-$(CONFIG_CNSS_GENL) += cnss_genl/
  45. obj-$(CONFIG_WCNSS_MEM_PRE_ALLOC) += cnss_prealloc/
  46. obj-y += cnss_utils/