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