Makefile.mk 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. MIDDLEWARE_TARGET_O=
  2. VPATH =
  3. INCLUDES = -I$(SDK_DIR)
  4. INCLUDES += -I$(SDK_BOOT_DIR)/../Driver/Arch/$(CONFIG_CHIP)
  5. INCLUDES += -I$(SDK_BOOT_DIR)/../Driver/Arch/$(CONFIG_CHIP)/regs
  6. INCLUDES += -I$(SDK_VOS_DIR)/inc
  7. INCLUDES += -I$(SDK_VOS_DIR)/risc/inc
  8. INCLUDES += -I$(SDK_COMMON_DIR)
  9. INCLUDES += -I$(SDK_COMMON_DIR)/Database/inc
  10. INCLUDES += -I$(SDK_COMMON_DIR)/Debug/LetterShell/inc
  11. INCLUDES += -I$(SDK_COMMON_DIR)/Timer/inc
  12. INCLUDES += -I$(SDK_DRIVER_DIR)/Peripheral/inc
  13. INCLUDES += -I$(SDK_COMMON_DIR)/Event
  14. INCLUDES += -I$(SDK_COMMON_DIR)/Assert
  15. INCLUDES += -I$(SDK_COMMON_DIR)/MemParser
  16. INCLUDES += -I$(SDK_COMMON_DIR)/Util/HvQueue/inc
  17. INCLUDES += -I$(SDK_COMMON_DIR)/Util/Utilities/inc
  18. ifeq ($(CONFIG_USER_LED_DRIVER), LED_ON)
  19. INCLUDES += -I$(SDK_DRIVER_DIR)/3rd/LED/cal/inc
  20. INCLUDES += -I$(SDK_DRIVER_DIR)/3rd/LED/drv/inc
  21. endif
  22. INCLUDES += -I$(SDK_DRIVER_DIR)/DPU/PQ/drv/inc
  23. INCLUDES += -I$(SDK_DRIVER_DIR)/DPU/Scaler/drv/$(CONFIG_CHIP)/inc
  24. INCLUDES += -I$(SDK_DRIVER_DIR)/TX/VboTx/drv/inc
  25. INCLUDES += -I$(SDK_DRIVER_DIR)/TX/EdpTx/drv/inc
  26. INCLUDES += -I$(SDK_DRIVER_DIR)/TX/MPRT/drv/inc
  27. INCLUDES += -I$(SDK_DRIVER_DIR)/TX/KTX/cal/common
  28. INCLUDES += -I$(SDK_DRIVER_DIR)/TX/KTX/drv/inc
  29. INCLUDES += -I$(SDK_DRIVER_DIR)/Mailbox/drv/inc
  30. INCLUDES += -I$(SDK_DRIVER_DIR)/Mailbox/cal/$(CONFIG_CHIP)/inc
  31. INCLUDES += -I$(SDK_DRIVER_DIR)/HDCP/inc
  32. INCLUDES += -I$(SDK_DRIVER_DIR)/HDCP/drv/inc
  33. INCLUDES += -I$(SDK_DRIVER_DIR)/HDCP/Engine/Common/inc
  34. INCLUDES += -I$(SDK_DRIVER_DIR)/DisplayPort/drv/inc
  35. INCLUDES += -I$(SDK_DRIVER_DIR)/DisplayPort/cal/$(CONFIG_CHIP)/inc
  36. INCLUDES += -I$(SDK_DRIVER_DIR)/HDMI/drv/inc
  37. INCLUDES += -I$(SDK_DRIVER_DIR)/HDMI/cal/common
  38. INCLUDES += -I$(SDK_DRIVER_DIR)/HDMI/cal/$(CONFIG_CHIP)/inc
  39. INCLUDES += -I$(SDK_DRIVER_DIR)/OSD/drv/inc
  40. INCLUDES += -I$(SDK_DRIVER_DIR)/OSD/cal/$(CONFIG_CHIP)/inc
  41. INCLUDES += -I$(SDK_DRIVER_DIR)/PHY/drv/inc
  42. INCLUDES += -I$(SDK_DRIVER_DIR)/PHY/cal/$(CONFIG_CHIP)/inc
  43. INCLUDES += -I$(SDK_DRIVER_DIR)/PLL/drv/inc
  44. INCLUDES += -I$(SDK_DRIVER_DIR)/PLL/cal/$(CONFIG_CHIP)/inc
  45. INCLUDES += -I$(USER_DIR)/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/Typec
  46. INCLUDES += -I$(USER_DIR)/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/Typec/Common
  47. INCLUDES += -I$(SDK_DRIVER_DIR)/Typec/inc
  48. INCLUDES += -I$(SDK_DRIVER_DIR)/Typec/inc/App
  49. INCLUDES += -I$(SDK_DRIVER_DIR)/UsbHost/core/inc
  50. INCLUDES += -I$(SDK_DRIVER_DIR)/Peripheral/Drv/Inc
  51. INCLUDES += -I$(SDK_DRIVER_DIR)/Peripheral/Cal/$(CONFIG_CHIP)/Inc
  52. INCLUDES += -I$(USER_OSD_DIR)/Resource/Composer/inc
  53. INCLUDES += -I$(USER_DATABASE_DIR)/inc
  54. INCLUDES += -I$(ROOT_DIR)/user/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/System
  55. INCLUDES += -I$(ROOT_DIR)/user/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/EDID
  56. INCLUDES += -I$(ROOT_DIR)/user/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/Platform/Inc
  57. INCLUDES += -I$(USER_PQ_DIR)/inc
  58. INCLUDES += -I$(USER_DDCCI_DIR)/inc
  59. INCLUDES += -I$(SDK_VOS_DIR)/freertos/FreeRTOS/Include
  60. INCLUDES += -I$(SDK_VOS_DIR)/freertos/FreeRTOS/Source/include
  61. INCLUDES += -I$(SDK_VOS_DIR)/freertos/FreeRTOS/Source/portable/GCC/RISC32
  62. include $(BUILD_DIR)/compile/$(CONFIG_CHIP)/common.inc
  63. include $(SDK_MIDDLEWARE_DIR)/ChannelManager/Makefile.mk
  64. include $(SDK_MIDDLEWARE_DIR)/InputPortManager/Makefile.mk
  65. include $(SDK_MIDDLEWARE_DIR)/OSD/Makefile.mk
  66. include $(SDK_MIDDLEWARE_DIR)/BCON/Makefile.mk
  67. include $(SDK_MIDDLEWARE_DIR)/PanelManager/Makefile.mk
  68. include $(SDK_MIDDLEWARE_DIR)/PowerManager/Makefile.mk
  69. include $(SDK_MIDDLEWARE_DIR)/RunTime/Makefile.mk
  70. include $(SDK_MIDDLEWARE_DIR)/Factory/Makefile.mk
  71. include $(SDK_MIDDLEWARE_DIR)/Factory/Makefile.mk
  72. include $(USER_PQ_DIR)/Makefile.mk
  73. MIDDLEWARE_LIB=$(BUILD_OUT_IMG_DIR)/libmiddleware.a
  74. release:$(MIDDLEWARE_LIB)
  75. debug:$(MIDDLEWARE_LIB)
  76. MIDDLEWARE_NO_DIR_O = $(MIDDLEWARE_TARGET_O)
  77. MIDDLEWARE_WITH_DIR_O= $(addprefix $(BUILD_OUT_OBJ_DIR)/,$(MIDDLEWARE_NO_DIR_O))
  78. $(MIDDLEWARE_LIB):$(MIDDLEWARE_NO_DIR_O)
  79. $(HEADER)$(AR) qc $@ $(MIDDLEWARE_WITH_DIR_O)
  80. $(HEADER)$(RANLIB) $@