blob: 91917134ec7e714c937bc522bd3077011e7427b5 [file] [log] [blame]
Amit Pundir4e375822019-04-18 16:46:10 +05301#
2# Copyright (C) 2011 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
17# setup dalvik vm configs
18$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
19
Amit Pundir44f39902021-01-12 16:45:02 +053020# Enable Virtual A/B
21AB_OTA_UPDATER := true
22AB_OTA_PARTITIONS += \
23 product \
24 system \
25 system_ext \
26 vendor
27
Amit Pundirdd5bd1b2020-12-22 13:46:24 +053028ifeq ($(TARGET_USES_BOOT_HDR_V3), true)
29$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk)
30else
Amit Pundir44f39902021-01-12 16:45:02 +053031$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk)
Amit Pundirdd5bd1b2020-12-22 13:46:24 +053032endif
Amit Pundir44f39902021-01-12 16:45:02 +053033
Amit Pundir4e375822019-04-18 16:46:10 +053034PRODUCT_COPY_FILES := \
John Stultzf36354e2020-01-14 00:10:06 +000035 $(DB845C_KERNEL_DIR)/Image.gz:kernel \
36 $(DB845C_KERNEL_DIR)/sdm845-db845c.dtb:dtb.img \
John Stultze53665e2020-10-06 05:33:49 +000037 device/linaro/dragonboard/fstab.common:$(TARGET_COPY_OUT_RAMDISK)/fstab.db845c \
Yongqin Liubbb804e2020-04-21 17:52:44 +080038 device/linaro/dragonboard/fstab.common:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.db845c \
Amit Pundir4e375822019-04-18 16:46:10 +053039 device/linaro/dragonboard/init.common.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.db845c.rc \
40 device/linaro/dragonboard/init.common.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.db845c.usb.rc \
41 device/linaro/dragonboard/common.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/db845c.kl
42
43# Build generic Audio HAL
44PRODUCT_PACKAGES := audio.primary.db845c
Amit Pundir3a69c9b2019-04-18 17:15:30 +053045
Yongqin Liuaf86a2d2020-10-21 10:24:53 +080046# BootControl HAL
47PRODUCT_PACKAGES += \
John Stultze4b2cbd2021-07-02 21:23:59 +000048 android.hardware.boot@1.2-impl \
49 android.hardware.boot@1.2-impl.recovery \
50 android.hardware.boot@1.2-service
Yongqin Liuaf86a2d2020-10-21 10:24:53 +080051
Amit Pundirb192c972021-11-18 14:22:47 +053052# Install script to set *.usb.controller properties
John Stultz590ccad2020-02-26 20:23:14 +000053PRODUCT_COPY_FILES += \
Amit Pundirb192c972021-11-18 14:22:47 +053054 device/linaro/dragonboard/qcom/set_udc.sh:$(TARGET_COPY_OUT_VENDOR)/bin/set_udc.sh
John Stultz590ccad2020-02-26 20:23:14 +000055
Amit Pundir7cc6a2d2020-04-23 21:39:03 +053056# Install scripts to set Ethernet MAC address
57PRODUCT_COPY_FILES += \
58 $(LOCAL_PATH)/eth_mac_addr.rc:/system/etc/init/eth_mac_addr.rc \
59 $(LOCAL_PATH)/eth_mac_addr.sh:/system/bin/eth_mac_addr.sh
60
Will McVickerfaa63a32021-04-06 10:50:27 -070061PRODUCT_VENDOR_PROPERTIES += ro.soc.manufacturer=Qualcomm
62PRODUCT_VENDOR_PROPERTIES += ro.soc.model=SDM845
63
Amit Pundir1043dd62021-06-23 00:16:49 +053064PRODUCT_PROPERTY_OVERRIDES += ro.sf.lcd_density=160
65
Amit Pundir3a69c9b2019-04-18 17:15:30 +053066# Copy firmware files
67$(call inherit-product-if-exists, $(LOCAL_PATH)/firmware/device.mk)