summaryrefslogtreecommitdiff
path: root/einstein.mk (plain)
blob: 656dabbada943b2d5df23ea5ad3581ba5317207c
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
20ANDROID_BUILD_TYPE := 64
21# Dynamic enable start/stop zygote_secondary in 64bits
22# and 32bit system, default closed
23#TARGET_DYNAMIC_ZYGOTE_SECONDARY_ENABLE := true
24
25# Inherit from those products. Most specific first.
26ifneq ($(ANDROID_BUILD_TYPE), 32)
27ifeq ($(TARGET_DYNAMIC_ZYGOTE_SECONDARY_ENABLE), true)
28$(call inherit-product, device/amlogic/common/dynamic_zygote_seondary/dynamic_zygote_64_bit.mk)
29else
30$(call inherit-product, build/target/product/core_64_bit.mk)
31endif
32endif
33
34$(call inherit-product, device/amlogic/common/products/tv/product_tv.mk)
35$(call inherit-product, device/amlogic/einstein/device.mk)
36$(call inherit-product-if-exists, vendor/google/products/gms.mk)
37
38# einstein:
39
40
41PRODUCT_PROPERTY_OVERRIDES += \
42 sys.fb.bits=32 \
43 ro.hdmi.device_type=0
44
45PRODUCT_NAME := einstein
46PRODUCT_DEVICE := einstein
47PRODUCT_BRAND := Android
48PRODUCT_MODEL := AOSP on einstein
49PRODUCT_MANUFACTURER := amlogic
50
51TARGET_KERNEL_BUILT_FROM_SOURCE := false
52
53PRODUCT_TYPE := tv
54
55#BOARD_OLD_PARTITION := true
56
57WITH_LIBPLAYER_MODULE := false
58
59BOARD_AML_VENDOR_PATH := vendor/amlogic/ampere/
60BOARD_WIDEVINE_TA_PATH := vendor/amlogic/
61
62OTA_UP_PART_NUM_CHANGED := true
63
64#AB_OTA_UPDATER :=true
65
66ifeq ($(AB_OTA_UPDATER),true)
67AB_OTA_PARTITIONS := \
68 boot \
69 system
70
71ifneq ($(BOARD_OLD_PARTITION),true)
72AB_OTA_PARTITIONS += \
73 vendor \
74 odm
75endif
76
77TARGET_BOOTLOADER_CONTROL_BLOCK := true
78TARGET_NO_RECOVERY := true
79TARGET_PARTITION_DTSI := partition_mbox_ab.dtsi
80else
81TARGET_NO_RECOVERY := false
82
83ifneq ($(BOARD_OLD_PARTITION),true)
84TARGET_PARTITION_DTSI := partition_mbox_normal.dtsi
85else
86TARGET_PARTITION_DTSI := partition_tv_old.dtsi
87endif
88
89BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016
90BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
91endif
92
93#########Support compiling out encrypted zip/aml_upgrade_package.img directly
94#PRODUCT_BUILD_SECURE_BOOT_IMAGE_DIRECTLY := true
95PRODUCT_AML_SECUREBOOT_USERKEY := ./uboot/board/amlogic/txlx_t962x_r311_v1/aml-user-key.sig
96PRODUCT_AML_SECUREBOOT_SIGNTOOL := ./uboot/fip/txlx/aml_encrypt_txlx
97PRODUCT_AML_SECUREBOOT_SIGNBOOTLOADER := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --bootsig \
98 --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY) \
99 --aeskey enable
100PRODUCT_AML_SECUREBOOT_SIGNIMAGE := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --imgsig \
101 --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY)
102PRODUCT_AML_SECUREBOOT_SIGBIN := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --binsig \
103 --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY)
104
105########################################################################
106#
107# Live TV
108#
109########################################################################
110TARGET_BUILD_LIVETV := true
111
112########################################################################
113#
114# ATV
115#
116########################################################################
117ifneq ($(BOARD_COMPILE_ATV),false)
118BOARD_COMPILE_CTS := true
119TARGET_BUILD_GOOGLE_ATV:= true
120DONT_DEXPREOPT_PREBUILTS:= true
121endif
122########################################################################
123
124########################################################################
125#
126# CTS
127#
128########################################################################
129ifeq ($(BOARD_COMPILE_CTS),true)
130BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1
131BOARD_PLAYREADY_LEVEL := 1
132TARGET_BUILD_CTS:= true
133TARGET_BUILD_NETFLIX:= true
134endif
135########################################################################
136
137#########################################################################
138#
139# Dm-Verity
140#
141#########################################################################
142#BUILD_WITH_DM_VERITY := true
143#TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL := true
144ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true)
145BUILD_WITH_DM_VERITY := true
146endif # ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true)
147ifeq ($(BUILD_WITH_DM_VERITY), true)
148PRODUCT_PACKAGES += \
149 libfs_mgr \
150 fs_mgr \
151 slideshow
152endif
153ifneq ($(BOARD_OLD_PARTITION),true)
154ifneq ($(BOARD_USES_RECOVERY_AS_BOOT), true)
155ifeq ($(AB_OTA_UPDATER),true)
156ifeq ($(BUILD_WITH_DM_VERITY), true)
157PRODUCT_COPY_FILES += \
158 device/amlogic/einstein/fstab.AB.verity.amlogic:root/fstab.amlogic
159else
160PRODUCT_COPY_FILES += \
161 device/amlogic/einstein/fstab.AB.amlogic:root/fstab.amlogic
162endif
163else
164ifeq ($(BUILD_WITH_DM_VERITY), true)
165PRODUCT_COPY_FILES += \
166 device/amlogic/einstein/fstab.verity.amlogic:root/fstab.amlogic
167else
168PRODUCT_COPY_FILES += \
169 device/amlogic/einstein/fstab.amlogic:root/fstab.amlogic
170endif
171endif
172else
173ifeq ($(AB_OTA_UPDATER),true)
174ifeq ($(BUILD_WITH_DM_VERITY), true)
175PRODUCT_COPY_FILES += \
176 device/amlogic/einstein/fstab.AB.verity.amlogic:recovery/root/fstab.amlogic
177else
178PRODUCT_COPY_FILES += \
179 device/amlogic/einstein/fstab.AB.amlogic:recovery/root/fstab.amlogic
180endif
181else
182ifeq ($(BUILD_WITH_DM_VERITY), true)
183PRODUCT_COPY_FILES += \
184 device/amlogic/einstein/fstab.verity.amlogic:recovery/root/fstab.amlogic
185else
186PRODUCT_COPY_FILES += \
187 device/amlogic/einstein/fstab.amlogic:recovery/root/fstab.amlogic
188endif
189endif
190endif
191endif
192ifeq ($(BOARD_OLD_PARTITION),true)
193PRODUCT_COPY_FILES += \
194 device/amlogic/einstein/fstab.3.14.amlogic:root/fstab.amlogic
195endif
196
197#########################################################################
198#
199# WiFi
200#
201#########################################################################
202
203WIFI_MODULE := AP62x8
204WIFI_BUILD_IN := true
205include device/amlogic/common/wifi.mk
206
207# Change this to match target country
208# 11 North America; 14 Japan; 13 rest of world
209PRODUCT_DEFAULT_WIFI_CHANNELS := 11
210
211#########################################################################
212#
213# Bluetooth
214#
215#########################################################################
216
217BOARD_HAVE_BLUETOOTH := true
218BLUETOOTH_MODULE := AP62x8
219BCM_BLUETOOTH_LPM_ENABLE := true
220include device/amlogic/common/bluetooth.mk
221
222
223#########################################################################
224#
225# ConsumerIr
226#
227#########################################################################
228
229#PRODUCT_PACKAGES += \
230# consumerir.amlogic \
231# SmartRemote
232#PRODUCT_COPY_FILES += \
233# frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml
234
235
236#PRODUCT_PACKAGES += libbt-vendor
237
238ifeq ($(SUPPORT_HDMIIN),true)
239PRODUCT_PACKAGES += \
240 libhdmiin \
241 HdmiIn
242endif
243
244PRODUCT_COPY_FILES += \
245 frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml
246
247# Audio
248#
249BOARD_ALSA_AUDIO=tiny
250include device/amlogic/common/audio.mk
251
252#########################################################################
253#
254# Camera
255#
256#########################################################################
257
258ifneq ($(TARGET_BUILD_CTS), true)
259PRODUCT_COPY_FILES += \
260 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
261 frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml
262endif
263
264
265
266#########################################################################
267#
268# PlayReady DRM
269#
270#########################################################################
271#export BOARD_PLAYREADY_LEVEL=3 for PlayReady+NOTVP
272#export BOARD_PLAYREADY_LEVEL=1 for PlayReady+OPTEE+TVP
273#########################################################################
274#
275# Verimatrix DRM
276##########################################################################
277#verimatrix web
278BUILD_WITH_VIEWRIGHT_WEB := false
279#verimatrix stb
280BUILD_WITH_VIEWRIGHT_STB := false
281#########################################################################
282
283
284#DRM Widevine
285ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL),)
286BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 3
287endif
288
289ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL), 1)
290TARGET_USE_OPTEEOS := true
291TARGET_ENABLE_TA_SIGN := true
292TARGET_USE_HW_KEYMASTER := true
293endif
294
295$(call inherit-product, device/amlogic/common/media.mk)
296
297#########################################################################
298#
299# Languages
300#
301#########################################################################
302
303# For all locales, $(call inherit-product, build/target/product/languages_full.mk)
304PRODUCT_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 \
305 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 \
306 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 \
307 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 \
308 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 \
309 bn_BD ta_IN kn_IN te_IN uz_UZ ur_PK kk_KZ
310
311#################################################################################
312#
313# PPPOE
314#
315#################################################################################
316#ifneq ($(TARGET_BUILD_GOOGLE_ATV), true)
317#BUILD_WITH_PPPOE := true
318#endif
319
320ifeq ($(BUILD_WITH_PPPOE),true)
321PRODUCT_PACKAGES += \
322 PPPoE \
323 libpppoejni \
324 libpppoe \
325 pppoe_wrapper \
326 pppoe \
327 droidlogic.frameworks.pppoe \
328 droidlogic.external.pppoe \
329 droidlogic.software.pppoe.xml
330PRODUCT_PROPERTY_OVERRIDES += \
331 ro.platform.has.pppoe=true
332endif
333
334#################################################################################
335#
336# DEFAULT LOWMEMORYKILLER CONFIG
337#
338#################################################################################
339BUILD_WITH_LOWMEM_COMMON_CONFIG := true
340
341BOARD_USES_USB_PM := true
342
343PRODUCT_COPY_FILES += \
344 $(LOCAL_PATH)/Third_party_apk_camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/Third_party_apk_camera.xml \
345
346include device/amlogic/common/software.mk
347ifeq ($(TARGET_BUILD_GOOGLE_ATV),true)
348PRODUCT_PROPERTY_OVERRIDES += \
349 ro.sf.lcd_density=320
350else
351PRODUCT_PROPERTY_OVERRIDES += \
352 ro.sf.lcd_density=240
353endif
354
355# hdcp_tx22
356PRODUCT_COPY_FILES += \
357 device/amlogic/common/hdcp_tx22/hdcp_tx22:vendor/bin/hdcp_tx22
358
359#########################################################################
360#
361# A/B update
362#
363#########################################################################
364ifeq ($(AB_OTA_UPDATER),true)
365PRODUCT_PACKAGES += \
366 bootctrl.amlogic \
367 bootctl
368
369PRODUCT_PACKAGES += \
370 update_engine \
371 update_engine_client \
372 update_verifier \
373 delta_generator \
374 brillo_update_payload \
375 android.hardware.boot@1.0-impl \
376 android.hardware.boot@1.0-service
377endif
378#########################################################################
379#
380# OpenGLES Version
381#
382#########################################################################
383PRODUCT_PROPERTY_OVERRIDES += \
384 ro.opengles.version=131072
385