103 lines
3.9 KiB
Makefile
103 lines
3.9 KiB
Makefile
#
|
|
# Copyright (C) 2008 The Android Open Source Project
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
DEVICE_PACKAGE_OVERLAYS += device/htc/click/overlay
|
|
|
|
# Defines for Vold to config fstab defs
|
|
PRODUCT_COPY_FILES += \
|
|
device/htc/click/prebuilt/vold.fstab:system/etc/vold.fstab
|
|
|
|
# Libs to be added to this ROM
|
|
PRODUCT_PACKAGES += \
|
|
sensors.bahamas \
|
|
lights.bahamas \
|
|
copybit.bahamas \
|
|
gralloc.bahamas \
|
|
gps.bahamas \
|
|
libOmxCore \
|
|
libmm-omxcore \
|
|
libOmxVidEnc \
|
|
tiwlan.ini \
|
|
dhcpcd.conf \
|
|
wlan_loader \
|
|
dexpreopt
|
|
|
|
DISABLE_DEXPREOPT := false
|
|
|
|
# Add Gallery 3D / Normal
|
|
PRODUCT_PACKAGES += Gallery
|
|
|
|
# Boot kernel files
|
|
PRODUCT_COPY_FILES += \
|
|
device/htc/click/prebuilt/init.bahamas.rc:root/init.bahamas.rc \
|
|
device/htc/click/prebuilt/init.bahamas.usb.rc:root/init.bahamas.usb.rc \
|
|
device/htc/click/prebuilt/ueventd.bahamas.rc:root/ueventd.bahamas.rc
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/base/data/etc/android.hardware.camera.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.xml \
|
|
frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
|
|
frameworks/base/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
|
|
frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
|
|
frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
|
|
frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
|
|
|
|
# keychars and keylayout files
|
|
PRODUCT_COPY_FILES += \
|
|
device/htc/click/prebuilt/keychars/bahamas-keypad.kcm.bin:system/usr/keychars/bahamas-keypad.kcm.bin \
|
|
device/htc/click/prebuilt/keychars/qwerty.kcm.bin:system/usr/keychars/qwerty.kcm.bin \
|
|
device/htc/click/prebuilt/keychars/qwerty2.kcm.bin:system/usr/keychars/qwerty2.kcm.bin \
|
|
device/htc/click/prebuilt/keylayout/bahamas-keypad.kl:system/usr/keylayout/bahamas-keypad.kl \
|
|
device/htc/click/prebuilt/keylayout/h2w_headset.kl:system/usr/keylayout/h2w_headset.kl \
|
|
device/htc/click/prebuilt/keylayout/qwerty.kl:system/usr/keylayout/qwerty.kl
|
|
|
|
# precompiled files for /system/bin
|
|
PRODUCT_COPY_FILES += \
|
|
device/htc/click/prebuilt/calibrate_screen:system/bin/calibrate_screen \
|
|
device/htc/click/prebuilt/klogtail:system/xbin/klogtail
|
|
|
|
# media configuration xml file
|
|
PRODUCT_COPY_FILES += \
|
|
device/htc/click/prebuilt/media_profiles.xml:/system/etc/media_profiles.xml
|
|
|
|
# Kernel Modules
|
|
PRODUCT_COPY_FILES += $(shell \
|
|
find device/htc/click/prebuilt/modules -name '*.ko' \
|
|
| sed -r 's/^\/?(.*\/)([^/ ]+)$$/\1\2:system\/lib\/modules\/\2/' \
|
|
| tr '\n' ' ')
|
|
|
|
# Kernel Targets
|
|
ifeq ($(TARGET_PREBUILT_KERNEL),)
|
|
LOCAL_KERNEL := device/htc/click/prebuilt/kernel
|
|
else
|
|
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
|
|
endif
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_KERNEL):kernel
|
|
|
|
$(call inherit-product, device/common/gps/gps_eu_supl.mk)
|
|
$(call inherit-product, device/htc/common/common.mk)
|
|
$(call inherit-product, build/target/product/full_base.mk)
|
|
|
|
PRODUCT_NAME := htc_click
|
|
PRODUCT_DEVICE := click
|
|
|
|
# See comment at the top of this file. This is where the other
|
|
# half of the device-specific product definition file takes care
|
|
# of the aspects that require proprietary drivers that aren't
|
|
# commonly available
|
|
$(call inherit-product-if-exists, vendor/htc/click/click-vendor.mk)
|