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 17PRODUCT_SOONG_NAMESPACES += \ 18 device/linaro/dragonboard 19 20# setup dalvik vm configs 21$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk) 22 23# Enable Virtual A/B 24AB_OTA_UPDATER := true 25AB_OTA_PARTITIONS += \ 26 product \ 27 system \ 28 system_ext \ 29 vendor 30 31ifeq ($(TARGET_USES_BOOT_HDR_V3), true) 32$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk) 33else 34$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk) 35endif 36 37PRODUCT_COPY_FILES := \ 38 $(DB845C_KERNEL_DIR)/Image.gz:kernel \ 39 $(DB845C_KERNEL_DIR)/sdm845-db845c.dtb:dtb.img \ 40 device/linaro/dragonboard/fstab.common:$(TARGET_COPY_OUT_RAMDISK)/fstab.db845c \ 41 device/linaro/dragonboard/fstab.common:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.db845c \ 42 device/linaro/dragonboard/init.common.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.db845c.rc \ 43 device/linaro/dragonboard/init.common.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.db845c.usb.rc \ 44 device/linaro/dragonboard/common.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/db845c.kl 45 46# Build generic Audio HAL 47PRODUCT_PACKAGES := audio.primary.db845c 48 49# BootControl HAL 50PRODUCT_PACKAGES += \ 51 android.hardware.boot@1.1-impl \ 52 android.hardware.boot@1.1-impl.recovery \ 53 android.hardware.boot@1.1-service 54 55PRODUCT_PACKAGES += \ 56 pd-mapper \ 57 qrtr-ns \ 58 qrtr-cfg \ 59 qrtr-lookup \ 60 rmtfs \ 61 tqftpserv 62 63PRODUCT_COPY_FILES += \ 64 device/linaro/dragonboard/qcom/init.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.qcom.rc 65 66# Install scripts to set Ethernet MAC address 67PRODUCT_COPY_FILES += \ 68 $(LOCAL_PATH)/eth_mac_addr.rc:/system/etc/init/eth_mac_addr.rc \ 69 $(LOCAL_PATH)/eth_mac_addr.sh:/system/bin/eth_mac_addr.sh 70 71PRODUCT_VENDOR_PROPERTIES += ro.soc.manufacturer=Qualcomm 72PRODUCT_VENDOR_PROPERTIES += ro.soc.model=SDM845 73 74# Copy firmware files 75$(call inherit-product-if-exists, $(LOCAL_PATH)/firmware/device.mk) 76