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 20include $(LOCAL_PATH)/../vendor-package-ver.mk 21ifeq ($(TARGET_USES_BOOT_HDR_V3), true) 22$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk) 23else 24$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk) 25endif 26 27# dlkm_loader 28include device/linaro/dragonboard/shared/utils/dlkm_loader/device.mk 29PRODUCT_COPY_FILES += \ 30 device/linaro/dragonboard/shared/utils/dlkm_loader/dlkm_loader.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/dlkm_loader.rc 31 32# Build generic Audio HAL 33PRODUCT_PACKAGES += audio.primary.db845c 34 35# BootControl HAL 36PRODUCT_PACKAGES += \ 37 android.hardware.boot@1.2-impl \ 38 android.hardware.boot@1.2-impl.recovery \ 39 android.hardware.boot@1.2-service 40 41# Set BT address 42PRODUCT_PACKAGES += bdaddr 43 44# Install bdaddr script 45PRODUCT_COPY_FILES += \ 46 device/linaro/dragonboard/shared/utils/bdaddr/set_bdaddr.sh:$(TARGET_COPY_OUT_VENDOR)/bin/set_bdaddr.sh 47 48# Install scripts to set vendor.* properties 49PRODUCT_COPY_FILES += \ 50 device/linaro/dragonboard/shared/utils/set_hw.sh:$(TARGET_COPY_OUT_VENDOR)/bin/set_hw.sh \ 51 device/linaro/dragonboard/shared/utils/set_udc.sh:$(TARGET_COPY_OUT_VENDOR)/bin/set_udc.sh 52 53# Install scripts to set Ethernet MAC address 54PRODUCT_COPY_FILES += \ 55 device/linaro/dragonboard/shared/utils/ethaddr/ethaddr.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/ethaddr.rc \ 56 device/linaro/dragonboard/shared/utils/ethaddr/set_ethaddr.sh:$(TARGET_COPY_OUT_VENDOR)/bin/set_ethaddr.sh 57 58PRODUCT_VENDOR_PROPERTIES += ro.soc.manufacturer=Qualcomm 59PRODUCT_VENDOR_PROPERTIES += ro.soc.model=SDM845 60 61PRODUCT_SOONG_NAMESPACES += \ 62 vendor/linaro/db845c/$(EXPECTED_LINARO_VENDOR_VERSION) \ 63 vendor/linaro/rb5/$(EXPECTED_LINARO_VENDOR_VERSION) 64 65# Copy firmware files 66$(call inherit-product-if-exists, vendor/linaro/db845c/$(EXPECTED_LINARO_VENDOR_VERSION)/device.mk) 67$(call inherit-product-if-exists, vendor/linaro/rb5/$(EXPECTED_LINARO_VENDOR_VERSION)/device.mk) 68 69TARGET_HARDWARE := db845c 70TARGET_KERNEL_USE ?= 6.6 71 72# Page agnostic support - will build ELF files 16K aligned, 73# which will allow 4k/16k page size aligned kernels 74PRODUCT_MAX_PAGE_SIZE_SUPPORTED := 16384 75PRODUCT_NO_BIONIC_PAGE_SIZE_MACRO := true 76 77include device/linaro/dragonboard/device-common.mk 78