-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathodroidc2.mk
203 lines (163 loc) · 7.36 KB
/
odroidc2.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# Copyright (C) 2015 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
#TARGET_DYNAMIC_ZYGOTE_SECONDARY_ENABLE := true
# Inherit from those products. Most specific first.
ifneq ($(ANDROID_BUILD_TYPE), 32)
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
$(call inherit-product, device/hardkernel/common/products/mbox/product_mbox.mk)
$(call inherit-product, device/hardkernel/odroidc2/device.mk)
# ODROID-C2:
PRODUCT_MANUFACTURER := HardKernel Co., Ltd.
PRODUCT_MODEL := ODROIDC2
PRODUCT_BRAND := ODROID
PRODUCT_DEVICE := odroidc2
PRODUCT_NAME := odroidc2
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
PRODUCT_PROPERTY_OVERRIDES += \
sys.fb.bits=32
WITH_LIBPLAYER_MODULE := false
PRODUCT_COPY_FILES += \
device/hardkernel/odroidc2/fstab.odroidc2:root/fstab.odroidc2 \
device/hardkernel/odroidc2/fstab.odroidc2.sdboot:root/fstab.odroidc2.sdboot
#-----------------------------------------------------------------------------
# WiFi
#-----------------------------------------------------------------------------
BOARD_WIFI_VENDOR := realtek
BOARD_WLAN_DEVICE := rtl8192cu
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
BOARD_WPA_SUPPLICANT_PRIVATE_LIB:= lib_driver_cmd_nl80211
WPA_SUPPLICANT_VERSION := VER_0_8_X
WIFI_DRIVER := rtl8192cu
WIFI_DRIVER_MODULE_NAME := rtl8192cu
WIFI_DRIVER_MODULE_PATH := /system/lib/modules/8192cu.ko
WIFI_DRIVER_MODULE_ARG := ""
WIFI_FIRMWARE_LOADER := ""
WIFI_DRIVER_FW_PATH_STA := ""
WIFI_DRIVER_FW_PATH_AP := ""
WIFI_DRIVER_FW_PATH_P2P := ""
WIFI_DRIVER_FW_PATH_PARAM := ""
PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=wlan0
# Change this to match target country
# 11 North America; 14 Japan; 13 rest of world
PRODUCT_DEFAULT_WIFI_CHANNELS := 13
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
device/hardkernel/$(TARGET_PRODUCT)/wifi/wifi_id_list.txt:system/etc/wifi_id_list.txt \
device/hardkernel/$(TARGET_PRODUCT)/wifi/8192cu:system/etc/modprobe.d/8192cu \
device/hardkernel/$(TARGET_PRODUCT)/wifi/8812au:system/etc/modprobe.d/8812au \
device/hardkernel/$(TARGET_PRODUCT)/wifi/8821cu:system/etc/modprobe.d/8821cu \
device/hardkernel/$(TARGET_PRODUCT)/wifi/rt2800usb:system/etc/modprobe.d/rt2800usb
PRODUCT_PACKAGES += \
wpa_supplicant.conf \
wpa_supplicant_overlay.conf \
p2p_supplicant_overlay.conf
# Ralink RT2800 USB Dongle firmware & configuration
PRODUCT_COPY_FILES += \
device/hardkernel/$(TARGET_PRODUCT)/wifi/rt2870.bin:root/lib/firmware/rt2870.bin \
device/hardkernel/$(TARGET_PRODUCT)/wifi/RT2870STA.dat:system/etc/Wireless/RT2870STA/RT2870STA.dat
BOARD_HAVE_BLUETOOTH := true
BLUETOOTH_HCI_USE_USB := true
BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_BLUETOOTH_DOES_NOT_USE_RFKILL := true
include device/hardkernel/common/bluetooth.mk
# Device specific system feature description
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml
# Audio
#
BOARD_ALSA_AUDIO=tiny
include device/hardkernel/common/audio.mk
PRODUCT_PACKAGES += \
com.android.future.usb.accessory
#########################################################################
#
# Camera
#
#########################################################################
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/files/hardkernel-720.bmp.gz:$(PRODUCT_OUT)/hardkernel-720.bmp.gz
#DRM Widevine
BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 3
$(call inherit-product, device/hardkernel/common/media.mk)
#########################################################################
#
# Languages
#
#########################################################################
# For all locales, $(call inherit-product, build/target/product/languages_full.mk)
PRODUCT_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 \
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 \
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 \
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 \
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 \
bn_BD ta_IN kn_IN te_IN uz_UZ ur_PK kk_KZ
#################################################################################
#
# DEFAULT LOWMEMORYKILLER CONFIG
#
#################################################################################
BUILD_WITH_LOWMEM_COMMON_CONFIG := true
BOARD_USES_USB_PM := true
WITH_DEXPREOPT := true
WITH_DEXPREOPT_PIC := true
PRODUCT_PACKAGES += \
Development \
Utility \
updater \
Superuser \
su
# ODROID USBIO-SENSOR
BOARD_HAVE_ODROID_SENSOR := true
# odroid sensor
PRODUCT_PACKAGES += \
sensors.odroidc2
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml
# GPS
PRODUCT_PACKAGES += \
gps.odroidc2
PRODUCT_COPY_FILES += \
device/hardkernel/odroidc2/files/odroid-usbgps.xml:root/odroid-usbgps.xml
# VU8 backlight
PRODUCT_PACKAGES += \
lights.odroidc2
# U-Boot Env Tools
PRODUCT_PACKAGES += \
fw_printenv \
fw_setenv
# inherit from the non-open-source side, if present
$(call inherit-product-if-exists, device/hardkernel/proprietary/proprietary.mk)