blob: 91bea189d3b00ab3f9ca4edd1f5230117578c846 [file] [log] [blame]
xjb04a4022021-11-25 15:01:52 +08001#
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
14MTK_GPU_VERSION = $(subst ",,$(CONFIG_MTK_GPU_VERSION))
15
16ifneq ($(CONFIG_MTK_GPU_SUPPORT),)
17 obj-y += ged/
18 obj-y += hal/
19 obj-y += gpufreq/
20 obj-y += gpu_bm/
21# GPU R5P0
22ifeq ($(CONFIG_MTK_GPU_R5P0),y)
23 obj-y += $(subst ",,$(CONFIG_MTK_PLATFORM))/
24else ifneq ($(word 1,$(MTK_GPU_VERSION)),)
25 obj-y += gpu_$(word 1,$(MTK_GPU_VERSION))/
26else
27 obj-y += $(subst ",,$(CONFIG_MTK_PLATFORM))/
28endif
29endif
30
31ifeq ($(CONFIG_GPU_VERSION_MALI_MIDGARD_R26P0),y)
32ifneq ($(CONFIG_MTK_GPU_SUPPORT),m)
33 obj-y += hal/
34 obj-y += gpu_mali/
35endif
36endif