Makefile.in 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. ifneq ($(DRIVERS_DIR),)
  2. # build together
  3. HDMI_DIR = $(DRIVERS_DIR)/hdmi
  4. else
  5. # build standalone
  6. HDMI_DIR = $(M)
  7. endif
  8. ifeq ($(CONFIG_CHIPID),0x330)
  9. ic_dir = 330
  10. endif
  11. ifeq ($(CONFIG_CHIPID),0x531)
  12. ic_dir = 531
  13. endif
  14. ifeq ($(CONFIG_CHIPID),0x331)
  15. ic_dir = 331
  16. endif
  17. ifeq ($(CONFIG_CHIPID),0x533)
  18. ic_dir = 533
  19. endif
  20. ifeq ($(CONFIG_CHIPID),0x131)
  21. ic_dir = 131
  22. endif
  23. ifeq ($(CONFIG_CHIPID),0x8506)
  24. ic_dir = 8506
  25. endif
  26. ifeq ($(CONFIG_CHIPID),0x6710)
  27. ic_dir = 6710
  28. endif
  29. mods += hdmi.o
  30. hdmi-objs = \
  31. debounce.o \
  32. sysreg.o \
  33. gpioi2c.o \
  34. hdmi.o \
  35. cec.o \
  36. hdmi_hpd.o \
  37. hdmi_mapping.o \
  38. hdmi_notice.o \
  39. hdmi_hw.o \
  40. hdmi_hdcp.o \
  41. hdmi_audio.o \
  42. hdmi_cmdq.o \
  43. hdmi_dbg.o \
  44. hdmi_processing.o \
  45. hdmi_video.o \
  46. hdmi_xvycc.o \
  47. hdmi_cfg.o \
  48. hdmi_time.o \
  49. hdmi_infoframe_api.o\
  50. spdif_parser.o
  51. dir = hdmi/$(ic_dir)/
  52. mhl_dir = mhl
  53. mhl-objs =
  54. ifdef CONFIG_HDMI_MHL_PORT
  55. ifneq ($(ic_dir), 330)
  56. EXTRA_CFLAGS += -I$(shell pwd)/../../drivers/hdmi/$(ic_dir)/$(mhl_dir)
  57. mhl-objs = \
  58. $(mhl_dir)/mhl_application.o \
  59. $(mhl_dir)/cbus_app.o \
  60. $(mhl_dir)/cbus_drv.o \
  61. $(mhl_dir)/cbus_mid.o
  62. endif
  63. endif
  64. # Append switch code here
  65. switch-objs = switch_default.o
  66. # ===========================================================
  67. #
  68. # Please add your switch here for specific project.
  69. #
  70. # ===========================================================
  71. ifeq ($(CONFIG_IT6633),y)
  72. switch-objs = switch_it6633.o
  73. endif
  74. # ===========================================================
  75. hdmi-objs += $(switch-objs)
  76. hdmi-objs += $(mhl-objs)
  77. ifneq ($(CONFIG_S2DRV),)
  78. hdmi-objs := $(patsubst %, $(dir)%, $(hdmi-objs))
  79. endif