xref: /OK3568_Linux_fs/kernel/drivers/hwtracing/coresight/mali/build.bp (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2/*
3 *
4 * (C) COPYRIGHT 2022 ARM Limited. All rights reserved.
5 *
6 * This program is free software and is provided to you under the terms of the
7 * GNU General Public License version 2 as published by the Free Software
8 * Foundation, and any use by you of this program is subject to the terms
9 * of such GNU license.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, you can access it online at
18 * http://www.gnu.org/licenses/gpl-2.0.html.
19 *
20 */
21
22bob_defaults {
23    name: "coresight_mali_defaults",
24    srcs: [
25        "Makefile",
26        "Kbuild",
27        "coresight_mali_common.c",
28        "coresight_mali_common.h",
29    ],
30}
31
32bob_defaults {
33    name: "coresight_mali_source_defaults",
34    srcs: [
35        "sources/coresight_mali_sources.c",
36        "sources/coresight_mali_sources.h",
37    ],
38}
39
40
41bob_kernel_module {
42    name: "coresight_mali_source_etm",
43    defaults: [
44        "kernel_defaults",
45        "coresight_mali_defaults",
46        "coresight_mali_source_defaults",
47    ],
48    srcs: [
49        "sources/etm/coresight_mali_source_etm_core.c",
50    ],
51    extra_symbols: [
52        "mali_kbase",
53    ],
54    enabled: false,
55    mali_coresight: {
56        kbuild_options: ["CONFIG_CORESIGHT_MALI_SOURCES_ETM=y"],
57        enabled: true,
58    },
59}
60
61bob_kernel_module {
62    name: "coresight_mali_source_itm",
63    defaults: [
64        "kernel_defaults",
65        "coresight_mali_defaults",
66        "coresight_mali_source_defaults",
67    ],
68    srcs: [
69        "sources/itm/coresight_mali_source_itm_core.c",
70    ],
71    extra_symbols: [
72        "mali_kbase",
73    ],
74    enabled: false,
75    mali_coresight: {
76        kbuild_options: ["CONFIG_CORESIGHT_MALI_SOURCES_ITM=y"],
77        enabled: true,
78    },
79}
80
81bob_kernel_module {
82    name: "coresight_mali_source_ela",
83    defaults: [
84        "kernel_defaults",
85        "coresight_mali_defaults",
86        "coresight_mali_source_defaults",
87    ],
88    srcs: [
89        "sources/ela/coresight_mali_source_ela_core.c",
90        "sources/ela/coresight-ela600.h"
91    ],
92    extra_symbols: [
93        "mali_kbase",
94    ],
95    enabled: false,
96    mali_coresight: {
97        kbuild_options: ["CONFIG_CORESIGHT_MALI_SOURCES_ELA=y"],
98        enabled: true,
99    },
100}
101