summaryrefslogtreecommitdiff
path: root/p230/p230.mk (plain)
blob: d70abf924af70bef037a889ca3ef353a96a0164c
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
177WIFI_MODULE := bcm4356
178include device/amlogic/common/wifi.mk
179
180# Change this to match target country
181# 11 North America; 14 Japan; 13 rest of world
182PRODUCT_DEFAULT_WIFI_CHANNELS := 11
183
184
185#########################################################################
186#
187# Bluetooth
188#
189#########################################################################
190
191BOARD_HAVE_BLUETOOTH := true
192BLUETOOTH_MODULE := bcm4356
193include device/amlogic/common/bluetooth.mk
194
195
196#########################################################################
197#
198# ConsumerIr
199#
200#########################################################################
201
202#PRODUCT_PACKAGES += \
203# consumerir.amlogic \
204# SmartRemote
205#PRODUCT_COPY_FILES += \
206# frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml
207
208
209#PRODUCT_PACKAGES += libbt-vendor
210
211ifeq ($(SUPPORT_HDMIIN),true)
212PRODUCT_PACKAGES += \
213 libhdmiin \
214 HdmiIn
215endif
216
217PRODUCT_COPY_FILES += \
218 frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml
219
220# Audio
221#
222BOARD_ALSA_AUDIO=tiny
223include device/amlogic/common/audio.mk
224
225#########################################################################
226#
227# Camera
228#
229#########################################################################
230
231ifneq ($(TARGET_BUILD_CTS), true)
232PRODUCT_COPY_FILES += \
233 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
234 frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml
235endif
236
237
238
239#########################################################################
240#
241# PlayReady DRM
242#
243#########################################################################
244#export BOARD_PLAYREADY_LEVEL=3 for PlayReady+NOTVP
245#export BOARD_PLAYREADY_LEVEL=1 for PlayReady+OPTEE+TVP
246#########################################################################
247#
248# Verimatrix DRM
249##########################################################################
250#verimatrix web
251BUILD_WITH_VIEWRIGHT_WEB := false
252#verimatrix stb
253BUILD_WITH_VIEWRIGHT_STB := false
254#########################################################################
255
256
257#DRM Widevine
258ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL),)
259BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 3
260endif
261
262ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL), 1)
263TARGET_USE_OPTEEOS := true
264TARGET_USE_HW_KEYMASTER := true
265endif
266
267$(call inherit-product, device/amlogic/common/media.mk)
268
269#########################################################################
270#
271# Languages
272#
273#########################################################################
274
275# For all locales, $(call inherit-product, build/target/product/languages_full.mk)
276PRODUCT_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 \
277 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 \
278 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 \
279 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 \
280 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 \
281 bn_BD ta_IN kn_IN te_IN uz_UZ ur_PK kk_KZ
282
283#################################################################################
284#
285# PPPOE
286#
287#################################################################################
288ifneq ($(TARGET_BUILD_GOOGLE_ATV), true)
289#BUILD_WITH_PPPOE := true
290endif
291
292ifeq ($(BUILD_WITH_PPPOE),true)
293PRODUCT_PACKAGES += \
294 PPPoE \
295 libpppoejni \
296 libpppoe \
297 pppoe_wrapper \
298 pppoe \
299 droidlogic.frameworks.pppoe \
300 droidlogic.external.pppoe \
301 droidlogic.software.pppoe.xml
302PRODUCT_PROPERTY_OVERRIDES += \
303 ro.platform.has.pppoe=true
304endif
305
306#################################################################################
307#
308# DEFAULT LOWMEMORYKILLER CONFIG
309#
310#################################################################################
311BUILD_WITH_LOWMEM_COMMON_CONFIG := true
312
313BOARD_USES_USB_PM := true
314
315PRODUCT_COPY_FILES += \
316 $(LOCAL_PATH)/Third_party_apk_camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/Third_party_apk_camera.xml \
317
318include device/amlogic/common/software.mk
319ifeq ($(TARGET_BUILD_GOOGLE_ATV),true)
320PRODUCT_PROPERTY_OVERRIDES += \
321 ro.sf.lcd_density=320
322else
323PRODUCT_PROPERTY_OVERRIDES += \
324 ro.sf.lcd_density=240
325endif
326
327
328#########################################################################
329#
330# A/B update
331#
332#########################################################################
333ifeq ($(AB_OTA_UPDATER),true)
334PRODUCT_PACKAGES += \
335 bootctrl.amlogic \
336 bootctl
337
338PRODUCT_PACKAGES += \
339 update_engine \
340 update_engine_client \
341 update_verifier \
342 delta_generator \
343 brillo_update_payload \
344 android.hardware.boot@1.0-impl \
345 android.hardware.boot@1.0-service
346endif
347#########################################################################
348#
349# OpenGLES Version
350#
351#########################################################################
352PRODUCT_PROPERTY_OVERRIDES += \
353 ro.opengles.version=131072
354