blob: 7d1788019693b7cfcd3fe4c8cde35b98f01b3f43 [file] [log] [blame]
Dmitry Shmidt5d080802017-04-11 14:20:03 -07001#
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
Yongqin Liu8c352a42023-01-03 17:13:23 +080017ifeq ($(HIKEY960_ENABLE_AVF), true)
18# Based on the instructions in the following link:
19# https://android.googlesource.com/platform/packages/modules/Virtualization/+/refs/heads/master/microdroid/README.md
20# Tested with the android13-5.10 and android-mainline kernels.
21$(call inherit-product, packages/modules/Virtualization/apex/product_packages.mk)
22endif
23
John Stultzfb375232021-01-13 03:29:47 +000024# Enable Virtual A/B
25AB_OTA_UPDATER := true
26AB_OTA_PARTITIONS += \
27 product \
28 system \
29 system_ext \
30 vendor
31
32$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk)
33
Yongqin Liue7e999f2022-06-09 00:10:03 +080034# BootControl HAL
35PRODUCT_PACKAGES += \
Yongqin Liu51a2bd42022-06-22 22:26:03 +080036 android.hardware.boot@1.2-impl \
37 android.hardware.boot@1.2-impl.recovery \
38 android.hardware.boot@1.2-service
Yongqin Liue7e999f2022-06-09 00:10:03 +080039
Dmitry Shmidt64185fa2017-07-28 15:08:55 -070040PRODUCT_COPY_FILES += $(TARGET_PREBUILT_KERNEL):kernel \
41 $(TARGET_PREBUILT_DTB):hi3660-hikey960.dtb
Dmitry Shmidt5d080802017-04-11 14:20:03 -070042
John Stultz531fb4c2018-06-20 16:42:53 -070043PRODUCT_COPY_FILES += $(LOCAL_PATH)/fstab.hikey960:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.hikey960 \
John Stultza8cd4d92021-02-02 04:31:01 +000044 $(LOCAL_PATH)/fstab.hikey960:$(TARGET_COPY_OUT_RAMDISK)/fstab.hikey960 \
Colin Crossd6260342019-03-22 13:16:17 -070045 device/linaro/hikey/hikey960/init.hikey960.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.hikey960.rc \
John Stultz3424dc32018-04-11 15:37:34 -070046 device/linaro/hikey/init.hikey960.power.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.hikey960.power.rc \
Yongqin Liu339a2682020-09-11 17:54:01 +080047 device/linaro/hikey/hikey960/init.hikey960.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.hikey960.usb.rc \
John Stultz3424dc32018-04-11 15:37:34 -070048 device/linaro/hikey/ueventd.common.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
Amit Pundir9441a3a2022-10-01 11:07:59 +053049 frameworks/base/data/keyboards/Generic.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/hikey960.kl \
John Stultz3424dc32018-04-11 15:37:34 -070050 frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \
Yongqin Liu20d4d642020-11-11 23:07:28 +080051 frameworks/native/data/etc/android.hardware.vulkan.version-1_0_3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \
52 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 Shmidt5d080802017-04-11 14:20:03 -070053
John Stultz6d0db312021-01-12 06:21:30 +000054PRODUCT_BUILD_SUPER_PARTITION := true
55PRODUCT_USE_DYNAMIC_PARTITIONS := true
56PRODUCT_USE_DYNAMIC_PARTITION_SIZE :=true
57
Dmitry Shmidt5d080802017-04-11 14:20:03 -070058# Build HiKey960 HDMI audio HAL. Experimental only may not work. FIXME
59PRODUCT_PACKAGES += audio.primary.hikey960
60
John Stultz51d2a0d2017-05-26 22:06:58 -070061PRODUCT_PACKAGES += gralloc.hikey960
62
John Stultz79230402018-03-28 12:03:20 -070063#binary blobs from ARM
John Stultzec36f2d2022-02-02 04:37:53 +000064PRODUCT_PACKAGES += libGLES_mali \
65 vulkan.hikey960 \
66 libbccArm \
67 libRSDriverArm \
68 libmalicore.bc
Tim Kleinc85f9bb2019-05-14 08:46:58 +010069
Sasha Smundak9731f9b2020-11-23 22:21:40 -080070ifdef MALI_RS_DRIVER_AVAILABLE
John Stultzbe064a22018-08-08 12:21:58 -070071PRODUCT_COPY_FILES += \
72 $(LOCAL_PATH)/../mali/bifrost/lib/libclcore.bc:vendor/lib/libclcore.bc \
73 $(LOCAL_PATH)/../mali/bifrost/lib/libclcore_neon.bc:vendor/lib/libclcore_neon.bc \
74 $(LOCAL_PATH)/../mali/bifrost/bin/bcc:vendor/bin/bcc \
75 $(LOCAL_PATH)/../mali/bifrost/lib64/libbcc.so:vendor/lib64/libbcc.so \
76 $(LOCAL_PATH)/../mali/bifrost/lib64/libclcore.bc:vendor/lib64/libclcore.bc \
77 $(LOCAL_PATH)/../mali/bifrost/lib64/libLLVM.so:vendor/lib64/libLLVM.so
Tim Kleinc85f9bb2019-05-14 08:46:58 +010078endif
John Stultz79230402018-03-28 12:03:20 -070079
John Stultza6764b22018-08-07 17:43:39 -070080OVERRIDE_RS_DRIVER := libRSDriverArm.so
81PRODUCT_PACKAGES += android.hardware.renderscript@1.0-impl
82PRODUCT_PACKAGES += vndk_package
83
Dmitry Shmidt5d080802017-04-11 14:20:03 -070084PRODUCT_PACKAGES += power.hikey960
85
John Stultz0c244e82018-08-15 17:25:46 -070086PRODUCT_DEFAULT_PROPERTY_OVERRIDES += sys.usb.controller=ff100000.dwc3
87
Dmitry Shmidtee5f1b52018-01-19 09:28:08 -080088PRODUCT_PACKAGES += sensors.hikey960
Vishal Bhoj7b3cf212017-10-04 22:12:32 +053089
John Stultz2e546272021-07-16 00:54:21 +000090PRODUCT_PACKAGES += hwcomposer.drm_hikey960
Colin Crossd6260342019-03-22 13:16:17 -070091
Alistair Strachan10c509c2018-11-20 18:09:27 -080092ifneq ($(TARGET_NO_RECOVERY),true)
93PRODUCT_COPY_FILES += \
94 device/linaro/hikey/init.recovery.common.rc:recovery/root/init.recovery.hikey960.rc
95endif