Amit Pundir | e4ca84a | 2021-05-26 14:30:57 +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 | PRODUCT_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 |
| 24 | AB_OTA_UPDATER := true |
| 25 | AB_OTA_PARTITIONS += \ |
| 26 | product \ |
| 27 | system \ |
| 28 | system_ext \ |
| 29 | vendor |
| 30 | |
| 31 | $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk) |
| 32 | |
| 33 | PRODUCT_COPY_FILES := \ |
| 34 | $(RB5_KERNEL_DIR)/Image.gz:kernel \ |
| 35 | $(RB5_KERNEL_DIR)/qrb5165-rb5.dtb:dtb.img \ |
| 36 | $(LOCAL_PATH)/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \ |
| 37 | device/linaro/dragonboard/fstab.common:$(TARGET_COPY_OUT_RAMDISK)/fstab.rb5 \ |
| 38 | device/linaro/dragonboard/fstab.common:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.rb5 \ |
| 39 | device/linaro/dragonboard/init.common.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.rb5.rc \ |
| 40 | device/linaro/dragonboard/init.common.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.rb5.usb.rc \ |
| 41 | device/linaro/dragonboard/common.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/rb5.kl |
| 42 | |
| 43 | # Build generic Audio HAL |
| 44 | PRODUCT_PACKAGES := audio.primary.rb5 |
| 45 | |
| 46 | # BootControl HAL |
| 47 | PRODUCT_PACKAGES += \ |
| 48 | android.hardware.boot@1.2-impl \ |
| 49 | android.hardware.boot@1.2-impl.recovery \ |
| 50 | android.hardware.boot@1.2-service |
| 51 | |
| 52 | PRODUCT_PACKAGES += \ |
| 53 | pd-mapper \ |
| 54 | qrtr-ns \ |
| 55 | qrtr-cfg \ |
| 56 | qrtr-lookup \ |
| 57 | rmtfs \ |
| 58 | tqftpserv |
| 59 | |
| 60 | PRODUCT_COPY_FILES += \ |
| 61 | device/linaro/dragonboard/qcom/init.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.qcom.rc |
| 62 | |
| 63 | PRODUCT_VENDOR_PROPERTIES += ro.soc.manufacturer=Qualcomm |
| 64 | PRODUCT_VENDOR_PROPERTIES += ro.soc.model=QRB5165 |
| 65 | |
| 66 | PRODUCT_PROPERTY_OVERRIDES += ro.sf.lcd_density=160 |
| 67 | |
| 68 | # Copy firmware files |
| 69 | $(call inherit-product-if-exists, $(LOCAL_PATH)/firmware/device.mk) |