universal7580: build power hal
[GitHub/LineageOS/android_device_samsung_universal7580-common.git] / device-common.mk
CommitLineData
583a3f4a
S
1#
2# Copyright (C) 2018 The LineageOS Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH := device/samsung/universal7580-common
174e8e03 18
1f3935bd 19DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
20
9e24d026
S
21# Audio
22PRODUCT_PACKAGES += \
23 audio.primary.universal7580 \
24 audio.a2dp.default \
25 audio.r_submix.default \
26 audio.usb.default \
27 tinymix \
28 android.hardware.audio@2.0-impl \
29 android.hardware.audio.effect@2.0-impl
30
56fce430
S
31PRODUCT_COPY_FILES += \
32 $(LOCAL_PATH)/configs/audio/audio_policy.conf:system/etc/audio_policy.conf \
33 $(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml
34
a3b5a23b
S
35# Bluetooth
36PRODUCT_PACKAGES += \
37 android.hardware.bluetooth@1.0-impl \
38 libbt-vendor
39
1ff87e59
S
40# Camera
41PRODUCT_PACKAGES += \
42 android.hardware.camera.provider@2.4-impl-legacy \
43 android.hardware.camera.provider@2.4-service
44
a08cb4d9
S
45# Configstore
46PRODUCT_PACKAGES += \
47 android.hardware.configstore@1.0-impl \
48 android.hardware.configstore@1.0-service
49
5eddb9b6
S
50# DRM
51PRODUCT_PACKAGES += \
52 android.hardware.drm@1.0-impl \
53 android.hardware.drm@1.0-service
54
c6a5c0f1
S
55# Flat device tree for boot image
56PRODUCT_PACKAGES += \
57 dtbhtoolExynos
58
7cb9a0db
S
59# GPS
60PRODUCT_PACKAGES += \
61 android.hardware.gnss@1.0-impl
62
f9c1e7d0
S
63# Graphics
64PRODUCT_PACKAGES += \
65 libion \
66 libfimg \
67 android.hardware.graphics.allocator@2.0-impl \
68 android.hardware.graphics.allocator@2.0-service \
69 android.hardware.graphics.composer@2.1-impl \
70 android.hardware.graphics.mapper@2.0-impl \
71 libhwc2on1adapter
72
af923f93
S
73# Keymaster
74PRODUCT_PACKAGES += \
75 keystore.exynos5 \
76 android.hardware.keymaster@3.0-impl \
77 android.hardware.keymaster@3.0-service
78
edebdf99
S
79# Media
80PRODUCT_COPY_FILES += \
81 $(LOCAL_PATH)/configs/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
82 $(LOCAL_PATH)/configs/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
83 $(LOCAL_PATH)/configs/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
84 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
85 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
86 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml
87
2f93c04e
S
88# Memory
89PRODUCT_PACKAGES += \
90 android.hardware.memtrack@1.0-impl
91
97f75cb0
S
92# Power
93PRODUCT_PACKAGES += \
94 power.universal7580 \
95 android.hardware.power@1.0-service \
96 android.hardware.power@1.0-impl
97
ec28d0f7
S
98# Permissions
99PRODUCT_COPY_FILES += \
100 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
101 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
102 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
103 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
104 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
105 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
106 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml
eac4829a 107
c65d8399
S
108# ramdisk
109PRODUCT_PACKAGES += \
110 init.power.rc \
111 fstab.samsungexynos7580 \
112 init.baseband.rc \
113 init.samsung.rc \
114 init.samsungexynos7580.rc \
115 init.samsungexynos7580.usb.rc \
116 init.wifi.rc \
117 ueventd.samsungexynos7580.rc
118
6cd8a194
S
119# RenderScript
120PRODUCT_PACKAGES += \
121 android.hardware.renderscript@1.0-impl
122
41fbcd89 123# SamsungDoze
124PRODUCT_PACKAGES += \
125 SamsungDoze
126
835153b7
S
127# Seccomp filters
128PRODUCT_COPY_FILES += \
129 $(LOCAL_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy \
130 $(LOCAL_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy
131
a2e67aef
S
132# Shims
133PRODUCT_PACKAGES += \
134 libcamera_client_shim \
135 libexynoscamera_shim \
136 libExynosOMX_shim \
137 libstagefright_shim \
138 libui_shim
139
e2934e8a
S
140# TextClassifier
141PRODUCT_PACKAGES += \
142 textclassifier.smartselection.bundle1
143
eac4829a
S
144# Wifi
145PRODUCT_PACKAGES += \
146 macloader \
147 wifiloader \
148 hostapd \
149 wificond \
150 wifilogd \
151 wlutil \
152 libwpa_client \
153 wpa_supplicant \
154 wpa_supplicant.conf \
155 android.hardware.wifi@1.0-service \
156 android.hardware.wifi@1.0 \
157 android.hardware.wifi@1.0-impl
158
54e2de33
L
159# Overriden service definition
160PRODUCT_COPY_FILES += \
b6366c97
L
161 $(LOCAL_PATH)/configs/init/android.hardware.media.omx@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.media.omx@1.0-service.rc \
162 $(LOCAL_PATH)/configs/init/mediaserver.rc:system/etc/init/mediaserver.rc
54e2de33 163
0be00cd7
S
164# Properties
165-include $(LOCAL_PATH)/system_prop.mk
166
174e8e03
S
167# call Samsung LSI board support package
168$(call inherit-product, hardware/samsung_slsi-cm/exynos5/exynos5.mk)
169$(call inherit-product, hardware/samsung_slsi-cm/exynos7580/exynos7580.mk)
2211511a
S
170
171# call the proprietary setup
172$(call inherit-product, vendor/samsung/universal7580-common/universal7580-common-vendor.mk)