-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bp
102 lines (97 loc) · 2.85 KB
/
build.bp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*
*
* (C) COPYRIGHT 2016-2020 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
* Foundation, and any use by you of this program is subject to the terms
* of such GNU licence.
*
* A copy of the licence is included with the program, and can also be obtained
* from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
*/
bob_install_group {
name: "IG_kernel_modules",
android: {
install_path: "{{.module_path}}",
},
linux: {
install_path: "{{.install_dir}}/{{.module_path}}",
},
}
bob_defaults {
name: "kernel_defaults",
enabled: false,
exclude_srcs: [
"**/*.mod.c",
],
local_include_dirs: [
"include",
],
build_kernel_modules: {
enabled: true,
kernel_dir: "{{.kernel_dir}}",
kernel_cross_compile: "{{.kernel_compiler}}",
kernel_cc: "{{.kernel_cc}}",
kernel_hostcc: "{{.kernel_hostcc}}",
kernel_clang_triple: "{{.kernel_clang_triple}}",
kernel_ld: "{{.kernel_ld}}",
},
install_group: "IG_kernel_modules",
cflags: [
"-Wall",
],
werror: {
cflags: ["-Werror"],
},
allow_android_tags: {
tags: [
"eng",
"optional",
],
},
kbuild_options: [
// Start of CS experimental features definitions.
// If there is nothing below, definition should be added as follows:
// "MALI_EXPERIMENTAL_FEATURE={{.experimental_feature}}"
// experimental_feature above comes from Mconfig in
// <ddk_root>/product/base/
// However, in Mconfig, experimental_feature should be looked up (for
// similar explanation to this one) as ALLCAPS, i.e.
// EXPERIMENTAL_FEATURE.
//
// IMPORTANT: MALI_CS_EXPERIMENTAL should NEVER be defined below as it
// is an umbrella feature that would be open for inappropriate use
// (catch-all for experimental CS code without separating it into
// different features).
"MALI_JIT_PRESSURE_LIMIT={{.jit_pressure_limit}}",
"MALI_INCREMENTAL_RENDERING={{.incremental_rendering}}",
],
}
bob_defaults {
name: "kutf_includes",
local_include_dirs: [
"drivers/gpu/arm/midgard/tests/include",
],
}
bob_defaults {
name: "kernel_test_includes",
defaults: ["kutf_includes"],
local_include_dirs: [
"drivers/gpu/arm",
"drivers/gpu/arm/midgard",
"drivers/gpu/arm/midgard/backend/gpu",
"drivers/gpu/arm/midgard/debug",
"drivers/gpu/arm/midgard/debug/backend",
],
}
bob_alias {
name: "kernel",
srcs: [
"dma-buf-test-exporter",
"memory_group_manager",
"mali_kbase",
],
}