87 lines
3.8 KiB
Makefile
87 lines
3.8 KiB
Makefile
LOCAL_PATH := device/amazon/ford
|
|
|
|
ifeq ($(TARGET_PREBUILT_KERNEL),)
|
|
LOCAL_KERNEL := $(LOCAL_PATH)/kernel
|
|
else
|
|
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
|
|
endif
|
|
|
|
DEVICE_FOLDER := device/amazon/ford
|
|
|
|
# Get non-open-source specific aspects
|
|
$(call inherit-product-if-exists, vendor/amazon/ford/ford-vendor.mk)
|
|
|
|
# Device overlay
|
|
DEVICE_PACKAGE_OVERLAYS += $(DEVICE_FOLDER)/overlay
|
|
|
|
# Overlay Binaries
|
|
$(call inherit-product, $(LOCAL_PATH)/overlay-binaries/overlay-binaries.mk)
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
|
|
|
|
# Device uses high-density artwork where available
|
|
PRODUCT_AAPT_CONFIG := normal mdpi
|
|
PRODUCT_AAPT_PREF_CONFIG := mdpi
|
|
|
|
# Permissions
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
|
|
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
|
|
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
|
|
frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
|
|
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
|
|
frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
|
|
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
|
|
frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
|
|
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.compass.xml \
|
|
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
|
|
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
|
|
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
|
|
frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
|
|
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
|
|
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
|
|
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
|
|
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
|
|
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
|
|
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml
|
|
|
|
$(call inherit-product-if-exists, vendor/amazon/ford/ford-vendor.mk)
|
|
|
|
# Audio
|
|
PRODUCT_PACKAGES += \
|
|
audio.a2dp.default
|
|
|
|
# Bluetooth
|
|
PRODUCT_PACKAGES += \
|
|
bluetooth.default
|
|
|
|
# Power
|
|
PRODUCT_PACKAGES += \
|
|
power.default
|
|
|
|
# network
|
|
PRODUCT_PACKAGES += \
|
|
netd
|
|
|
|
# IPv6 tethering
|
|
PRODUCT_PACKAGES += \
|
|
ebtables \
|
|
ethertypes
|
|
|
|
# root access
|
|
PRODUCT_PACKAGES += \
|
|
su
|
|
|
|
DEVICE_PACKAGE_OVERLAYS += device/amazon/ford/overlay
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_KERNEL):kernel
|
|
|
|
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
|
|
|
|
# call dalvik heap config
|
|
$(call inherit-product, frameworks/native/build/tablet-7in-hdpi-1024-dalvik-heap.mk)
|
|
|
|
# call hwui memory config
|
|
$(call inherit-product-if-exists, frameworks/native/build/phone-xxhdpi-2048-hwui-memory.mk)
|