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