2 # Copyright (C) 2021-2022 The LineageOS Project
4 # SPDX-License-Identifier: Apache-2.0
7 $(call inherit-product
, vendor
/amlogic
/g12-common
/g12-common-vendor.mk
)
10 PRODUCT_COPY_FILES
+= \
11 $(LOCAL_PATH
)/audio
/a2dp_audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/a2dp_audio_policy_configuration.xml \
12 $(LOCAL_PATH
)/audio
/audio_effects.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/audio_effects.xml \
13 $(LOCAL_PATH
)/audio
/audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/audio_policy_configuration.xml \
14 $(LOCAL_PATH
)/audio
/audio_policy_volumes.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/audio_policy_volumes.xml \
15 $(LOCAL_PATH
)/audio
/hearing_aid_audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/hearing_aid_audio_policy_configuration.xml \
16 $(LOCAL_PATH
)/audio
/msd_audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/msd_audio_policy_configuration.xml \
17 $(LOCAL_PATH
)/audio
/surround_sound_configuration_5_0.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/surround_sound_configuration_5_0.xml \
18 $(LOCAL_PATH
)/audio
/mixer_paths.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/mixer_paths.xml \
19 frameworks
/av
/services
/audiopolicy
/config
/default_volume_tables.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/default_volume_tables.xml \
20 frameworks
/av
/services
/audiopolicy
/config
/r_submix_audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/r_submix_audio_policy_configuration.xml \
21 frameworks
/av
/services
/audiopolicy
/config
/usb_audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/usb_audio_policy_configuration.xml
24 android.hardware.audio@
2.0-impl \
25 android.hardware.audio@
4.0-impl \
26 android.hardware.audio@
5.0-impl \
27 android.hardware.audio@
7.0.vendor \
28 android.hardware.audio@
7.0-util.vendor \
29 android.hardware.audio.common@
7.0-util \
30 android.hardware.audio.effect@
2.0-impl \
31 android.hardware.audio.effect@
4.0-impl \
32 android.hardware.audio.effect@
5.0-impl \
33 android.hardware.audio.effect@
7.0-util.vendor \
34 android.hardware.audio.service \
36 audio.r_submix.default \
38 av-types-aidl-cpp.vendor \
39 libaudioclient_aidl_conversion_util.vendor \
40 libaudiofoundation.vendor
43 ifeq ($(BOARD_HAVE_BLUETOOTH
),false
)
44 PRODUCT_PROPERTY_OVERRIDES
+= \
45 config.disable_bluetooth
=true
48 android.hardware.bluetooth@
1.0.vendor \
49 android.hardware.bluetooth.audio@
2.0-impl
51 PRODUCT_PROPERTY_OVERRIDES
+= \
52 ro.vendor.autoconnectbt.btclass
=50c \
53 ro.vendor.autoconnectbt.isneed
=false \
54 ro.vendor.autoconnectbt.macprefix
=00:CD
:FF \
55 ro.vendor.autoconnectbt.nameprefix
=Amlogic_RC \
56 ro.vendor.autoconnectbt.rssilimit
=70
58 PRODUCT_COPY_FILES
+= \
59 frameworks
/native
/data
/etc
/android.hardware.bluetooth.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.bluetooth.xml \
60 frameworks
/native
/data
/etc
/android.hardware.bluetooth_le.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.bluetooth_le.xml
64 TARGET_SCREEN_HEIGHT
:= 1080
65 TARGET_SCREEN_WIDTH
:= 1920
69 android.hardware.camera.provider@
2.4-legacy \
70 android.hardware.camera.provider@
2.5-legacy \
71 android.hardware.camera.provider@
2.5-service \
72 camera.device@
1.0-impl \
73 camera.device@
3.2-impl \
74 camera.device@
3.3-impl \
75 camera.device@
3.4-impl \
76 camera.device@
3.5-impl
79 PRODUCT_COPY_FILES
+= \
80 $(LOCAL_PATH
)/media
/media_profiles.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_profiles.xml \
81 $(LOCAL_PATH
)/media
/media_profiles_V1_0.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_profiles_V1_0.xml
83 ifeq ($(PRODUCT_USE_SW_OMX
),true
)
84 PRODUCT_COPY_FILES
+= \
85 $(LOCAL_PATH
)/media
/media_codecs_sw.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs.xml \
86 frameworks
/av
/media
/libstagefright
/data
/media_codecs_google_audio.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_google_audio.xml \
87 frameworks
/av
/media
/libstagefright
/data
/media_codecs_google_video.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_google_video.xml
89 PRODUCT_COPY_FILES
+= \
90 $(LOCAL_PATH
)/media
/media_codecs.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs.xml \
91 $(LOCAL_PATH
)/media
/media_codecs_performance.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_performance.xml
96 android.hardware.drm@
1.4-service.clearkey \
100 PRODUCT_PACKAGES
+= \
101 android.hardware.dumpstate@
1.1.vendor
104 PRODUCT_PACKAGES
+= fastbootd
106 ## File-system permissions
107 PRODUCT_PACKAGES
+= \
112 PRODUCT_PACKAGES
+= \
113 android.hardware.gatekeeper@
1.0-service.software
116 PRODUCT_PACKAGES
+= \
117 android.hardware.graphics.composer@
2.4.vendor
120 PRODUCT_PACKAGES
+= \
125 PRODUCT_PACKAGES
+= \
126 android.hardware.tv.cec@
1.0-impl \
127 android.hardware.tv.cec@
1.0-service
130 PRODUCT_PACKAGES
+= \
131 android.hardware.health@
2.1.vendor
134 PRODUCT_COPY_FILES
+= \
135 $(LOCAL_PATH
)/init-files
/fstab.amlogic
:$(TARGET_COPY_OUT_VENDOR
)/etc
/fstab.amlogic \
136 $(LOCAL_PATH
)/init-files
/init.amlogic.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/hw
/init.amlogic.rc \
137 $(LOCAL_PATH
)/init-files
/init.amlogic.board.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/hw
/init.amlogic.board.rc \
138 $(LOCAL_PATH
)/init-files
/init.amlogic.media.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/hw
/init.amlogic.media.rc \
139 $(LOCAL_PATH
)/init-files
/init.amlogic.usb.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/hw
/init.amlogic.usb.rc \
140 $(LOCAL_PATH
)/init-files
/init.recovery.amlogic.rc
:recovery
/root
/init.recovery.amlogic.rc \
141 $(LOCAL_PATH
)/init-files
/ueventd.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/ueventd.rc
144 PRODUCT_PACKAGES
+= \
150 PRODUCT_PACKAGES
+= \
151 android.hardware.hardware_keystore.xml \
152 lib_android_keymaster_keymint_utils.vendor \
154 libkeymaster_messages.vendor \
155 libkeymaster_portable.vendor \
156 libpuresoftkeymasterdevice.vendor \
157 libshmemutil.vendor \
158 libshmemcompat.vendor \
159 libsoft_attestation_cert.vendor \
162 ifeq ($(TARGET_HAS_TEE
),false
)
163 PRODUCT_PACKAGES
+= \
164 android.hardware.keymaster@
4.1-service
168 PRODUCT_PACKAGES
+= \
169 android.hardware.light@
2.0-impl \
170 android.hardware.light@
2.0-service
173 PRODUCT_PACKAGES
+= \
174 android.hardware.memtrack@
1.0-impl \
175 android.hardware.memtrack@
1.0-service
178 DEVICE_PACKAGE_OVERLAYS
+= \
179 $(LOCAL_PATH
)/overlay
180 PRODUCT_ENFORCE_RRO_TARGETS
:= *
183 BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT
:= true
184 BUILDING_SUPER_EMPTY_IMAGE
:= true
185 PRODUCT_BUILD_SUPER_PARTITION
:= true
186 PRODUCT_USE_DYNAMIC_PARTITIONS
:= true
189 PRODUCT_COPY_FILES
+= \
190 frameworks
/native
/data
/etc
/android.hardware.audio.output.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.audio.output.xml \
191 frameworks
/native
/data
/etc
/android.hardware.device_unique_attestation.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.device_unique_attestation.xml \
192 frameworks
/native
/data
/etc
/android.hardware.ethernet.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.ethernet.xml \
193 frameworks
/native
/data
/etc
/android.hardware.gamepad.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.gamepad.xml \
194 frameworks
/native
/data
/etc
/android.hardware.hdmi.cec.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.hdmi.cec.xml \
195 frameworks
/native
/data
/etc
/android.hardware.location.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.location.xml \
196 frameworks
/native
/data
/etc
/android.hardware.opengles.aep.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.opengles.aep.xml \
197 frameworks
/native
/data
/etc
/android.hardware.usb.host.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.usb.host.xml \
198 frameworks
/native
/data
/etc
/android.hardware.vulkan.compute-0.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.vulkan.compute.xml \
199 frameworks
/native
/data
/etc
/android.hardware.vulkan.level-1.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.vulkan.level.xml \
200 frameworks
/native
/data
/etc
/android.hardware.vulkan.version-1_1.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.vulkan.version.xml \
201 frameworks
/native
/data
/etc
/android.hardware.wifi.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.wifi.xml \
202 frameworks
/native
/data
/etc
/android.hardware.wifi.direct.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.wifi.direct.xml \
203 frameworks
/native
/data
/etc
/android.hardware.wifi.passpoint.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.wifi.passpoint.xml \
204 frameworks
/native
/data
/etc
/android.software.app_widgets.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.software.app_widgets.xml \
205 frameworks
/native
/data
/etc
/android.software.backup.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.software.backup.xml \
206 frameworks
/native
/data
/etc
/android.software.device_id_attestation.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.software.device_id_attestation.xml \
207 frameworks
/native
/data
/etc
/android.software.ipsec_tunnels.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.software.ipsec_tunnels.xml \
208 frameworks
/native
/data
/etc
/android.software.opengles.deqp.level-2021-03-01.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.software.opengles.deqp.level.xml \
209 frameworks
/native
/data
/etc
/android.software.verified_boot.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.software.verified_boot.xml \
210 frameworks
/native
/data
/etc
/android.software.vulkan.deqp.level-2021-03-01.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.software.vulkan.deqp.level.xml
213 TARGET_AMLOGIC_SOC ?
= g12a
216 PRODUCT_SHIPPING_API_LEVEL
:= 29
219 PRODUCT_SOONG_NAMESPACES
+= \
223 PRODUCT_PACKAGES
+= \
224 android.hardware.thermal@
2.0.vendor
227 PRODUCT_PACKAGES
+= \
228 vendor.lineage.trust@
1.0-service
231 PRODUCT_PACKAGES
+= \
232 android.hardware.usb@
1.0-service \
233 android.hardware.usb.gadget@
1.2.vendor
236 PRODUCT_PACKAGES
+= \
237 android.hardware.wifi@
1.0-service \
244 ## Inherit from the main common tree product makefile
245 $(call inherit-product
, device
/amlogic
/common
/amlogic.mk
)