Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #
  2. # Copyright (C) 2015 MediaTek Inc.
  3. #
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License version 2 as
  6. # published by the Free Software Foundation.
  7. #
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. #
  13. GED_TOP = $(srctree)/drivers/misc/mediatek/gpu/ged
  14. MTK_TOP = $(srctree)/drivers/misc/mediatek/
  15. VER:=eng
  16. ifneq ($(strip $(TARGET_BUILD_VARIANT)),)
  17. ifneq ($(strip $(TARGET_BUILD_VARIANT)),eng)
  18. VER:=user
  19. ccflags-y += -DGED_LOG_SIZE_LIMITED
  20. endif
  21. endif
  22. ccflags-y += \
  23. -I$(srctree)/include/ \
  24. -I$(MTK_TOP)/include/ \
  25. -I$(GED_TOP)/include/ \
  26. -I$(MTK_TOP)/base/power/$(subst ",,$(CONFIG_MTK_PLATFORM))/
  27. $(info $$CONFIG_MTK_GPU_COMMON_DVFS_SUPPORT is [${CONFIG_MTK_GPU_COMMON_DVFS_SUPPORT}])
  28. ifeq ($(CONFIG_MTK_GPU_COMMON_DVFS_SUPPORT),y)
  29. ccflags-y += -DGED_DVFS_ENABLE \
  30. -DENABLE_COMMON_DVFS \
  31. -DENABLE_TIMER_BACKUP
  32. endif
  33. ccflags-y += -DGED_DVFS_DEBUG_BUF
  34. ccflags-y += \
  35. -include $(GED_TOP)/include/config_kernel_$(VER).h
  36. obj-y += ged.o
  37. ged-y += \
  38. src/ged_base.o \
  39. src/ged_main.o \
  40. src/ged_debugFS.o \
  41. src/ged_log.o \
  42. src/ged_hal.o \
  43. src/ged_bridge.o \
  44. src/ged_profile_dvfs.o \
  45. src/ged_monitor_3D_fence.o \
  46. src/ged_notify_sw_vsync.o \
  47. src/ged_hashtable.o \
  48. src/ged_thread.o \
  49. src/ged_dvfs.o