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