forked from robherring/generic_device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKconfig
223 lines (167 loc) · 3.95 KB
/
Kconfig
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
mainmenu "Android Device Configuration"
menu "Target Architecture"
choice
prompt "Target Arch"
default ARCH_ARM64
config ARCH_ARM
bool "arm"
config ARCH_ARM64
bool "arm64"
select 64_BIT
config ARCH_X86_64
bool "x86_64"
select 64_BIT
endchoice
config 64_BIT
bool
config HAS_ARM_NEON
bool "Enable ARM Neon Support"
depends on ARCH_ARM
default y
config HAS_2ND_ARCH
bool "Include 2nd Arch" if 64_BIT
default y
config TARGET_ARCH
string
default "arm" if ARCH_ARM
default "arm64" if ARCH_ARM64
default "x86_64" if ARCH_X86_64
config TARGET_ARCH_VARIANT
string
default "armv7-a" if ARCH_ARM
default "armv7-a-neon" if HAS_ARM_NEON
default "armv8-a" if ARCH_ARM64
default "x86_64" if ARCH_X86_64
config TARGET_CPU_VARIANT
string
default "generic"
config TARGET_CPU_ABI
string
default "armeabi-v7a" if ARCH_ARM
default "arm64-v8a" if ARCH_ARM64
default "x86_64" if ARCH_X86_64
config TARGET_CPU_ABI2
string
default "armeabi" if ARCH_ARM
if HAS_2ND_ARCH
config TARGET_2ND_ARCH
string
default "arm" if ARCH_ARM64
default "x86" if ARCH_X86_64
config TARGET_2ND_ARCH_VARIANT
string
default "armv7-a-neon" if ARCH_ARM64
default "x86_64" if ARCH_X86_64
config TARGET_2ND_CPU_VARIANT
string
default "cortex-a15" if ARCH_ARM64
config TARGET_2ND_CPU_ABI
string
default "armeabi-v7a" if ARCH_ARM64
default "x86" if ARCH_X86_64
config TARGET_2ND_CPU_ABI2
string
default "armeabi" if ARCH_ARM64
endif
config TARGET_USES_64_BIT_BINDER
def_bool ARCH_ARM64 || ARCH_X86_64
choice
prompt "Device Type"
default TABLET
config TABLET
bool "Tablet"
config TV
bool "TV"
help
Configure the build for Android TV device.
This requires the LeanbackLauncher from fugu device available here:
https://dl.google.com/dl/android/aosp/google-fugu-3096662-f2671c41.tgz
endchoice
endmenu
menu "Dalvik/ART Heap Configuration"
# Default values are targeted towards 1G RAM
config DALVIK_VM_HEAPSIZE
int "VM Heap Size (MB)"
default 256
range 32 768
help
Typically this is sized to about 1/4 the total RAM size.
config DALVIK_VM_HEAPSTARTSIZE
int "VM Heap Start Size (MB)"
default 8
range 5 32
config DALVIK_VM_HEAPMAXFREE
int "VM Heap Max Free (MB)"
default 8
range 2 8
help
This is the target free space after growing/shrinking the heap. It
influences the frequency of garbage collection. Smaller values mean
more frequent GC.
config DALVIK_VM_HEAPGROWTHLIMIT
int "VM Heap Growth Limit (MB)"
default 96
range 96 256
help
Typically this is less than half the heap size.
endmenu
menu "Image Configuration"
config BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE
string
default "ext4" if SYSTEMIMAGE_FS_EXT4
default "squashfs" if SYSTEMIMAGE_FS_SQUASHFS
choice
prompt "System Image Filesystem Type"
default SYSTEMIMAGE_FS_EXT4
help
BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE
config SYSTEMIMAGE_FS_EXT4
bool "ext4"
config SYSTEMIMAGE_FS_SQUASHFS
bool "squashfs"
endchoice
config BOARD_SYSTEMIMAGE_PARTITION_SIZE
int "System Image Size"
default 734003200
help
BOARD_SYSTEMIMAGE_PARTITION_SIZE
config TARGET_USERIMAGES_SPARSE_EXT_DISABLED
bool "Disable sparse filesystem images"
help
TARGET_USERIMAGES_SPARSE_EXT_DISABLED
config DEX_PREOPT
bool "Enable .dex Pre-Optimations at build time"
endmenu
menuconfig KERNEL
bool "Kernel"
if KERNEL
config KERNEL_PATH
string "Kernel Image path"
default "kernel"
config BOARD_KERNEL_CMDLINE
string "Kernel Command Line"
help
Enter the kernel command line to be set in the bootimage.
config BOARD_KERNEL_BASE
hex "Kernel Base Address"
help
Base address to load the kernel
config RAMDISK_OFFSET
hex "Ramdisk offset"
help
Offset from Kernel Base Address to load the ramdisk
endif
config TARGET_NO_KERNEL
bool
default !KERNEL
menu "Device Support"
source "graphics/Kconfig"
config BOARD_HAVE_BLUETOOTH_LINUX
bool "Bluetooth support"
help
Select to enable Bluetooth support using standard Linux kernel BT
drivers.
source "wifi/Kconfig"
source "ethernet/Kconfig"
source "sensor/Kconfig"
endmenu