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