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