Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 1 | # |
| 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 Pundir | fbd3fbb | 2021-11-18 14:59:17 +0530 | [diff] [blame] | 20 | include $(LOCAL_PATH)/../vendor-package-ver.mk |
Amit Pundir | 44f3990 | 2021-01-12 16:45:02 +0530 | [diff] [blame] | 21 | # Enable Virtual A/B |
| 22 | AB_OTA_UPDATER := true |
| 23 | AB_OTA_PARTITIONS += \ |
| 24 | product \ |
| 25 | system \ |
| 26 | system_ext \ |
| 27 | vendor |
| 28 | |
Amit Pundir | dd5bd1b | 2020-12-22 13:46:24 +0530 | [diff] [blame] | 29 | ifeq ($(TARGET_USES_BOOT_HDR_V3), true) |
| 30 | $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk) |
| 31 | else |
Amit Pundir | 44f3990 | 2021-01-12 16:45:02 +0530 | [diff] [blame] | 32 | $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk) |
Amit Pundir | dd5bd1b | 2020-12-22 13:46:24 +0530 | [diff] [blame] | 33 | endif |
Amit Pundir | 44f3990 | 2021-01-12 16:45:02 +0530 | [diff] [blame] | 34 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 35 | PRODUCT_COPY_FILES := \ |
John Stultz | f36354e | 2020-01-14 00:10:06 +0000 | [diff] [blame] | 36 | $(DB845C_KERNEL_DIR)/Image.gz:kernel \ |
| 37 | $(DB845C_KERNEL_DIR)/sdm845-db845c.dtb:dtb.img \ |
John Stultz | e53665e | 2020-10-06 05:33:49 +0000 | [diff] [blame] | 38 | device/linaro/dragonboard/fstab.common:$(TARGET_COPY_OUT_RAMDISK)/fstab.db845c \ |
Yongqin Liu | bbb804e | 2020-04-21 17:52:44 +0800 | [diff] [blame] | 39 | device/linaro/dragonboard/fstab.common:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.db845c \ |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 40 | device/linaro/dragonboard/init.common.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.db845c.rc \ |
| 41 | device/linaro/dragonboard/init.common.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.db845c.usb.rc \ |
| 42 | device/linaro/dragonboard/common.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/db845c.kl |
| 43 | |
| 44 | # Build generic Audio HAL |
| 45 | PRODUCT_PACKAGES := audio.primary.db845c |
Amit Pundir | 3a69c9b | 2019-04-18 17:15:30 +0530 | [diff] [blame] | 46 | |
Yongqin Liu | af86a2d | 2020-10-21 10:24:53 +0800 | [diff] [blame] | 47 | # BootControl HAL |
| 48 | PRODUCT_PACKAGES += \ |
John Stultz | e4b2cbd | 2021-07-02 21:23:59 +0000 | [diff] [blame] | 49 | android.hardware.boot@1.2-impl \ |
| 50 | android.hardware.boot@1.2-impl.recovery \ |
| 51 | android.hardware.boot@1.2-service |
Yongqin Liu | af86a2d | 2020-10-21 10:24:53 +0800 | [diff] [blame] | 52 | |
Amit Pundir | b192c97 | 2021-11-18 14:22:47 +0530 | [diff] [blame] | 53 | # Install script to set *.usb.controller properties |
John Stultz | 590ccad | 2020-02-26 20:23:14 +0000 | [diff] [blame] | 54 | PRODUCT_COPY_FILES += \ |
Amit Pundir | b192c97 | 2021-11-18 14:22:47 +0530 | [diff] [blame] | 55 | device/linaro/dragonboard/qcom/set_udc.sh:$(TARGET_COPY_OUT_VENDOR)/bin/set_udc.sh |
John Stultz | 590ccad | 2020-02-26 20:23:14 +0000 | [diff] [blame] | 56 | |
Amit Pundir | 7cc6a2d | 2020-04-23 21:39:03 +0530 | [diff] [blame] | 57 | # Install scripts to set Ethernet MAC address |
| 58 | PRODUCT_COPY_FILES += \ |
| 59 | $(LOCAL_PATH)/eth_mac_addr.rc:/system/etc/init/eth_mac_addr.rc \ |
| 60 | $(LOCAL_PATH)/eth_mac_addr.sh:/system/bin/eth_mac_addr.sh |
| 61 | |
Will McVicker | faa63a3 | 2021-04-06 10:50:27 -0700 | [diff] [blame] | 62 | PRODUCT_VENDOR_PROPERTIES += ro.soc.manufacturer=Qualcomm |
| 63 | PRODUCT_VENDOR_PROPERTIES += ro.soc.model=SDM845 |
| 64 | |
Amit Pundir | 1043dd6 | 2021-06-23 00:16:49 +0530 | [diff] [blame] | 65 | PRODUCT_PROPERTY_OVERRIDES += ro.sf.lcd_density=160 |
| 66 | |
Amit Pundir | 3a69c9b | 2019-04-18 17:15:30 +0530 | [diff] [blame] | 67 | # Copy firmware files |
Amit Pundir | fbd3fbb | 2021-11-18 14:59:17 +0530 | [diff] [blame] | 68 | $(call inherit-product-if-exists, vendor/linaro/db845c/$(EXPECTED_LINARO_VENDOR_VERSION)/device.mk) |