Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # Makefile for the touchscreen drivers.
  4. #
  5. # Each configuration option enables a list of files.
  6. obj-$(CONFIG_TOUCHSCREEN_PARADE) += pt.o
  7. pt-y := pt_core.o pt_mt_common.o
  8. pt-$(CONFIG_TOUCHSCREEN_PARADE_MT_A) += pt_mta.o
  9. pt-$(CONFIG_TOUCHSCREEN_PARADE_MT_B) += pt_mtb.o
  10. pt-$(CONFIG_TOUCHSCREEN_PARADE_BUTTON) += pt_btn.o
  11. pt-$(CONFIG_TOUCHSCREEN_PARADE_PEN) += pt_pen.o
  12. pt-$(CONFIG_TOUCHSCREEN_PARADE_PROXIMITY) += pt_proximity.o
  13. obj-$(CONFIG_TOUCHSCREEN_PARADE_DEVICETREE_SUPPORT) += pt_devtree.o
  14. ifdef CONFIG_TOUCHSCREEN_PARADE
  15. obj-y += pt_platform.o
  16. endif
  17. obj-$(CONFIG_TOUCHSCREEN_PARADE_I2C) += pt_i2c.o
  18. obj-$(CONFIG_TOUCHSCREEN_PARADE_SPI) += pt_spi.o
  19. obj-$(CONFIG_TOUCHSCREEN_PARADE_DEBUG_MDL) += pt_debug.o
  20. obj-$(CONFIG_TOUCHSCREEN_PARADE_LOADER) += pt_loader.o
  21. obj-$(CONFIG_TOUCHSCREEN_PARADE_DEVICE_ACCESS) += pt_device_access.o
  22. ifeq ($(CONFIG_TOUCHSCREEN_PARADE_DEBUG),y)
  23. CFLAGS_pt_core.o += -DDEBUG
  24. CFLAGS_pt_i2c.o += -DDEBUG
  25. CFLAGS_pt_spi.o += -DDEBUG
  26. CFLAGS_pt_mta.o += -DDEBUG
  27. CFLAGS_pt_mtb.o += -DDEBUG
  28. CFLAGS_pt_mt_common.o += -DDEBUG
  29. CFLAGS_pt_btn.o += -DDEBUG
  30. CFLAGS_pt_pen.o += -DDEBUG
  31. CFLAGS_pt_proximity.o += -DDEBUG
  32. CFLAGS_pt_device_access.o += -DDEBUG
  33. CFLAGS_pt_loader.o += -DDEBUG
  34. CFLAGS_pt_debug.o += -DDEBUG
  35. CFLAGS_pt_devtree.o += -DDEBUG
  36. CFLAGS_pt_platform.o += -DDEBUG
  37. endif
  38. ifeq ($(CONFIG_TOUCHSCREEN_PARADE_VDEBUG),y)
  39. CFLAGS_pt_core.o += -DVERBOSE_DEBUG
  40. CFLAGS_pt_i2c.o += -DVERBOSE_DEBUG
  41. CFLAGS_pt_spi.o += -DVERBOSE_DEBUG
  42. CFLAGS_pt_mta.o += -DVERBOSE_DEBUG
  43. CFLAGS_pt_mtb.o += -DVERBOSE_DEBUG
  44. CFLAGS_pt_mt_common.o += -DVERBOSE_DEBUG
  45. CFLAGS_pt_btn.o += -DVERBOSE_DEBUG
  46. CFLAGS_pt_pen.o += -DVERBOSE_DEBUG
  47. CFLAGS_pt_proximity.o += -DVERBOSE_DEBUG
  48. CFLAGS_pt_device_access.o += -DVERBOSE_DEBUG
  49. CFLAGS_pt_loader.o += -DVERBOSE_DEBUG
  50. CFLAGS_pt_debug.o += -DVERBOSE_DEBUG
  51. CFLAGS_pt_devtree.o += -DVERBOSE_DEBUG
  52. CFLAGS_pt_platform.o += -DVERBOSE_DEBUG
  53. endif