xref: /OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/hwcnt/Kbuild (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1# SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
2#
3# (C) COPYRIGHT 2022 ARM Limited. All rights reserved.
4#
5# This program is free software and is provided to you under the terms of the
6# GNU General Public License version 2 as published by the Free Software
7# Foundation, and any use by you of this program is subject to the terms
8# of such GNU license.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, you can access it online at
17# http://www.gnu.org/licenses/gpl-2.0.html.
18#
19#
20
21bifrost_kbase-y += \
22    hwcnt/mali_kbase_hwcnt.o \
23    hwcnt/mali_kbase_hwcnt_gpu.o \
24    hwcnt/mali_kbase_hwcnt_gpu_narrow.o \
25    hwcnt/mali_kbase_hwcnt_types.o \
26    hwcnt/mali_kbase_hwcnt_virtualizer.o \
27    hwcnt/mali_kbase_hwcnt_watchdog_if_timer.o
28
29ifeq ($(CONFIG_MALI_CSF_SUPPORT),y)
30    bifrost_kbase-y += \
31        hwcnt/backend/mali_kbase_hwcnt_backend_csf.o \
32        hwcnt/backend/mali_kbase_hwcnt_backend_csf_if_fw.o
33else
34    bifrost_kbase-y += \
35        hwcnt/backend/mali_kbase_hwcnt_backend_jm.o \
36        hwcnt/backend/mali_kbase_hwcnt_backend_jm_watchdog.o
37endif
38