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 device/linaro/hikey/hifi/xaf/host-apf/tools/dhifimesg:/vendor/bin/dhifimesg 43 44 45# Build HiKey960 HDMI audio HAL. Experimental only may not work. FIXME 46PRODUCT_PACKAGES += audio.primary.hikey960 47 48PRODUCT_PACKAGES += gralloc.hikey960 49 50#binary blobs from ARM 51PRODUCT_PACKAGES += libGLES_mali.so \ 52 vulkan.hikey960.so \ 53 libbccArm.so \ 54 libRSDriverArm.so \ 55 libmalicore.bc \ 56 END_USER_LICENCE_AGREEMENT.txt 57 58ifdef $(MALI_RS_DRIVER_AVAILABLE) 59PRODUCT_COPY_FILES += \ 60 $(LOCAL_PATH)/../mali/bifrost/lib/libclcore.bc:vendor/lib/libclcore.bc \ 61 $(LOCAL_PATH)/../mali/bifrost/lib/libclcore_neon.bc:vendor/lib/libclcore_neon.bc \ 62 $(LOCAL_PATH)/../mali/bifrost/bin/bcc:vendor/bin/bcc \ 63 $(LOCAL_PATH)/../mali/bifrost/lib64/libbcc.so:vendor/lib64/libbcc.so \ 64 $(LOCAL_PATH)/../mali/bifrost/lib64/libclcore.bc:vendor/lib64/libclcore.bc \ 65 $(LOCAL_PATH)/../mali/bifrost/lib64/libLLVM.so:vendor/lib64/libLLVM.so 66endif 67 68OVERRIDE_RS_DRIVER := libRSDriverArm.so 69PRODUCT_PACKAGES += android.hardware.renderscript@1.0-impl 70PRODUCT_PACKAGES += vndk_package 71 72PRODUCT_PACKAGES += power.hikey960 73 74PRODUCT_DEFAULT_PROPERTY_OVERRIDES += sys.usb.controller=ff100000.dwc3 75 76PRODUCT_PACKAGES += sensors.hikey960 77 78ifeq ($(HIKEY_USE_DRM_HWCOMPOSER), true) 79 PRODUCT_PACKAGES += hwcomposer.drm_hikey960 80endif 81 82# Unfortunately inherit-product doesn't export build variables from the 83# called make file to the caller, so we have to include it directly here. 84# FIXME: Improve this the next time we update the binary package 85ifneq (,$(wildcard vendor/linaro/hikey960/hisilicon/device-partial.mk)) 86include vendor/linaro/hikey960/hisilicon/device-partial.mk 87endif 88 89EXPECTED_HISI_CODEC_VERSION := 1 90# Check and make sure the vendor package is the expected version 91ifneq ($(TARGET_HISI_CODEC_VERSION),$(EXPECTED_HISI_CODEC_VERSION)) 92$(warning TARGET_HISI_CODEC_VERSION ($(TARGET_HISI_CODEC_VERSION)) does not match exiting the build ($(EXPECTED_HISI_CODEC_VERSION)).) 93$(warning Please download new binaries here:) 94$(warning https://dl.google.com/dl/android/aosp/hisilicon-hikey960-OPR-3c243263.tgz ) 95$(warning And extract in the ANDROID_TOP_DIR) 96endif 97 98ifneq ($(TARGET_NO_RECOVERY),true) 99PRODUCT_COPY_FILES += \ 100 device/linaro/hikey/init.recovery.common.rc:recovery/root/init.recovery.hikey960.rc 101endif 102