Amit Pundir | af628c2 | 2016-11-02 16:37:00 +0800 | [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 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
| 18 | LOCAL_KERNEL := device/linaro/hikey-kernel/Image-dtb |
| 19 | LOCAL_DTB := device/linaro/hikey-kernel/hi6220-hikey.dtb |
| 20 | LOCAL_FSTAB := fstab.hikey |
| 21 | else |
| 22 | LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) |
| 23 | LOCAL_DTB := $(TARGET_PREBUILT_DTB) |
| 24 | LOCAL_FSTAB := $(TARGET_FSTAB) |
| 25 | endif |
| 26 | |
| 27 | PRODUCT_COPY_FILES += $(LOCAL_KERNEL):kernel \ |
| 28 | $(LOCAL_DTB):hi6220-hikey.dtb \ |
| 29 | $(LOCAL_PATH)/$(LOCAL_FSTAB):root/fstab.hikey \ |
| 30 | device/linaro/hikey/init.common.rc:root/init.hikey.rc \ |
| 31 | device/linaro/hikey/init.common.usb.rc:root/init.hikey.usb.rc \ |
| 32 | device/linaro/hikey/ueventd.common.rc:root/ueventd.hikey.rc \ |
| 33 | device/linaro/hikey/common.kl:system/usr/keylayout/hikey.kl |
| 34 | |
| 35 | # Build HiKey HDMI audio HAL |
| 36 | PRODUCT_PACKAGES += audio.primary.hikey |
| 37 | |
| 38 | # Include USB speed switch App |
| 39 | PRODUCT_PACKAGES += UsbSpeedSwitch |
| 40 | |
| 41 | # Build libion |
| 42 | PRODUCT_PACKAGES += libion |
| 43 | |
| 44 | # Build gralloc for hikey |
| 45 | PRODUCT_PACKAGES += gralloc.hikey |
| 46 | |
| 47 | # PowerHAL |
| 48 | PRODUCT_PACKAGES += power.hikey |
| 49 | |
| 50 | # Include vendor binaries |
| 51 | $(call inherit-product-if-exists, vendor/linaro/hikey/device-vendor.mk) |