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
17PRODUCT_COPY_FILES +=	$(TARGET_PREBUILT_KERNEL):kernel \
18			$(TARGET_PREBUILT_DTB):hi3660-hikey960.dtb
19
20PRODUCT_COPY_FILES +=	$(LOCAL_PATH)/fstab.hikey960:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.hikey960 \
21			device/linaro/hikey/fstab.ramdisk:$(TARGET_COPY_OUT_RAMDISK)/fstab.hikey960 \
22			device/linaro/hikey/hikey960/init.hikey960.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.hikey960.rc \
23			device/linaro/hikey/init.hikey960.power.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.hikey960.power.rc \
24			device/linaro/hikey/init.common.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.hikey960.usb.rc \
25			device/linaro/hikey/ueventd.common.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
26			device/linaro/hikey/common.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/hikey960.kl \
27			frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \
28			frameworks/native/data/etc/android.hardware.vulkan.version-1_0_3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml
29
30# Copy BT firmware
31PRODUCT_COPY_FILES += \
32	device/linaro/hikey/bt-wifi-firmware-util/TIInit_11.8.32-pcm-960.bts:$(TARGET_COPY_OUT_VENDOR)/firmware/ti-connectivity/TIInit_11.8.32.bts
33
34# Copy wlan firmware
35PRODUCT_COPY_FILES += \
36	device/linaro/hikey/bt-wifi-firmware-util/wl18xx-fw-4.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/ti-connectivity/wl18xx-fw-4.bin \
37	device/linaro/hikey/bt-wifi-firmware-util/wl18xx-conf-wl1837mod.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/ti-connectivity/wl18xx-conf.bin
38
39# Copy hifi firmware
40PRODUCT_COPY_FILES += \
41	device/linaro/hikey/hifi/firmware/hifi-hikey960.img:$(TARGET_COPY_OUT_VENDOR)/firmware/hifi/hifi.img
42
43PRODUCT_PACKAGES += \
44	dhifimesg
45
46
47# Build HiKey960 HDMI audio HAL. Experimental only may not work. FIXME
48PRODUCT_PACKAGES += audio.primary.hikey960
49
50PRODUCT_PACKAGES += gralloc.hikey960
51
52#binary blobs from ARM
53PRODUCT_PACKAGES +=	libGLES_mali.so \
54			vulkan.hikey960.so \
55			libbccArm.so \
56			libRSDriverArm.so \
57			libmalicore.bc \
58			END_USER_LICENCE_AGREEMENT.txt
59
60ifdef $(MALI_RS_DRIVER_AVAILABLE)
61PRODUCT_COPY_FILES += \
62        $(LOCAL_PATH)/../mali/bifrost/lib/libclcore.bc:vendor/lib/libclcore.bc \
63        $(LOCAL_PATH)/../mali/bifrost/lib/libclcore_neon.bc:vendor/lib/libclcore_neon.bc \
64        $(LOCAL_PATH)/../mali/bifrost/bin/bcc:vendor/bin/bcc \
65        $(LOCAL_PATH)/../mali/bifrost/lib64/libbcc.so:vendor/lib64/libbcc.so \
66        $(LOCAL_PATH)/../mali/bifrost/lib64/libclcore.bc:vendor/lib64/libclcore.bc \
67        $(LOCAL_PATH)/../mali/bifrost/lib64/libLLVM.so:vendor/lib64/libLLVM.so
68endif
69
70OVERRIDE_RS_DRIVER := libRSDriverArm.so
71PRODUCT_PACKAGES += android.hardware.renderscript@1.0-impl
72PRODUCT_PACKAGES += vndk_package
73
74PRODUCT_PACKAGES += power.hikey960
75
76PRODUCT_DEFAULT_PROPERTY_OVERRIDES += sys.usb.controller=ff100000.dwc3
77
78PRODUCT_PACKAGES += sensors.hikey960
79
80ifeq ($(HIKEY_USE_DRM_HWCOMPOSER), true)
81  PRODUCT_PACKAGES += hwcomposer.drm_hikey960
82endif
83
84ifneq ($(TARGET_NO_RECOVERY),true)
85PRODUCT_COPY_FILES += \
86	device/linaro/hikey/init.recovery.common.rc:recovery/root/init.recovery.hikey960.rc
87endif
88