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