Makefile.mk 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. DRIVER_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)/Event
  11. INCLUDES += -I$(SDK_COMMON_DIR)/Assert
  12. INCLUDES += -I$(SDK_COMMON_DIR)/MemParser
  13. INCLUDES += -I$(SDK_COMMON_DIR)/Timer/inc
  14. INCLUDES += -I$(SDK_COMMON_DIR)/Util/HvQueue/inc
  15. INCLUDES += -I$(SDK_COMMON_DIR)/Util/Utilities/inc
  16. INCLUDES += -I$(SDK_COMMON_DIR)/TimingDatabase/inc
  17. INCLUDES += -I$(USER_DATABASE_DIR)/inc
  18. INCLUDES += -I$(USER_OSD_DIR)/Behaviour/inc
  19. INCLUDES += -I$(USER_DIR)/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)
  20. INCLUDES += -I$(USER_DIR)/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/Panel/inc
  21. INCLUDES += -I$(USER_DIR)/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/System
  22. INCLUDES += -I$(SDK_DRIVER_DIR)/Peripheral/Drv/Inc
  23. INCLUDES += -I$(SDK_VOS_DIR)/freertos/FreeRTOS/Include
  24. INCLUDES += -I$(SDK_VOS_DIR)/freertos/FreeRTOS/Source/include
  25. INCLUDES += -I$(SDK_VOS_DIR)/freertos/FreeRTOS/Source/portable/GCC/RISC32
  26. include $(BUILD_DIR)/compile/$(CONFIG_CHIP)/common.inc
  27. include $(SDK_DRIVER_DIR)/Audio/Makefile.mk
  28. include $(SDK_DRIVER_DIR)/Peripheral/Makefile.mk
  29. include $(SDK_DRIVER_DIR)/DPU/Makefile.mk
  30. include $(SDK_DRIVER_DIR)/HDMI/Makefile.mk
  31. include $(SDK_DRIVER_DIR)/PHY/Makefile.mk
  32. include $(SDK_DRIVER_DIR)/TX/Makefile.mk
  33. include $(SDK_DRIVER_DIR)/OSD/Makefile.mk
  34. include $(SDK_DRIVER_DIR)/HDCP/Makefile.mk
  35. include $(SDK_DRIVER_DIR)/DisplayPort/Makefile.mk
  36. include $(SDK_DRIVER_DIR)/Mailbox/Makefile.mk
  37. include $(SDK_DRIVER_DIR)/PLL/Makefile.mk
  38. include $(SDK_DRIVER_DIR)/3rd/Makefile.mk
  39. include $(SDK_DRIVER_DIR)/Ddcci/Makefile.mk
  40. ifeq ($(CONFIG_USER_USB_OTA),USB_OTA_ON)
  41. include $(SDK_DRIVER_DIR)/UsbHost/Makefile.mk
  42. endif
  43. ifeq ($(CONFIG_USER_USB_BILLBOARD),USB_BILLBOARD_ON)
  44. include $(SDK_DRIVER_DIR)/UsbBillboard/Makefile.mk
  45. endif
  46. ifeq ($(CONFIG_USER_TYPE_C),TYPE_C_ON)
  47. include $(SDK_DRIVER_DIR)/Typec/Makefile.mk
  48. endif
  49. include $(SDK_DRIVER_DIR)/Arch/$(CONFIG_CHIP)/Makefile.mk
  50. DRIVER_LIB=$(BUILD_OUT_IMG_DIR)/libdriver.a
  51. release:$(DRIVER_LIB)
  52. debug:$(DRIVER_LIB)
  53. DRIVER_NO_DIR_O = $(DRIVER_TARGET_O)
  54. DRIVER_WITH_DIR_O= $(addprefix $(BUILD_OUT_OBJ_DIR)/,$(DRIVER_NO_DIR_O))
  55. #$(error $(DRIVER_TARGET_O))
  56. $(DRIVER_LIB):$(DRIVER_NO_DIR_O)
  57. $(HEADER)$(AR) qc $@ $(DRIVER_WITH_DIR_O)
  58. $(HEADER)$(RANLIB) $@