blob: 03473582ee2430fed9e56cf82242d84c06e28f6a [file] [log] [blame]
Amit Pundiraf628c22016-11-02 16:37:00 +08001#
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
17ifeq ($(TARGET_PREBUILT_KERNEL),)
18LOCAL_KERNEL := device/linaro/hikey-kernel/Image-dtb
19LOCAL_DTB := device/linaro/hikey-kernel/hi6220-hikey.dtb
20LOCAL_FSTAB := fstab.hikey
21else
22LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
23LOCAL_DTB := $(TARGET_PREBUILT_DTB)
24LOCAL_FSTAB := $(TARGET_FSTAB)
25endif
26
27PRODUCT_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
36PRODUCT_PACKAGES += audio.primary.hikey
37
38# Include USB speed switch App
39PRODUCT_PACKAGES += UsbSpeedSwitch
40
41# Build libion
42PRODUCT_PACKAGES += libion
43
44# Build gralloc for hikey
45PRODUCT_PACKAGES += gralloc.hikey
46
47# PowerHAL
48PRODUCT_PACKAGES += power.hikey
49
50# Include vendor binaries
51$(call inherit-product-if-exists, vendor/linaro/hikey/device-vendor.mk)