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 | dd5bd1b | 2020-12-22 13:46:24 +0530 | [diff] [blame] | 21 | ifeq ($(TARGET_USES_BOOT_HDR_V3), true) |
| 22 | $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk) |
| 23 | else |
Amit Pundir | 44f3990 | 2021-01-12 16:45:02 +0530 | [diff] [blame] | 24 | $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk) |
Amit Pundir | dd5bd1b | 2020-12-22 13:46:24 +0530 | [diff] [blame] | 25 | endif |
Amit Pundir | 44f3990 | 2021-01-12 16:45:02 +0530 | [diff] [blame] | 26 | |
Amit Pundir | b027405 | 2023-07-24 12:50:45 +0530 | [diff] [blame] | 27 | # dlkm_loader |
| 28 | include device/linaro/dragonboard/shared/utils/dlkm_loader/device.mk |
| 29 | PRODUCT_COPY_FILES += \ |
| 30 | device/linaro/dragonboard/shared/utils/dlkm_loader/dlkm_loader.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/dlkm_loader.rc |
| 31 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 32 | # Build generic Audio HAL |
Yongqin Liu | e495815 | 2023-01-16 09:52:02 +0800 | [diff] [blame] | 33 | PRODUCT_PACKAGES += audio.primary.db845c |
Amit Pundir | 3a69c9b | 2019-04-18 17:15:30 +0530 | [diff] [blame] | 34 | |
Yongqin Liu | af86a2d | 2020-10-21 10:24:53 +0800 | [diff] [blame] | 35 | # BootControl HAL |
| 36 | PRODUCT_PACKAGES += \ |
Yongqin Liu | 496a7ca | 2024-12-03 21:23:17 +0800 | [diff] [blame] | 37 | com.android.hardware.boot \ |
| 38 | android.hardware.boot-service.default_recovery |
Yongqin Liu | af86a2d | 2020-10-21 10:24:53 +0800 | [diff] [blame] | 39 | |
Stephan Gerhold | f70f12a | 2019-01-30 11:15:34 +0100 | [diff] [blame] | 40 | # Set BT address |
| 41 | PRODUCT_PACKAGES += bdaddr |
| 42 | |
| 43 | # Install bdaddr script |
| 44 | PRODUCT_COPY_FILES += \ |
| 45 | device/linaro/dragonboard/shared/utils/bdaddr/set_bdaddr.sh:$(TARGET_COPY_OUT_VENDOR)/bin/set_bdaddr.sh |
| 46 | |
Amit Pundir | c0ad894 | 2021-12-14 19:45:56 +0530 | [diff] [blame] | 47 | # Install scripts to set vendor.* properties |
John Stultz | 590ccad | 2020-02-26 20:23:14 +0000 | [diff] [blame] | 48 | PRODUCT_COPY_FILES += \ |
Amit Pundir | 547ae5f | 2023-07-12 00:10:27 +0530 | [diff] [blame] | 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 |
John Stultz | 590ccad | 2020-02-26 20:23:14 +0000 | [diff] [blame] | 51 | |
Amit Pundir | 7cc6a2d | 2020-04-23 21:39:03 +0530 | [diff] [blame] | 52 | # Install scripts to set Ethernet MAC address |
| 53 | PRODUCT_COPY_FILES += \ |
Amit Pundir | e721f61 | 2023-11-22 10:37:16 +0530 | [diff] [blame] | 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 |
Amit Pundir | 7cc6a2d | 2020-04-23 21:39:03 +0530 | [diff] [blame] | 56 | |
Will McVicker | faa63a3 | 2021-04-06 10:50:27 -0700 | [diff] [blame] | 57 | PRODUCT_VENDOR_PROPERTIES += ro.soc.manufacturer=Qualcomm |
| 58 | PRODUCT_VENDOR_PROPERTIES += ro.soc.model=SDM845 |
| 59 | |
Amit Pundir | 701031f | 2024-03-18 14:42:18 +0530 | [diff] [blame] | 60 | PRODUCT_SOONG_NAMESPACES += \ |
| 61 | vendor/linaro/db845c/$(EXPECTED_LINARO_VENDOR_VERSION) \ |
| 62 | vendor/linaro/rb5/$(EXPECTED_LINARO_VENDOR_VERSION) |
| 63 | |
Amit Pundir | 3a69c9b | 2019-04-18 17:15:30 +0530 | [diff] [blame] | 64 | # Copy firmware files |
Amit Pundir | fbd3fbb | 2021-11-18 14:59:17 +0530 | [diff] [blame] | 65 | $(call inherit-product-if-exists, vendor/linaro/db845c/$(EXPECTED_LINARO_VENDOR_VERSION)/device.mk) |
Amit Pundir | c0ad894 | 2021-12-14 19:45:56 +0530 | [diff] [blame] | 66 | $(call inherit-product-if-exists, vendor/linaro/rb5/$(EXPECTED_LINARO_VENDOR_VERSION)/device.mk) |
Peter Collingbourne | e8b96e3 | 2022-02-02 11:38:11 -0800 | [diff] [blame] | 67 | |
| 68 | TARGET_HARDWARE := db845c |
Amit Pundir | be8a49a | 2024-12-18 15:59:59 +0530 | [diff] [blame] | 69 | TARGET_KERNEL_USE ?= 6.12 |
Peter Collingbourne | e8b96e3 | 2022-02-02 11:38:11 -0800 | [diff] [blame] | 70 | |
Sumit Semwal | e93875d | 2024-04-11 19:46:37 +0530 | [diff] [blame] | 71 | # Page agnostic support - will build ELF files 16K aligned, |
| 72 | # which will allow 4k/16k page size aligned kernels |
| 73 | PRODUCT_MAX_PAGE_SIZE_SUPPORTED := 16384 |
| 74 | PRODUCT_NO_BIONIC_PAGE_SIZE_MACRO := true |
| 75 | |
Peter Collingbourne | e8b96e3 | 2022-02-02 11:38:11 -0800 | [diff] [blame] | 76 | include device/linaro/dragonboard/device-common.mk |