summaryrefslogtreecommitdiff
path: root/braun.mk (plain)
blob: 5f30e14296bd788a3f860e748fcaffe723d150a1
1# Copyright (C) 2011 Amlogic Inc
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15#
16# This file is the build configuration for a full Android
17# build for Meson reference board.
18#
19
20# Dynamic enable start/stop zygote_secondary in 64bits
21# and 32bit system, default closed
22#TARGET_DYNAMIC_ZYGOTE_SECONDARY_ENABLE := true
23
24# Inherit from those products. Most specific first.
25ifneq ($(ANDROID_BUILD_TYPE), 32)
26ifeq ($(TARGET_DYNAMIC_ZYGOTE_SECONDARY_ENABLE), true)
27$(call inherit-product, device/amlogic/common/dynamic_zygote_seondary/dynamic_zygote_64_bit.mk)
28else
29$(call inherit-product, build/target/product/core_64_bit.mk)
30endif
31endif
32
33$(call inherit-product, device/amlogic/common/products/mbox/product_mbox.mk)
34$(call inherit-product, device/amlogic/braun/device.mk)
35$(call inherit-product-if-exists, vendor/google/products/gms.mk)
36
37# braun:
38
39PRODUCT_PROPERTY_OVERRIDES += \
40 ro.hdmi.device_type=4 \
41 persist.sys.hdmi.keep_awake=false
42
43PRODUCT_NAME := braun
44PRODUCT_DEVICE := braun
45PRODUCT_BRAND := Amlogic
46PRODUCT_MODEL := braun
47PRODUCT_MANUFACTURER := Amlogic
48
49TARGET_KERNEL_BUILT_FROM_SOURCE := false
50
51PRODUCT_TYPE := mbox
52
53WITH_LIBPLAYER_MODULE := false
54
55OTA_UP_PART_NUM_CHANGED := true
56
57BOARD_AML_VENDOR_PATH := vendor/amlogic/ampere/
58
59BOARD_WIDEVINE_TA_PATH := vendor/amlogic/
60
61AB_OTA_UPDATER :=true
62
63ifeq ($(AB_OTA_UPDATER),true)
64AB_OTA_PARTITIONS := \
65 boot \
66 system
67
68ifneq ($(BOARD_OLD_PARTITION),true)
69AB_OTA_PARTITIONS += \
70 vendor \
71 odm
72endif
73
74TARGET_BOOTLOADER_CONTROL_BLOCK := true
75TARGET_NO_RECOVERY := true
76TARGET_PARTITION_DTSI := partition_mbox_ab.dtsi
77else
78TARGET_NO_RECOVERY := false
79
80ifneq ($(BOARD_OLD_PARTITION),true)
81TARGET_PARTITION_DTSI := partition_mbox_normal.dtsi
82else
83TARGET_PARTITION_DTSI := partition_mbox_old.dtsi
84endif
85
86BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016
87BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
88endif
89
90#########Support compiling out encrypted zip/aml_upgrade_package.img directly
91#PRODUCT_BUILD_SECURE_BOOT_IMAGE_DIRECTLY := true
92PRODUCT_AML_SECUREBOOT_USERKEY := ./uboot/board/amlogic/p230_v1/aml-user-key.sig
93PRODUCT_AML_SECUREBOOT_SIGNTOOL := ./uboot/fip/gxl/aml_encrypt_gxl
94PRODUCT_AML_SECUREBOOT_SIGNBOOTLOADER := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --bootsig \
95 --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY) \
96 --aeskey enable
97PRODUCT_AML_SECUREBOOT_SIGNIMAGE := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --imgsig \
98 --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY)
99PRODUCT_AML_SECUREBOOT_SIGBIN := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --binsig \
100 --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY)
101
102########################################################################
103#
104# ATV
105#
106########################################################################
107ifeq ($(BOARD_COMPILE_ATV),true)
108BOARD_COMPILE_CTS := true
109TARGET_BUILD_GOOGLE_ATV:= true
110DONT_DEXPREOPT_PREBUILTS:= true
111endif
112########################################################################
113
114########################################################################
115#
116# CTS
117#
118########################################################################
119ifeq ($(BOARD_COMPILE_CTS),true)
120BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1
121BOARD_PLAYREADY_LEVEL := 1
122TARGET_BUILD_CTS:= true
123TARGET_BUILD_NETFLIX:= true
124endif
125########################################################################
126
127#########################################################################
128#
129# Dm-Verity
130#
131#########################################################################
132BUILD_WITH_DM_VERITY := true
133#TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL := true
134ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true)
135BUILD_WITH_DM_VERITY := true
136endif # ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true)
137ifeq ($(BUILD_WITH_DM_VERITY), true)
138PRODUCT_PACKAGES += \
139 libfs_mgr \
140 fs_mgr \
141 slideshow
142endif
143ifneq ($(BOARD_OLD_PARTITION),true)
144ifneq ($(BOARD_USES_RECOVERY_AS_BOOT), true)
145ifeq ($(AB_OTA_UPDATER),true)
146ifeq ($(BUILD_WITH_DM_VERITY), true)
147PRODUCT_COPY_FILES += \
148 device/amlogic/braun/fstab.AB.verity.amlogic:root/fstab.amlogic
149else
150PRODUCT_COPY_FILES += \
151 device/amlogic/braun/fstab.AB.amlogic:root/fstab.amlogic
152endif
153else
154ifeq ($(BUILD_WITH_DM_VERITY), true)
155PRODUCT_COPY_FILES += \
156 device/amlogic/braun/fstab.verity.amlogic:root/fstab.amlogic
157else
158PRODUCT_COPY_FILES += \
159 device/amlogic/braun/fstab.amlogic:root/fstab.amlogic
160endif
161endif
162else
163ifeq ($(AB_OTA_UPDATER),true)
164ifeq ($(BUILD_WITH_DM_VERITY), true)
165PRODUCT_COPY_FILES += \
166 device/amlogic/braun/fstab.AB.verity.amlogic:recovery/root/fstab.amlogic
167else
168PRODUCT_COPY_FILES += \
169 device/amlogic/braun/fstab.AB.amlogic:recovery/root/fstab.amlogic
170endif
171else
172ifeq ($(BUILD_WITH_DM_VERITY), true)
173PRODUCT_COPY_FILES += \
174 device/amlogic/braun/fstab.verity.amlogic:recovery/root/fstab.amlogic
175else
176PRODUCT_COPY_FILES += \
177 device/amlogic/braun/fstab.amlogic:recovery/root/fstab.amlogic
178endif
179endif
180endif
181endif
182
183#########################################################################
184#
185# WiFi
186#
187#########################################################################
188
189#MULTI_WIFI_SUPPORT := true
190WIFI_MODULE := bcm4356
191WIFI_BUILD_IN := true
192include device/amlogic/common/wifi.mk
193
194# Change this to match target country
195# 11 North America; 14 Japan; 13 rest of world
196PRODUCT_DEFAULT_WIFI_CHANNELS := 11
197
198
199#########################################################################
200#
201# Bluetooth
202#
203#########################################################################
204
205BOARD_HAVE_BLUETOOTH := true
206BLUETOOTH_MODULE := bcm4356
207#MULTI_BLUETOOTH_SUPPORT := true
208BCM_BLUETOOTH_LPM_ENABLE := true
209include device/amlogic/common/bluetooth.mk
210
211
212#########################################################################
213#
214# ConsumerIr
215#
216#########################################################################
217
218#PRODUCT_PACKAGES += \
219# consumerir.amlogic \
220# SmartRemote
221#PRODUCT_COPY_FILES += \
222# frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml
223
224
225#PRODUCT_PACKAGES += libbt-vendor
226
227ifeq ($(SUPPORT_HDMIIN),true)
228PRODUCT_PACKAGES += \
229 libhdmiin \
230 HdmiIn
231endif
232
233PRODUCT_COPY_FILES += \
234 frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml
235
236# Audio
237#
238BOARD_ALSA_AUDIO=tiny
239include device/amlogic/common/audio.mk
240
241#########################################################################
242#
243# Camera
244#
245#########################################################################
246
247ifneq ($(TARGET_BUILD_CTS), true)
248PRODUCT_COPY_FILES += \
249 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
250 frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml
251endif
252
253
254
255#########################################################################
256#
257# PlayReady DRM
258#
259#########################################################################
260#export BOARD_PLAYREADY_LEVEL=3 for PlayReady+NOTVP
261#export BOARD_PLAYREADY_LEVEL=1 for PlayReady+OPTEE+TVP
262#########################################################################
263#
264# Verimatrix DRM
265##########################################################################
266#verimatrix web
267BUILD_WITH_VIEWRIGHT_WEB := false
268#verimatrix stb
269BUILD_WITH_VIEWRIGHT_STB := false
270#########################################################################
271
272
273#DRM Widevine
274ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL),)
275BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 3
276endif
277
278ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL), 1)
279TARGET_USE_OPTEEOS := true
280TARGET_USE_HW_KEYMASTER := true
281endif
282
283$(call inherit-product, device/amlogic/common/media.mk)
284
285#########################################################################
286#
287# Languages
288#
289#########################################################################
290
291# For all locales, $(call inherit-product, build/target/product/languages_full.mk)
292PRODUCT_LOCALES := en_US en_AU en_IN fr_FR it_IT es_ES et_EE de_DE nl_NL cs_CZ pl_PL ja_JP \
293 zh_TW zh_CN zh_HK ru_RU ko_KR nb_NO es_US da_DK el_GR tr_TR pt_PT pt_BR rm_CH sv_SE bg_BG \
294 ca_ES en_GB fi_FI hi_IN hr_HR hu_HU in_ID iw_IL lt_LT lv_LV ro_RO sk_SK sl_SI sr_RS uk_UA \
295 vi_VN tl_PH ar_EG fa_IR th_TH sw_TZ ms_MY af_ZA zu_ZA am_ET hi_IN en_XA ar_XB fr_CA km_KH \
296 lo_LA ne_NP si_LK mn_MN hy_AM az_AZ ka_GE my_MM mr_IN ml_IN is_IS mk_MK ky_KG eu_ES gl_ES \
297 bn_BD ta_IN kn_IN te_IN uz_UZ ur_PK kk_KZ
298
299#################################################################################
300#
301# PPPOE
302#
303#################################################################################
304ifneq ($(TARGET_BUILD_GOOGLE_ATV), true)
305#BUILD_WITH_PPPOE := true
306endif
307
308ifeq ($(BUILD_WITH_PPPOE),true)
309PRODUCT_PACKAGES += \
310 PPPoE \
311 libpppoejni \
312 libpppoe \
313 pppoe_wrapper \
314 pppoe \
315 droidlogic.frameworks.pppoe \
316 droidlogic.external.pppoe \
317 droidlogic.software.pppoe.xml
318PRODUCT_PROPERTY_OVERRIDES += \
319 ro.platform.has.pppoe=true
320endif
321
322#################################################################################
323#
324# DEFAULT LOWMEMORYKILLER CONFIG
325#
326#################################################################################
327BUILD_WITH_LOWMEM_COMMON_CONFIG := true
328
329BOARD_USES_USB_PM := true
330
331PRODUCT_COPY_FILES += \
332 $(LOCAL_PATH)/Third_party_apk_camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/Third_party_apk_camera.xml \
333
334include device/amlogic/common/software.mk
335ifeq ($(TARGET_BUILD_GOOGLE_ATV),true)
336PRODUCT_PROPERTY_OVERRIDES += \
337 ro.sf.lcd_density=320
338else
339PRODUCT_PROPERTY_OVERRIDES += \
340 ro.sf.lcd_density=240
341endif
342
343
344#########################################################################
345#
346# A/B update
347#
348#########################################################################
349ifeq ($(AB_OTA_UPDATER),true)
350PRODUCT_PACKAGES += \
351 bootctrl.amlogic \
352 bootctl
353
354PRODUCT_PACKAGES += \
355 update_engine \
356 update_engine_client \
357 update_verifier \
358 delta_generator \
359 brillo_update_payload \
360 android.hardware.boot@1.0-impl \
361 android.hardware.boot@1.0-service
362endif
363#########################################################################
364#
365# OpenGLES Version
366#
367#########################################################################
368PRODUCT_PROPERTY_OVERRIDES += \
369 ro.opengles.version=131072
370