Makefile.mk 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. export SDK_WITH_OSD_TEST=no
  2. export SDK_WITH_OSD_GRAPHIC_TEST=no
  3. export SDK_OSD_TEST_ASYNC_REGEN=no
  4. export SDK_OSD_OUTPUT_IP_DATA=no
  5. VPATH += $(SDK_DRIVER_DIR)/OSD/drv/src
  6. INCLUDES += -I$(SDK_DRIVER_DIR)/OSD/drv/inc
  7. INCLUDES += -I$(SDK_DRIVER_DIR)/OSD/cal/$(CONFIG_CHIP)/inc
  8. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/RunTime/SystemTask/inc/
  9. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/ChannelManager/inc
  10. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/PowerManager/inc
  11. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/InputPortManager/inc
  12. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/PanelManager/inc
  13. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/OSD/inc
  14. INCLUDES += -I$(SDK_DIR)/Common/timer/inc
  15. INCLUDES += -I$(SDK_DRIVER_DIR)/DPU/Scaler/drv/inc
  16. INCLUDES += -I$(SDK_DRIVER_DIR)/Peripheral/Cal/$(CONFIG_CHIP)/Inc
  17. INCLUDES += -I$(USER_OSD_DIR)/
  18. INCLUDES += -I$(USER_OSD_DIR)/Common/inc
  19. INCLUDES += -I$(USER_OSD_DIR)/Resource/Matrix/include
  20. INCLUDES += -I$(USER_OSD_DIR)/Resource/Composer/inc
  21. INCLUDES += -I$(USER_OSD_DIR)/Resource
  22. INCLUDES += -I$(USER_DATABASE_DIR)/inc
  23. ifeq ($(CONFIG_USER_TJPG_SUPPORT), TJPG_ON)
  24. INCLUDES += -I$(SDK_DRIVER_DIR)/3rd/Tjpg
  25. endif
  26. ifeq ($(OSD_TEST), yes)
  27. C_DEF_FLAG += -DOSD_TEST
  28. endif
  29. ifeq ($(SDK_OSD_TEST_ASYNC_REGEN), yes)
  30. C_DEF_FLAG += -DOSD_TEST_ASYNC_REGEN
  31. endif
  32. ifeq ($(SDK_OSD_OUTPUT_IP_DATA), yes)
  33. C_DEF_FLAG += -DOSD_OUTPUT_IP_DATA
  34. endif
  35. OBJ_DRIVER_OSD_DRV_C = $(wildcard $(SDK_DRIVER_DIR)/OSD/drv/src/*.c)
  36. ifeq ($(SDK_WITH_OSD_TEST), yes)
  37. C_DEF_FLAG += -DSDK_WITH_OSD_TEST
  38. INCLUDES += -I$(SDK_DIR)/test/test_osd/inc
  39. INCLUDES += -I$(SDK_DIR)/test/test_osd/resource/inc
  40. VPATH += $(SDK_DIR)/test/test_osd
  41. VPATH += $(SDK_DIR)/test/test_osd/resource/src
  42. OBJ_DRIVER_OSD_DRV_C += $(wildcard $(SDK_DIR)/test/test_osd/*.c)
  43. OBJ_DRIVER_OSD_DRV_C += $(wildcard $(SDK_DIR)/test/test_osd/resource/src/*.c)
  44. ifeq ($(SDK_WITH_OSD_GRAPHIC_TEST), yes)
  45. C_DEF_FLAG += -DOSD_ENABLE_GRAPHIC_TEST
  46. VPATH += $(SDK_DIR)/test/test_osd/test_graphic
  47. OBJ_DRIVER_OSD_DRV_C += $(wildcard $(SDK_DIR)/test/test_osd/test_graphic/*.c)
  48. endif
  49. endif
  50. #OBJ_DRIVER_OSD_DRV_C += $(wildcard $(SDK_TEST_DIR)/OSD/drv/src/*.c)
  51. OBJ_DRIVER_OSD_DRV_C_NODIR = $(notdir $(OBJ_DRIVER_OSD_DRV_C))
  52. OBJ_DRIVER_OSD_DRV_C_O = $(OBJ_DRIVER_OSD_DRV_C_NODIR:%.c=%.o)
  53. DRIVER_TARGET_O += $(OBJ_DRIVER_OSD_DRV_C_O)