-
Notifications
You must be signed in to change notification settings - Fork 1
/
odroidc4.mk
140 lines (109 loc) · 4.04 KB
/
odroidc4.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# Copyright (C) 2018 HardKernel Co., Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This file is the build configuration for a full Android
# build for Meson reference board.
#
# Dynamic enable start/stop zygote_secondary in 64bits
# and 32bit system, default closed
#
ANDROID_BUILD_TYPE := 64
#TARGET_DYNAMIC_ZYGOTE_SECONDARY_ENABLE := true
# Inherit from those products. Most specific first.
ifeq ($(ANDROID_BUILD_TYPE), 64)
ifeq ($(TARGET_DYNAMIC_ZYGOTE_SECONDARY_ENABLE), true)
$(call inherit-product, device/hardkernel/common/dynamic_zygote_seondary/dynamic_zygote_64_bit.mk)
else
$(call inherit-product, build/target/product/core_64_bit.mk)
endif
endif
BOARD_INSTALL_VULKAN := true
$(call inherit-product, build/target/product/languages_full.mk)
$(call inherit-product, device/hardkernel/odroidc4/vendor_prop.mk)
$(call inherit-product, device/hardkernel/common/products/mbox/product_mbox.mk)
$(call inherit-product, device/hardkernel/odroidc4/device.mk)
# Media extension
TARGET_WITH_MEDIA_EXT_LEVEL := 4
TARGET_WITH_MEDIA_EXT :=true
TARGET_WITH_SWCODEC_EXT := true
TARGET_WITH_CODEC_EXT := true
TARGET_WITH_PLAYERS_EXT := true
PRODUCT_NAME := odroidc4
PRODUCT_DEVICE := odroidc4
PRODUCT_BRAND := ODROID
PRODUCT_MODEL := ODROID-C4
PRODUCT_MANUFACTURER := HardKernel Co., Ltd.
PRODUCT_TYPE := mbox
WITH_LIBPLAYER_MODULE := false
OTA_UP_PART_NUM_CHANGED := false
BOARD_AML_VENDOR_PATH := vendor/amlogic/common/
# dtsi
TARGET_PARTITION_DTSI := partition_mbox_ab.dtsi
TARGET_PARTITION_DTSI := partition_mbox_normal_P_64.dtsi
TARGET_FIRMWARE_DTSI := firmware_normal.dtsi
# WiFi
WIFI_MODULE := multiwifi
include device/hardkernel/common/wifi.mk
# Change this to match target country
# 11 North America; 14 Japan; 13 rest of world
PRODUCT_DEFAULT_WIFI_CHANNELS := 11
# Bluetooth
TARGET_SUPPORT_COMBO := false
BOARD_HAVE_BLUETOOTH := true
ifeq ($(TARGET_SUPPORT_COMBO), true)
BOARD_HAVE_BLUETOOTH_BCM := true
endif
include device/hardkernel/common/bluetooth.mk
# Audio
BOARD_ALSA_AUDIO=tiny
BOARD_HAVE_HARDWARE_EQDRC_AUGE := true
include device/hardkernel/common/audio.mk
# DRM Widevine
BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 3
$(call inherit-product, device/hardkernel/common/media.mk)
# LowMemoryKiller
BUILD_WITH_LOWMEM_COMMON_CONFIG := true
include device/hardkernel/common/software.mk
ifeq ($(TARGET_BUILD_GOOGLE_ATV),true)
DEVICE_MANIFEST_FILE := device/hardkernel/common/products/mbox/manifest/manifest_gtvs.xml
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=320
else
DEVICE_MANIFEST_FILE := device/hardkernel/common/products/mbox/manifest/manifest_aosp.xml
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=240
endif
# GPS
PRODUCT_PACKAGES += gps.$(PRODUCT_DEVICE)
# VU backlights
PRODUCT_PACKAGES += lights.$(PRODUCT_DEVICE)
# U-Boot Env Tools
PRODUCT_PACKAGES += \
fw_printenv \
fw_setenv
include device/hardkernel/common/gpu/dvalin-user-arm64.mk
# Updater
PRODUCT_PACKAGES += updater
PRODUCT_PACKAGES += \
com.android.future.usb.accessory
PRODUCT_PROPERTY_OVERRIDES += \
ro.hdmi.device_type=4 \
persist.sys.hdmi.keep_awake=false
PRODUCT_COPY_FILES += \
device/hardkernel/odroidc4/fstab.system.odroidc4:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.odroidc4
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.camera.external.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.external.xml \
frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/files/hardkernel-720.bmp.gz:$(PRODUCT_OUT)/hardkernel-720.bmp.gz