Home | History | Annotate | Download | only in tuna
      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 # This file includes all definitions that apply to ALL tuna devices, and
     18 # are also specific to tuna devices
     19 #
     20 # Everything in this directory will become public
     21 
     22 ifeq ($(TARGET_PREBUILT_KERNEL),)
     23 LOCAL_KERNEL := device/samsung/tuna/kernel
     24 else
     25 LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
     26 endif
     27 
     28 DEVICE_PACKAGE_OVERLAYS := device/samsung/tuna/overlay
     29 
     30 # This device is xhdpi.  However the platform doesn't
     31 # currently contain all of the bitmaps at xhdpi density so
     32 # we do this little trick to fall back to the hdpi version
     33 # if the xhdpi doesn't exist.
     34 PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
     35 PRODUCT_AAPT_PREF_CONFIG := xhdpi
     36 
     37 PRODUCT_PACKAGES := \
     38 	lights.tuna \
     39 	charger \
     40 	charger_res_images
     41 
     42 PRODUCT_PACKAGES += \
     43 	sensors.tuna \
     44 	libinvensense_mpl
     45 
     46 PRODUCT_PACKAGES += \
     47 	audio.primary.tuna \
     48 	audio.a2dp.default \
     49 	libaudioutils
     50 
     51 PRODUCT_PACKAGES += \
     52 	tuna_hdcp_keys
     53 
     54 PRODUCT_COPY_FILES := \
     55 	$(LOCAL_KERNEL):kernel \
     56 	device/samsung/tuna/init.tuna.rc:root/init.tuna.rc \
     57 	device/samsung/tuna/init.tuna.usb.rc:root/init.tuna.usb.rc \
     58 	device/samsung/tuna/ueventd.tuna.rc:root/ueventd.tuna.rc \
     59 	device/samsung/tuna/media_profiles.xml:system/etc/media_profiles.xml \
     60 	device/samsung/tuna/gps.conf:system/etc/gps.conf
     61 
     62 # Bluetooth configuration files
     63 PRODUCT_COPY_FILES += \
     64 	system/bluetooth/data/main.le.conf:system/etc/bluetooth/main.conf
     65 
     66 # Wifi
     67 ifneq ($(TARGET_PREBUILT_WIFI_MODULE),)
     68 PRODUCT_COPY_FILES += \
     69 	$(TARGET_PREBUILT_WIFI_MODULE):system/lib/modules/bcmdhd.ko
     70 endif
     71 PRODUCT_COPY_FILES += \
     72 	device/samsung/tuna/bcmdhd.cal:system/etc/wifi/bcmdhd.cal
     73 
     74 PRODUCT_PROPERTY_OVERRIDES := \
     75 	wifi.interface=wlan0 \
     76 	wifi.supplicant_scan_interval=15
     77 
     78 # Set default USB interface
     79 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
     80 	persist.sys.usb.config=mtp
     81 
     82 # NFC
     83 PRODUCT_PACKAGES += \
     84         libnfc \
     85         libnfc_jni \
     86         Nfc \
     87         Tag
     88 
     89 # Live Wallpapers
     90 PRODUCT_PACKAGES += \
     91         LiveWallpapers \
     92         LiveWallpapersPicker \
     93         VisualizationWallpapers \
     94         librs_jni
     95 
     96 # Input device calibration files
     97 PRODUCT_COPY_FILES += \
     98 	device/samsung/tuna/Melfas_MMSxxx_Touchscreen.idc:system/usr/idc/Melfas_MMSxxx_Touchscreen.idc
     99 
    100 # These are the hardware-specific features
    101 PRODUCT_COPY_FILES += \
    102 	frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
    103 	frameworks/base/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
    104 	frameworks/base/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
    105 	frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
    106 	frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
    107 	frameworks/base/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
    108 	frameworks/base/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
    109 	frameworks/base/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
    110 	frameworks/base/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
    111 	frameworks/base/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
    112 	frameworks/base/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
    113 	frameworks/base/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
    114 	frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
    115 	frameworks/base/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
    116 	frameworks/base/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
    117 	packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml
    118 
    119 # HACK: copy panda init for now to boot on both boards
    120 PRODUCT_COPY_FILES += \
    121 	device/ti/panda/init.omap4pandaboard.rc:root/init.omap4pandaboard.rc
    122 
    123 # Melfas touchscreen firmware
    124 PRODUCT_COPY_FILES += \
    125     device/samsung/tuna/mms144_ts_rev31.fw:system/vendor/firmware/mms144_ts_rev31.fw \
    126     device/samsung/tuna/mms144_ts_rev32.fw:system/vendor/firmware/mms144_ts_rev32.fw
    127 
    128 PRODUCT_PROPERTY_OVERRIDES += \
    129 	ro.opengles.version=131072
    130 
    131 PRODUCT_PROPERTY_OVERRIDES += \
    132 	ro.sf.lcd_density=320
    133 
    134 PRODUCT_CHARACTERISTICS := nosdcard
    135 
    136 PRODUCT_TAGS += dalvik.gc.type-precise
    137 
    138 PRODUCT_PACKAGES += \
    139 	librs_jni \
    140 	com.android.future.usb.accessory
    141 
    142 # Filesystem management tools
    143 PRODUCT_PACKAGES += \
    144 	make_ext4fs \
    145 	setup_fs
    146 
    147 # for bugmailer
    148 ifneq ($(TARGET_BUILD_VARIANT),user)
    149 	PRODUCT_PACKAGES += send_bug
    150 	PRODUCT_COPY_FILES += \
    151 		system/extras/bugmailer/bugmailer.sh:system/bin/bugmailer.sh \
    152 		system/extras/bugmailer/send_bug:system/bin/send_bug
    153 endif
    154 
    155 $(call inherit-product, frameworks/base/build/phone-xhdpi-1024-dalvik-heap.mk)
    156 
    157 $(call inherit-product-if-exists, vendor/nxp/pn544/nxp-pn544-fw-vendor.mk)
    158 $(call inherit-product, hardware/ti/omap4xxx/omap4.mk)
    159 $(call inherit-product-if-exists, vendor/ti/proprietary/omap4/ti-omap4-vendor.mk)
    160 $(call inherit-product-if-exists, vendor/samsung/tuna/device-vendor.mk)
    161 
    162 BOARD_WLAN_DEVICE_REV := bcm4330_b2
    163 WIFI_BAND             := 802_11_ABG
    164 $(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4330/device-bcm.mk)
    165