Amit Pundir | bd765d6 | 2024-03-08 22:31:43 +0530 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2024 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 | |
| 20 | include $(LOCAL_PATH)/../vendor-package-ver.mk |
| 21 | $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk) |
| 22 | |
| 23 | # dlkm_loader |
| 24 | include device/linaro/dragonboard/shared/utils/dlkm_loader/device.mk |
| 25 | PRODUCT_COPY_FILES += \ |
| 26 | device/linaro/dragonboard/shared/utils/dlkm_loader/dlkm_loader.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/dlkm_loader.rc |
| 27 | |
| 28 | # Build generic Audio HAL |
| 29 | PRODUCT_PACKAGES += audio.primary.sm8x50 |
| 30 | |
| 31 | # BootControl HAL |
| 32 | PRODUCT_PACKAGES += \ |
| 33 | android.hardware.boot@1.2-impl \ |
| 34 | android.hardware.boot@1.2-impl.recovery \ |
| 35 | android.hardware.boot@1.2-service |
| 36 | |
| 37 | # Set BT address |
| 38 | PRODUCT_PACKAGES += bdaddr |
| 39 | |
| 40 | # Install bdaddr script |
| 41 | PRODUCT_COPY_FILES += \ |
| 42 | device/linaro/dragonboard/shared/utils/bdaddr/set_bdaddr.sh:$(TARGET_COPY_OUT_VENDOR)/bin/set_bdaddr.sh |
| 43 | |
| 44 | # Install scripts to set vendor.* properties |
| 45 | PRODUCT_COPY_FILES += \ |
| 46 | device/linaro/dragonboard/shared/utils/set_hw.sh:$(TARGET_COPY_OUT_VENDOR)/bin/set_hw.sh \ |
| 47 | device/linaro/dragonboard/shared/utils/set_udc.sh:$(TARGET_COPY_OUT_VENDOR)/bin/set_udc.sh |
| 48 | |
| 49 | # Install scripts to set Ethernet MAC address |
| 50 | PRODUCT_COPY_FILES += \ |
| 51 | device/linaro/dragonboard/shared/utils/ethaddr/ethaddr.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/ethaddr.rc \ |
| 52 | device/linaro/dragonboard/shared/utils/ethaddr/set_ethaddr.sh:$(TARGET_COPY_OUT_VENDOR)/bin/set_ethaddr.sh |
| 53 | |
Amit Pundir | ef6d03d | 2024-04-13 23:52:27 +0530 | [diff] [blame] | 54 | ifneq ($(TARGET_SDCARD_BOOT), true) |
Amit Pundir | bd765d6 | 2024-03-08 22:31:43 +0530 | [diff] [blame] | 55 | PRODUCT_COPY_FILES += \ |
| 56 | $(LOCAL_PATH)/fstab:$(TARGET_COPY_OUT_RAMDISK)/first_stage_ramdisk/fstab.sm8x50 \ |
| 57 | $(LOCAL_PATH)/fstab:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.sm8x50 |
Amit Pundir | ef6d03d | 2024-04-13 23:52:27 +0530 | [diff] [blame] | 58 | endif |
Amit Pundir | bd765d6 | 2024-03-08 22:31:43 +0530 | [diff] [blame] | 59 | |
| 60 | PRODUCT_VENDOR_PROPERTIES += \ |
| 61 | ro.soc.manufacturer=Snapdragon 8 Gen Devboard \ |
| 62 | ro.soc.model=SM8x50 |
| 63 | |
| 64 | PRODUCT_SOONG_NAMESPACES += \ |
| 65 | vendor/linaro/sm8x50/$(EXPECTED_LINARO_VENDOR_VERSION) |
| 66 | |
| 67 | # XXX until v4 support |
| 68 | PRODUCT_COPY_FILES += \ |
| 69 | device/linaro/dragonboard/shared/utils/dlkm_loader/vendor_ramdisk.modules.blocklist:$(TARGET_COPY_OUT_RAMDISK)/lib/modules/modules.blocklist |
| 70 | |
| 71 | # Copy firmware files |
| 72 | $(call inherit-product-if-exists, vendor/linaro/sm8x50/$(EXPECTED_LINARO_VENDOR_VERSION)/device.mk) |
| 73 | |
| 74 | TARGET_HARDWARE := sm8x50 |
| 75 | TARGET_KERNEL_USE ?= mainline |
| 76 | |
| 77 | include device/linaro/dragonboard/device-common.mk |