Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2013 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),) |
Colin Cross | cd57f83 | 2013-10-10 16:47:36 -0700 | [diff] [blame] | 18 | LOCAL_KERNEL := device/htc/flounder-kernel/zImage-dtb |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 19 | else |
| 20 | LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) |
| 21 | endif |
| 22 | |
| 23 | PRODUCT_COPY_FILES := \ |
| 24 | $(LOCAL_KERNEL):kernel \ |
Colin Cross | 6e6bad2 | 2013-10-18 10:52:53 -0700 | [diff] [blame] | 25 | $(LOCAL_PATH)/init.flounder.rc:root/init.flounder.rc \ |
| 26 | $(LOCAL_PATH)/init.flounder.usb.rc:root/init.flounder.usb.rc \ |
| 27 | $(LOCAL_PATH)/fstab.flounder:root/fstab.flounder \ |
| 28 | $(LOCAL_PATH)/ueventd.flounder.rc:root/ueventd.flounder.rc |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 29 | |
| 30 | # Copy ardbeg files to allow booting on flounder or ardbeg for now |
| 31 | PRODUCT_COPY_FILES += \ |
| 32 | device/nvidia/ardbeg/init.ardbeg.rc:root/init.ardbeg.rc \ |
| 33 | device/nvidia/ardbeg/init.ardbeg.usb.rc:root/init.ardbeg.usb.rc \ |
| 34 | device/nvidia/ardbeg/fstab.ardbeg:root/fstab.ardbeg \ |
| 35 | device/nvidia/ardbeg/ueventd.ardbeg.rc:root/ueventd.ardbeg.rc \ |
| 36 | device/nvidia/ardbeg/raydium_ts.idc:system/usr/idc/raydium_ts.idc |
| 37 | |
Colin Cross | ebdbcb2 | 2013-10-10 15:58:21 -0700 | [diff] [blame] | 38 | PRODUCT_PACKAGES += \ |
| 39 | power.ardbeg \ |
| 40 | lights.ardbeg |
| 41 | |
Dmitry Shmidt | c63232c | 2013-12-12 11:07:43 -0800 | [diff] [blame] | 42 | PRODUCT_PACKAGES += \ |
| 43 | libwpa_client \ |
| 44 | hostapd \ |
| 45 | wpa_supplicant \ |
| 46 | wpa_supplicant.conf |
| 47 | |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 48 | PRODUCT_COPY_FILES += \ |
| 49 | frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \ |
| 50 | frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ |
| 51 | frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ |
Dmitry Shmidt | 8ee220b | 2013-10-14 17:22:30 -0700 | [diff] [blame] | 52 | frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ |
Yogesh Agrawal | 9240c1a | 2013-10-16 15:13:32 +0530 | [diff] [blame] | 53 | frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \ |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 54 | frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ |
| 55 | frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ |
| 56 | frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ |
| 57 | frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \ |
| 58 | frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ |
| 59 | frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ |
| 60 | frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \ |
| 61 | frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \ |
| 62 | frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ |
| 63 | frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ |
| 64 | frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml |
| 65 | |
Dmitry Shmidt | c4a032a | 2013-10-09 14:57:38 -0700 | [diff] [blame] | 66 | PRODUCT_COPY_FILES += \ |
Colin Cross | 6e6bad2 | 2013-10-18 10:52:53 -0700 | [diff] [blame] | 67 | $(LOCAL_PATH)/media_codecs.xml:system/etc/media_codecs.xml \ |
| 68 | $(LOCAL_PATH)/media_profiles.xml:system/etc/media_profiles.xml \ |
| 69 | $(LOCAL_PATH)/audio_policy.conf:system/etc/audio_policy.conf |
Yogesh Agrawal | 9240c1a | 2013-10-16 15:13:32 +0530 | [diff] [blame] | 70 | |
| 71 | PRODUCT_COPY_FILES += \ |
Colin Cross | 6e6bad2 | 2013-10-18 10:52:53 -0700 | [diff] [blame] | 72 | $(LOCAL_PATH)/nvaudio_conf.xml:system/etc/nvaudio_conf.xml \ |
Alex Ray | 016f3a1 | 2013-10-23 17:02:11 -0700 | [diff] [blame] | 73 | $(LOCAL_PATH)/nvcamera.conf:system/etc/nvcamera.conf \ |
Colin Cross | 6e6bad2 | 2013-10-18 10:52:53 -0700 | [diff] [blame] | 74 | $(LOCAL_PATH)/bcmdhd.cal:system/etc/wifi/bcmdhd.cal |
Dmitry Shmidt | c4a032a | 2013-10-09 14:57:38 -0700 | [diff] [blame] | 75 | |
edwin_tung | e98db7e | 2013-12-05 12:08:00 +0800 | [diff] [blame^] | 76 | PRODUCT_COPY_FILES += \ |
| 77 | $(LOCAL_PATH)/gps/gps.conf:system/etc/gps.conf \ |
| 78 | $(LOCAL_PATH)/gps/glgps:system/bin/glgps \ |
| 79 | $(LOCAL_PATH)/gps/gpsconfig.xml:system/etc/gpsconfig.xml \ |
| 80 | $(LOCAL_PATH)/gps/gps.flounder.so:system/lib/hw/gps.flounder.so |
| 81 | |
| 82 | |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 83 | PRODUCT_AAPT_CONFIG := xlarge hdpi xhdpi |
| 84 | PRODUCT_AAPT_PREF_CONFIG := xhdpi |
| 85 | |
| 86 | PRODUCT_CHARACTERISTICS := tablet,nosdcard |
| 87 | |
| 88 | DEVICE_PACKAGE_OVERLAYS := \ |
Colin Cross | 6e6bad2 | 2013-10-18 10:52:53 -0700 | [diff] [blame] | 89 | $(LOCAL_PATH)/overlay |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 90 | |
| 91 | PRODUCT_TAGS += dalvik.gc.type-precise |
| 92 | |
| 93 | PRODUCT_PACKAGES += \ |
| 94 | librs_jni \ |
| 95 | com.android.future.usb.accessory |
| 96 | |
| 97 | PRODUCT_PACKAGES += \ |
Colin Cross | 5b94bde | 2013-10-10 14:56:56 -0700 | [diff] [blame] | 98 | power.flounder \ |
| 99 | lights.flounder |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 100 | |
| 101 | # Filesystem management tools |
| 102 | PRODUCT_PACKAGES += \ |
| 103 | e2fsck |
| 104 | |
| 105 | PRODUCT_PROPERTY_OVERRIDES := \ |
| 106 | wifi.interface=wlan0 \ |
| 107 | ro.opengles.version=196608 \ |
| 108 | ro.sf.lcd_density=320 \ |
| 109 | ro.zygote.disable_gl_preload=true \ |
| 110 | ro.hwui.texture_cache_size=72 \ |
| 111 | ro.hwui.layer_cache_size=48 \ |
| 112 | ro.hwui.r_buffer_cache_size=8 \ |
| 113 | ro.hwui.path_cache_size=32 \ |
| 114 | ro.hwui.gradient_cache_size=1 \ |
| 115 | ro.hwui.drop_shadow_cache_size=6 \ |
| 116 | ro.hwui.texture_cache_flushrate=0.4 \ |
| 117 | ro.hwui.text_small_cache_width=1024 \ |
| 118 | ro.hwui.text_small_cache_height=1024 \ |
| 119 | ro.hwui.text_large_cache_width=2048 \ |
| 120 | ro.hwui.text_large_cache_height=1024 \ |
| 121 | ro.hwui.disable_scissor_opt=true |
| 122 | |
| 123 | # setup dalvik vm configs. |
| 124 | $(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk) |
| 125 | |
| 126 | # set default USB configuration |
| 127 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
| 128 | persist.sys.usb.config=mtp |
| 129 | |
| 130 | # for off charging mode |
| 131 | PRODUCT_PACKAGES += \ |
| 132 | charger \ |
| 133 | charger_res_images |
| 134 | |
| 135 | $(call inherit-product-if-exists, hardware/nvidia/tegra124/tegra124.mk) |
| 136 | $(call inherit-product-if-exists, vendor/nvidia/proprietary-tegra124/tegra124-vendor.mk) |
| 137 | $(call inherit-product-if-exists, vendor/htc/flounder/device-vendor.mk) |
Dmitry Shmidt | c4a032a | 2013-10-09 14:57:38 -0700 | [diff] [blame] | 138 | $(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4350/device-bcm.mk) |