summaryrefslogtreecommitdiff
path: root/darwin.mk (plain)
blob: 76f768d031253a69b83764e00e021ea92d626766
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=5
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
63BUILD_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# ATV
116#
117########################################################################
118ifneq ($(BOARD_COMPILE_ATV),false)
119BOARD_COMPILE_CTS := true
120TARGET_BUILD_GOOGLE_ATV:= true
121DONT_DEXPREOPT_PREBUILTS:= true
122endif
123########################################################################
124
125########################################################################
126#
127# Live TV
128#
129########################################################################
130ifneq ($(TARGET_BUILD_GOOGLE_ATV),true)
131TARGET_BUILD_LIVETV := true
132endif
133
134########################################################################
135#
136# CTS
137#
138########################################################################
139ifeq ($(BOARD_COMPILE_CTS),true)
140BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1
141BOARD_PLAYREADY_LEVEL := 1
142TARGET_BUILD_CTS:= true
143TARGET_BUILD_NETFLIX:= true
144endif
145########################################################################
146
147#########################################################################
148#
149# Dm-Verity
150#
151#########################################################################
152#BUILD_WITH_DM_VERITY := true
153#TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL := true
154ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true)
155BUILD_WITH_DM_VERITY := true
156endif # ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true)
157ifeq ($(BUILD_WITH_DM_VERITY), true)
158PRODUCT_PACKAGES += \
159 libfs_mgr \
160 fs_mgr \
161 slideshow
162endif
163ifneq ($(BOARD_USES_RECOVERY_AS_BOOT), true)
164PRODUCT_COPY_FILES += \
165 device/amlogic/darwin/fstab.amlogic:root/fstab.amlogic
166else
167PRODUCT_COPY_FILES += \
168 device/amlogic/darwin/fstab.amlogic:recovery/root/fstab.amlogic
169endif
170
171ifeq ($(BUILD_WITH_AVB),true)
172BOARD_AVB_ENABLE := true
173BOARD_AVB_ALGORITHM := SHA256_RSA2048
174BOARD_AVB_KEY_PATH := device/amlogic/common/security/testkey_rsa2048.pem
175BOARD_AVB_ROLLBACK_INDEX := 0
176endif
177
178#########################################################################
179#
180# WiFi
181#
182#########################################################################
183
184WIFI_MODULE := bcm4356
185WIFI_BUILD_IN := true
186include device/amlogic/common/wifi.mk
187
188# Change this to match target country
189# 11 North America; 14 Japan; 13 rest of world
190PRODUCT_DEFAULT_WIFI_CHANNELS := 11
191#PRODUCT_COPY_FILES += \
192# $(LOCAL_PATH)/wifi/config.txt:system/etc/wifi/4354/config.txt
193
194#########################################################################
195#
196# Bluetooth
197#
198#########################################################################
199
200BOARD_HAVE_BLUETOOTH := true
201BCMBT_SUPPORT := true
202#MULTI_BLUETOOTH_SUPPORT := true
203BCM_BLUETOOTH_LPM_ENABLE := true
204include device/amlogic/common/bluetooth.mk
205
206
207#########################################################################
208#
209# ConsumerIr
210#
211#########################################################################
212
213#PRODUCT_PACKAGES += \
214# consumerir.amlogic \
215# SmartRemote
216#PRODUCT_COPY_FILES += \
217# frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml
218
219
220#PRODUCT_PACKAGES += libbt-vendor
221
222ifeq ($(SUPPORT_HDMIIN),true)
223PRODUCT_PACKAGES += \
224 libhdmiin \
225 HdmiIn
226endif
227
228PRODUCT_COPY_FILES += \
229 frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml
230
231# Audio
232#
233BOARD_ALSA_AUDIO=tiny
234include device/amlogic/common/audio.mk
235
236#########################################################################
237#
238# Camera
239#
240#########################################################################
241
242ifneq ($(TARGET_BUILD_CTS), true)
243PRODUCT_COPY_FILES += \
244 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
245 frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml
246endif
247
248
249
250#########################################################################
251#
252# PlayReady DRM
253#
254#########################################################################
255#export BOARD_PLAYREADY_LEVEL=3 for PlayReady+NOTVP
256#export BOARD_PLAYREADY_LEVEL=1 for PlayReady+OPTEE+TVP
257#########################################################################
258#
259# Verimatrix DRM
260##########################################################################
261#verimatrix web
262BUILD_WITH_VIEWRIGHT_WEB := false
263#verimatrix stb
264BUILD_WITH_VIEWRIGHT_STB := false
265#########################################################################
266
267
268#DRM Widevine
269ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL),)
270BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 3
271endif
272
273ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL), 1)
274TARGET_USE_OPTEEOS := true
275TARGET_ENABLE_TA_SIGN := false
276TARGET_USE_HW_KEYMASTER := true
277endif
278
279$(call inherit-product, device/amlogic/common/media.mk)
280
281#########################################################################
282#
283# Languages
284#
285#########################################################################
286
287# For all locales, $(call inherit-product, build/target/product/languages_full.mk)
288PRODUCT_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 \
289 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 \
290 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 \
291 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 \
292 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 \
293 bn_BD ta_IN kn_IN te_IN uz_UZ ur_PK kk_KZ
294
295#################################################################################
296#
297# PPPOE
298#
299#################################################################################
300#ifneq ($(TARGET_BUILD_GOOGLE_ATV), true)
301#BUILD_WITH_PPPOE := false
302#endif
303
304ifeq ($(BUILD_WITH_PPPOE),true)
305PRODUCT_PACKAGES += \
306 PPPoE \
307 libpppoejni \
308 libpppoe \
309 pppoe_wrapper \
310 pppoe \
311 droidlogic.frameworks.pppoe \
312 droidlogic.external.pppoe \
313 droidlogic.software.pppoe.xml
314PRODUCT_PROPERTY_OVERRIDES += \
315 ro.platform.has.pppoe=true
316endif
317
318#################################################################################
319#
320# DEFAULT LOWMEMORYKILLER CONFIG
321#
322#################################################################################
323BUILD_WITH_LOWMEM_COMMON_CONFIG := true
324
325BOARD_USES_USB_PM := true
326
327
328include device/amlogic/common/software.mk
329ifeq ($(TARGET_BUILD_GOOGLE_ATV),true)
330PRODUCT_PROPERTY_OVERRIDES += \
331 ro.sf.lcd_density=320
332else
333PRODUCT_PROPERTY_OVERRIDES += \
334 ro.sf.lcd_density=240
335endif
336
337# hdcp_tx22
338PRODUCT_COPY_FILES += \
339 device/amlogic/common/hdcp_tx22/hdcp_tx22:vendor/bin/hdcp_tx22
340
341#########################################################################
342#
343# A/B update
344#
345#########################################################################
346ifeq ($(BUILD_WITH_AVB),true)
347PRODUCT_PACKAGES += \
348 bootctrl.avb \
349 libavb_user
350endif
351
352ifeq ($(AB_OTA_UPDATER),true)
353PRODUCT_PACKAGES += \
354 bootctrl.amlogic \
355 bootctl
356
357PRODUCT_PACKAGES += \
358 update_engine \
359 update_engine_client \
360 update_verifier \
361 delta_generator \
362 brillo_update_payload \
363 android.hardware.boot@1.0-impl \
364 android.hardware.boot@1.0-service
365endif
366
367include device/amlogic/common/gpu/mali450-user-arm64.mk
368
369