• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    com.android.hardware.boot \
38    android.hardware.boot-service.default_recovery
39
40# Set BT address
41PRODUCT_PACKAGES += bdaddr
42
43# Install bdaddr script
44PRODUCT_COPY_FILES += \
45    device/linaro/dragonboard/shared/utils/bdaddr/set_bdaddr.sh:$(TARGET_COPY_OUT_VENDOR)/bin/set_bdaddr.sh
46
47# Install scripts to set vendor.* properties
48PRODUCT_COPY_FILES += \
49    device/linaro/dragonboard/shared/utils/set_hw.sh:$(TARGET_COPY_OUT_VENDOR)/bin/set_hw.sh \
50    device/linaro/dragonboard/shared/utils/set_udc.sh:$(TARGET_COPY_OUT_VENDOR)/bin/set_udc.sh
51
52# Install scripts to set Ethernet MAC address
53PRODUCT_COPY_FILES += \
54    device/linaro/dragonboard/shared/utils/ethaddr/ethaddr.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/ethaddr.rc \
55    device/linaro/dragonboard/shared/utils/ethaddr/set_ethaddr.sh:$(TARGET_COPY_OUT_VENDOR)/bin/set_ethaddr.sh
56
57PRODUCT_VENDOR_PROPERTIES += ro.soc.manufacturer=Qualcomm
58PRODUCT_VENDOR_PROPERTIES += ro.soc.model=SDM845
59
60PRODUCT_SOONG_NAMESPACES += \
61    vendor/linaro/db845c/$(EXPECTED_LINARO_VENDOR_VERSION) \
62    vendor/linaro/rb5/$(EXPECTED_LINARO_VENDOR_VERSION)
63
64# Copy firmware files
65$(call inherit-product-if-exists, vendor/linaro/db845c/$(EXPECTED_LINARO_VENDOR_VERSION)/device.mk)
66$(call inherit-product-if-exists, vendor/linaro/rb5/$(EXPECTED_LINARO_VENDOR_VERSION)/device.mk)
67
68# Power and Thermal HAL
69ifeq ($(TARGET_USES_LIBPM), true)
70$(call inherit-product, vendor/linaro/shared/$(EXPECTED_LINARO_VENDOR_VERSION)/external/libpm/device.mk)
71else
72PRODUCT_PACKAGES += \
73    android.hardware.power-service.example \
74    android.hardware.power.stats-service.example \
75    com.android.hardware.thermal
76endif
77
78TARGET_HARDWARE := db845c
79TARGET_KERNEL_USE ?= 6.12
80
81# Page agnostic support - will build ELF files 16K aligned,
82# which will allow 4k/16k page size aligned kernels
83PRODUCT_MAX_PAGE_SIZE_SUPPORTED := 16384
84PRODUCT_NO_BIONIC_PAGE_SIZE_MACRO := true
85
86include device/linaro/dragonboard/device-common.mk
87