Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [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 | |
John Stultz | fb37523 | 2021-01-13 03:29:47 +0000 | [diff] [blame] | 17 | # Enable Virtual A/B |
| 18 | AB_OTA_UPDATER := true |
| 19 | AB_OTA_PARTITIONS += \ |
| 20 | product \ |
| 21 | system \ |
| 22 | system_ext \ |
| 23 | vendor |
| 24 | |
| 25 | $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk) |
| 26 | |
Yongqin Liu | e7e999f | 2022-06-09 00:10:03 +0800 | [diff] [blame] | 27 | # BootControl HAL |
| 28 | PRODUCT_PACKAGES += \ |
Yongqin Liu | 51a2bd4 | 2022-06-22 22:26:03 +0800 | [diff] [blame] | 29 | android.hardware.boot@1.2-impl \ |
| 30 | android.hardware.boot@1.2-impl.recovery \ |
| 31 | android.hardware.boot@1.2-service |
Yongqin Liu | e7e999f | 2022-06-09 00:10:03 +0800 | [diff] [blame] | 32 | |
Dmitry Shmidt | 64185fa | 2017-07-28 15:08:55 -0700 | [diff] [blame] | 33 | PRODUCT_COPY_FILES += $(TARGET_PREBUILT_KERNEL):kernel \ |
| 34 | $(TARGET_PREBUILT_DTB):hi3660-hikey960.dtb |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 35 | |
Amit Pundir | e0b34ce | 2023-10-19 18:29:28 +0530 | [diff] [blame^] | 36 | PRODUCT_COPY_FILES += device/linaro/hikey960/linaro_hikey960/fstab.hikey960:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.hikey960 \ |
| 37 | device/linaro/hikey960/linaro_hikey960/fstab.hikey960:$(TARGET_COPY_OUT_RAMDISK)/fstab.hikey960 \ |
| 38 | device/linaro/hikey960/linaro_hikey960/init.hikey960.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.hikey960.rc \ |
| 39 | device/linaro/hikey960/init.hikey960.power.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.hikey960.power.rc \ |
| 40 | device/linaro/hikey960/linaro_hikey960/init.hikey960.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.hikey960.usb.rc \ |
| 41 | device/linaro/hikey960/ueventd.common.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \ |
Amit Pundir | 9441a3a | 2022-10-01 11:07:59 +0530 | [diff] [blame] | 42 | frameworks/base/data/keyboards/Generic.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/hikey960.kl \ |
John Stultz | 3424dc3 | 2018-04-11 15:37:34 -0700 | [diff] [blame] | 43 | frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \ |
Yongqin Liu | 20d4d64 | 2020-11-11 23:07:28 +0800 | [diff] [blame] | 44 | frameworks/native/data/etc/android.hardware.vulkan.version-1_0_3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \ |
| 45 | frameworks/native/data/etc/android.software.vulkan.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 46 | |
John Stultz | 6d0db31 | 2021-01-12 06:21:30 +0000 | [diff] [blame] | 47 | PRODUCT_BUILD_SUPER_PARTITION := true |
| 48 | PRODUCT_USE_DYNAMIC_PARTITIONS := true |
| 49 | PRODUCT_USE_DYNAMIC_PARTITION_SIZE :=true |
| 50 | |
Amit Pundir | 697d566 | 2023-10-19 13:09:12 +0530 | [diff] [blame] | 51 | # Copy BT firmware |
| 52 | PRODUCT_COPY_FILES += \ |
Amit Pundir | e0b34ce | 2023-10-19 18:29:28 +0530 | [diff] [blame^] | 53 | device/linaro/hikey960/bt-wifi-firmware-util/TIInit_11.8.32-pcm-960.bts:$(TARGET_COPY_OUT_VENDOR)/firmware/ti-connectivity/TIInit_11.8.32.bts |
Amit Pundir | 697d566 | 2023-10-19 13:09:12 +0530 | [diff] [blame] | 54 | |
| 55 | # Copy wlan firmware |
| 56 | PRODUCT_COPY_FILES += \ |
Amit Pundir | e0b34ce | 2023-10-19 18:29:28 +0530 | [diff] [blame^] | 57 | device/linaro/hikey960/bt-wifi-firmware-util/wl18xx-fw-4.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/ti-connectivity/wl18xx-fw-4.bin \ |
| 58 | device/linaro/hikey960/bt-wifi-firmware-util/wl18xx-conf-wl1837mod.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/ti-connectivity/wl18xx-conf.bin |
Amit Pundir | 697d566 | 2023-10-19 13:09:12 +0530 | [diff] [blame] | 59 | |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 60 | # Build HiKey960 HDMI audio HAL. Experimental only may not work. FIXME |
| 61 | PRODUCT_PACKAGES += audio.primary.hikey960 |
| 62 | |
John Stultz | 51d2a0d | 2017-05-26 22:06:58 -0700 | [diff] [blame] | 63 | PRODUCT_PACKAGES += gralloc.hikey960 |
| 64 | |
John Stultz | 7923040 | 2018-03-28 12:03:20 -0700 | [diff] [blame] | 65 | #binary blobs from ARM |
John Stultz | ec36f2d | 2022-02-02 04:37:53 +0000 | [diff] [blame] | 66 | PRODUCT_PACKAGES += libGLES_mali \ |
| 67 | vulkan.hikey960 \ |
| 68 | libbccArm \ |
| 69 | libRSDriverArm \ |
| 70 | libmalicore.bc |
Tim Klein | c85f9bb | 2019-05-14 08:46:58 +0100 | [diff] [blame] | 71 | |
Sasha Smundak | 9731f9b | 2020-11-23 22:21:40 -0800 | [diff] [blame] | 72 | ifdef MALI_RS_DRIVER_AVAILABLE |
John Stultz | be064a2 | 2018-08-08 12:21:58 -0700 | [diff] [blame] | 73 | PRODUCT_COPY_FILES += \ |
| 74 | $(LOCAL_PATH)/../mali/bifrost/lib/libclcore.bc:vendor/lib/libclcore.bc \ |
| 75 | $(LOCAL_PATH)/../mali/bifrost/lib/libclcore_neon.bc:vendor/lib/libclcore_neon.bc \ |
| 76 | $(LOCAL_PATH)/../mali/bifrost/bin/bcc:vendor/bin/bcc \ |
| 77 | $(LOCAL_PATH)/../mali/bifrost/lib64/libbcc.so:vendor/lib64/libbcc.so \ |
| 78 | $(LOCAL_PATH)/../mali/bifrost/lib64/libclcore.bc:vendor/lib64/libclcore.bc \ |
| 79 | $(LOCAL_PATH)/../mali/bifrost/lib64/libLLVM.so:vendor/lib64/libLLVM.so |
Tim Klein | c85f9bb | 2019-05-14 08:46:58 +0100 | [diff] [blame] | 80 | endif |
John Stultz | 7923040 | 2018-03-28 12:03:20 -0700 | [diff] [blame] | 81 | |
John Stultz | a6764b2 | 2018-08-07 17:43:39 -0700 | [diff] [blame] | 82 | OVERRIDE_RS_DRIVER := libRSDriverArm.so |
| 83 | PRODUCT_PACKAGES += android.hardware.renderscript@1.0-impl |
| 84 | PRODUCT_PACKAGES += vndk_package |
| 85 | |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 86 | PRODUCT_PACKAGES += power.hikey960 |
| 87 | |
John Stultz | 0c244e8 | 2018-08-15 17:25:46 -0700 | [diff] [blame] | 88 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += sys.usb.controller=ff100000.dwc3 |
| 89 | |
Dmitry Shmidt | ee5f1b5 | 2018-01-19 09:28:08 -0800 | [diff] [blame] | 90 | PRODUCT_PACKAGES += sensors.hikey960 |
Vishal Bhoj | 7b3cf21 | 2017-10-04 22:12:32 +0530 | [diff] [blame] | 91 | |
Amit Pundir | e0b34ce | 2023-10-19 18:29:28 +0530 | [diff] [blame^] | 92 | PRODUCT_PACKAGES += hwcomposer.drm_linaro_hikey960 |
Colin Cross | d626034 | 2019-03-22 13:16:17 -0700 | [diff] [blame] | 93 | |
Alistair Strachan | 10c509c | 2018-11-20 18:09:27 -0800 | [diff] [blame] | 94 | ifneq ($(TARGET_NO_RECOVERY),true) |
| 95 | PRODUCT_COPY_FILES += \ |
Amit Pundir | e0b34ce | 2023-10-19 18:29:28 +0530 | [diff] [blame^] | 96 | device/linaro/hikey960/init.recovery.common.rc:recovery/root/init.recovery.hikey960.rc |
Alistair Strachan | 10c509c | 2018-11-20 18:09:27 -0800 | [diff] [blame] | 97 | endif |