Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2014 The Android Open-Source 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 | |
John Stultz | fa0fa16 | 2020-02-06 23:14:28 +0000 | [diff] [blame] | 17 | # Enable updating of APEXes |
| 18 | $(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) |
| 19 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 20 | # Device overlay |
| 21 | DEVICE_PACKAGE_OVERLAYS := $(LOCAL_PATH)/overlay |
| 22 | |
| 23 | # Build and run only ART |
| 24 | PRODUCT_RUNTIMES := runtime_libart_default |
| 25 | |
John Stultz | e4b2cbd | 2021-07-02 21:23:59 +0000 | [diff] [blame] | 26 | PRODUCT_SHIPPING_API_LEVEL := 31 |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 27 | PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false |
| 28 | |
John Stultz | 80e228b | 2020-10-06 05:03:30 +0000 | [diff] [blame] | 29 | # Enable Scoped Storage related |
| 30 | $(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk) |
| 31 | |
Amit Pundir | fbd3fbb | 2021-11-18 14:59:17 +0530 | [diff] [blame] | 32 | |
| 33 | # Check vendor package version |
| 34 | # If you need to make changes to the vendor partition, |
| 35 | # please modify the source git project here: |
| 36 | # https://staging-git.codelinaro.org/linaro/linaro-aosp/aosp-linaro-vendor-package |
| 37 | include $(LOCAL_PATH)/vendor-package-ver.mk |
| 38 | ifneq (,$(wildcard $(LINARO_VENDOR_PATH)/db845c/$(EXPECTED_LINARO_VENDOR_VERSION)/version.mk)) |
| 39 | # Unfortunately inherit-product doesn't export build variables from the |
| 40 | # called make file to the caller, so we have to include it directly here. |
| 41 | include $(LINARO_VENDOR_PATH)/db845c/$(EXPECTED_LINARO_VENDOR_VERSION)/version.mk |
| 42 | ifneq ($(TARGET_LINARO_VENDOR_VERSION), $(EXPECTED_LINARO_VENDOR_VERSION)) |
| 43 | $(warning TARGET_LINARO_VENDOR_VERSION ($(TARGET_LINARO_VENDOR_VERSION)) does not match exiting the build ($(EXPECTED_LINARO_VENDOR_VERSION)).) |
| 44 | $(warning Please download new binaries here:) |
| 45 | $(warning $(VND_PKG_URL) ) |
| 46 | $(warning And extract in the ANDROID_TOP_DIR) |
| 47 | # Would be good to error out here, but that causes other issues |
| 48 | endif |
| 49 | else |
| 50 | $(warning Missing Linaro Vendor Package!) |
| 51 | $(warning Please download new binaries here:) |
| 52 | $(warning $(VND_PKG_URL) ) |
| 53 | $(warning And extract in the ANDROID_TOP_DIR) |
| 54 | # Would be good to error out here, but that causes other issues |
| 55 | endif |
| 56 | |
| 57 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 58 | # vndk |
| 59 | PRODUCT_PACKAGES := vndk-sp |
| 60 | |
| 61 | # Dynamic partitions |
| 62 | PRODUCT_BUILD_SUPER_PARTITION := true |
| 63 | PRODUCT_USE_DYNAMIC_PARTITIONS := true |
| 64 | PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true |
| 65 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 66 | # HACK: Avoid usb crash |
| 67 | PRODUCT_PRODUCT_PROPERTIES := \ |
| 68 | persist.adb.nonblocking_ffs=0 \ |
| 69 | ro.adb.nonblocking_ffs=0 |
| 70 | |
| 71 | # Display |
| 72 | PRODUCT_PACKAGES += \ |
John Stultz | d9b540e | 2021-07-02 20:20:37 +0000 | [diff] [blame] | 73 | android.hardware.drm@1.3-service.clearkey \ |
| 74 | android.hardware.drm@1.3-service.widevine \ |
John Stultz | dd29e43 | 2021-10-06 22:32:11 +0000 | [diff] [blame^] | 75 | libGLES_mesa \ |
| 76 | libEGL_mesa \ |
| 77 | libGLESv1_CM_mesa \ |
| 78 | libGLESv2_mesa \ |
| 79 | libgallium_dri \ |
| 80 | libglapi |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 81 | |
| 82 | PRODUCT_PROPERTY_OVERRIDES += \ |
John Stultz | 26f5a0d | 2020-09-18 20:54:06 +0000 | [diff] [blame] | 83 | ro.hardware.gralloc=minigbm_msm \ |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 84 | ro.hardware.hwcomposer=drm \ |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 85 | ro.opengles.version=196608 \ |
| 86 | persist.demo.rotationlock=1 |
| 87 | |
John Stultz | 26f5a0d | 2020-09-18 20:54:06 +0000 | [diff] [blame] | 88 | |
| 89 | # |
| 90 | # Hardware Composer HAL |
| 91 | # |
| 92 | PRODUCT_PACKAGES += \ |
| 93 | hwcomposer.drm \ |
| 94 | android.hardware.graphics.composer@2.3-impl \ |
| 95 | android.hardware.graphics.composer@2.3-service |
| 96 | |
| 97 | # |
| 98 | # Gralloc HAL |
| 99 | # |
| 100 | PRODUCT_PACKAGES += \ |
| 101 | gralloc.minigbm_msm \ |
| 102 | android.hardware.graphics.allocator@4.0-service.minigbm_msm \ |
| 103 | android.hardware.graphics.mapper@4.0-impl.minigbm_msm |
| 104 | |
| 105 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 106 | # Use Launcher3QuickStep |
| 107 | PRODUCT_PACKAGES += Launcher3QuickStep |
| 108 | |
| 109 | # Enable WiFi |
| 110 | PRODUCT_PACKAGES += \ |
| 111 | hostapd \ |
| 112 | libwpa_client \ |
| 113 | wpa_supplicant \ |
| 114 | wpa_supplicant.conf \ |
Elliott Hughes | 6e1a73e | 2020-11-06 14:25:45 -0800 | [diff] [blame] | 115 | wificond |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 116 | |
| 117 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 118 | wifi.interface=wlan0 \ |
| 119 | wifi.supplicant_scan_interval=15 |
| 120 | |
| 121 | PRODUCT_COPY_FILES += \ |
| 122 | frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \ |
| 123 | frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \ |
| 124 | $(LOCAL_PATH)/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \ |
| 125 | $(LOCAL_PATH)/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf |
| 126 | |
| 127 | # Enable BT |
| 128 | PRODUCT_PACKAGES += \ |
John Stultz | 59657d5 | 2020-01-31 23:51:58 +0000 | [diff] [blame] | 129 | android.hardware.bluetooth@1.1-service.btlinux |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 130 | |
| 131 | PRODUCT_COPY_FILES += \ |
| 132 | frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \ |
| 133 | frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml |
| 134 | |
John Stultz | d9b540e | 2021-07-02 20:20:37 +0000 | [diff] [blame] | 135 | # |
| 136 | # Power HAL |
| 137 | # |
| 138 | PRODUCT_PACKAGES += \ |
| 139 | android.hardware.power-service.example |
| 140 | |
| 141 | # |
| 142 | # PowerStats HAL |
| 143 | # |
| 144 | PRODUCT_PACKAGES += \ |
| 145 | android.hardware.power.stats-service.example |
| 146 | |
| 147 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 148 | # Audio |
| 149 | PRODUCT_PACKAGES += \ |
John Stultz | fb810a9 | 2021-07-01 22:06:21 +0000 | [diff] [blame] | 150 | android.hardware.audio.service \ |
| 151 | android.hardware.audio@7.0-impl \ |
| 152 | android.hardware.audio.effect@7.0-impl \ |
Xin Li | a55f326 | 2021-08-18 08:00:09 +0000 | [diff] [blame] | 153 | android.hardware.soundtrigger@2.3-impl \ |
John Stultz | 59657d5 | 2020-01-31 23:51:58 +0000 | [diff] [blame] | 154 | android.hardware.bluetooth.audio@2.0-impl |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 155 | |
| 156 | # Build default bluetooth a2dp and usb audio HALs |
| 157 | PRODUCT_PACKAGES += \ |
| 158 | audio.a2dp.default \ |
John Stultz | 59657d5 | 2020-01-31 23:51:58 +0000 | [diff] [blame] | 159 | audio.bluetooth.default \ |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 160 | audio.usb.default \ |
| 161 | audio.r_submix.default |
| 162 | |
| 163 | # Build tinyalsa cli tools for debugging |
| 164 | PRODUCT_PACKAGES += \ |
| 165 | tinyplay \ |
| 166 | tinycap \ |
| 167 | tinymix \ |
| 168 | tinypcminfo |
| 169 | |
| 170 | # audio policy configuration |
| 171 | USE_XML_AUDIO_POLICY_CONF := 1 |
| 172 | PRODUCT_COPY_FILES += \ |
Amit Pundir | e6732bb | 2020-09-28 12:43:59 +0530 | [diff] [blame] | 173 | $(LOCAL_PATH)/etc/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \ |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 174 | $(LOCAL_PATH)/etc/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ |
| 175 | $(LOCAL_PATH)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml \ |
| 176 | frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ |
| 177 | frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \ |
Amit Pundir | 456949d | 2020-02-18 22:44:16 +0530 | [diff] [blame] | 178 | frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \ |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 179 | frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \ |
| 180 | frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ |
| 181 | frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \ |
| 182 | frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ |
| 183 | frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml |
| 184 | |
| 185 | # Copy media codecs config file |
| 186 | PRODUCT_COPY_FILES += \ |
| 187 | $(LOCAL_PATH)/etc/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ |
Amit Pundir | 456949d | 2020-02-18 22:44:16 +0530 | [diff] [blame] | 188 | frameworks/av/media/libeffects/data/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 189 | frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \ |
| 190 | frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml |
| 191 | |
Amit Pundir | ed6df0d | 2020-02-19 00:05:38 +0530 | [diff] [blame] | 192 | PRODUCT_COPY_FILES += \ |
Amit Pundir | 6d532ae | 2021-01-15 02:21:28 +0530 | [diff] [blame] | 193 | $(LOCAL_PATH)/seccomp_policy/mediaswcodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \ |
Amit Pundir | ed6df0d | 2020-02-19 00:05:38 +0530 | [diff] [blame] | 194 | $(LOCAL_PATH)/seccomp_policy/mediaswcodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaswcodec.policy |
| 195 | |
John Stultz | 365efe2 | 2020-09-23 02:09:15 +0000 | [diff] [blame] | 196 | # Copy hardware config file(s) |
| 197 | PRODUCT_COPY_FILES += \ |
| 198 | device/linaro/dragonboard/etc/permissions/android.software.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.xml |
| 199 | |
John Stultz | 1b1a81a | 2021-07-27 05:38:32 +0000 | [diff] [blame] | 200 | |
| 201 | # External Web Cam support |
| 202 | PRODUCT_PACKAGES += \ |
| 203 | android.hardware.camera.provider@2.4-impl \ |
| 204 | android.hardware.camera.provider@2.4-external-service |
| 205 | |
| 206 | PRODUCT_COPY_FILES += \ |
| 207 | frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \ |
| 208 | $(LOCAL_PATH)/etc/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \ |
| 209 | $(LOCAL_PATH)/etc/external_camera_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/external_camera_config.xml |
| 210 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 211 | # Keymaster |
| 212 | PRODUCT_PACKAGES += \ |
| 213 | android.hardware.keymaster@3.0-impl \ |
| 214 | android.hardware.keymaster@3.0-service |
| 215 | |
| 216 | # Gatekeeper |
| 217 | PRODUCT_PACKAGES += \ |
| 218 | android.hardware.gatekeeper@1.0-service.software |
| 219 | |
Amit Pundir | 6e0d4a3 | 2019-10-08 17:38:17 +0530 | [diff] [blame] | 220 | # Health |
| 221 | PRODUCT_PACKAGES += \ |
Amit Pundir | 4bcec51 | 2021-03-10 17:53:38 +0530 | [diff] [blame] | 222 | android.hardware.health@2.1-impl-cuttlefish \ |
| 223 | android.hardware.health@2.1-service |
Amit Pundir | 6e0d4a3 | 2019-10-08 17:38:17 +0530 | [diff] [blame] | 224 | |
Amit Pundir | d3525fb | 2021-05-31 16:16:21 +0530 | [diff] [blame] | 225 | # TODO: disable this service once we implement system suspend |
| 226 | PRODUCT_PACKAGES += \ |
| 227 | suspend_blocker |
| 228 | |
Amit Pundir | ed3f821 | 2019-07-01 18:02:54 +0000 | [diff] [blame] | 229 | # mkbootimg host tool to build boot.img separately |
| 230 | PRODUCT_HOST_PACKAGES := \ |
| 231 | mkbootimg |
| 232 | |
Amit Pundir | b192c97 | 2021-11-18 14:22:47 +0530 | [diff] [blame] | 233 | # Userspace vendor services for WiFi/Audio to work |
| 234 | PRODUCT_PACKAGES += \ |
| 235 | pd-mapper \ |
| 236 | qrtr-ns \ |
| 237 | qrtr-cfg \ |
| 238 | qrtr-lookup \ |
| 239 | rmtfs \ |
| 240 | tqftpserv |
| 241 | |
| 242 | PRODUCT_COPY_FILES += \ |
| 243 | $(LOCAL_PATH)/qcom/init.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.qcom.rc |
| 244 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 245 | # Copy standard platform config files |
| 246 | PRODUCT_COPY_FILES += \ |
| 247 | $(LOCAL_PATH)/ueventd.common.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \ |
| 248 | frameworks/native/data/etc/android.software.cts.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.cts.xml \ |
| 249 | frameworks/native/data/etc/android.software.app_widgets.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.app_widgets.xml \ |
| 250 | frameworks/native/data/etc/android.software.backup.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.backup.xml \ |
| 251 | frameworks/native/data/etc/android.software.voice_recognizers.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.voice_recognizers.xml \ |
| 252 | frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \ |
Amit Pundir | 6e3b2bb | 2020-04-10 22:47:13 +0530 | [diff] [blame] | 253 | frameworks/native/data/etc/android.software.print.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.print.xml \ |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 254 | frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \ |
| 255 | frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \ |
John Stultz | 845c78e | 2021-11-30 20:54:51 +0000 | [diff] [blame] | 256 | frameworks/native/data/etc/android.software.opengles.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.opengles.deqp.level.xml \ |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 257 | frameworks/native/data/etc/android.software.device_admin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_admin.xml |
Dan Willemsen | 181c24c | 2020-01-27 18:59:03 -0800 | [diff] [blame] | 258 | |
Amit Pundir | b192c97 | 2021-11-18 14:22:47 +0530 | [diff] [blame] | 259 | PRODUCT_SOONG_NAMESPACES += \ |
| 260 | device/linaro/dragonboard \ |
Amit Pundir | fbd3fbb | 2021-11-18 14:59:17 +0530 | [diff] [blame] | 261 | external/mesa3d \ |
| 262 | vendor/linaro/linux-firmware/$(EXPECTED_LINARO_VENDOR_VERSION) \ |
| 263 | vendor/linaro/db845c/$(EXPECTED_LINARO_VENDOR_VERSION) \ |
| 264 | vendor/linaro/rb5/$(EXPECTED_LINARO_VENDOR_VERSION) |
| 265 | |