Laurent FERT | fce6960 | 2014-06-20 15:35:19 +0200 | [diff] [blame] | 1 | # |
| 2 | # Copyright 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 | KERNEL_SRC_DIR ?= linux/kernel-fugu |
| 18 | KERNEL_CFG_NAME ?= fugu |
| 19 | TARGET_KERNEL_ARCH ?= x86_64 |
| 20 | |
Tarun Agarwal | d9eec1d | 2014-07-13 04:20:58 -0700 | [diff] [blame] | 21 | |
Laurent FERT | fce6960 | 2014-06-20 15:35:19 +0200 | [diff] [blame] | 22 | # Check for availability of kernel source |
| 23 | ifneq ($(wildcard $(KERNEL_SRC_DIR)/Makefile),) |
| 24 | # Give precedence to TARGET_PREBUILT_KERNEL |
Thierry Strudel | 3017b10 | 2014-07-10 09:40:46 -0700 | [diff] [blame] | 25 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
Laurent FERT | fce6960 | 2014-06-20 15:35:19 +0200 | [diff] [blame] | 26 | TARGET_KERNEL_BUILT_FROM_SOURCE := true |
| 27 | endif |
| 28 | endif |
| 29 | |
| 30 | ifneq ($(TARGET_KERNEL_BUILT_FROM_SOURCE), true) |
| 31 | # Use prebuilt kernel |
| 32 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
Patrick Tjin | 560690f | 2014-07-21 21:40:58 -0700 | [diff] [blame] | 33 | LOCAL_KERNEL := device/asus/fugu-kernel/bzImage |
Laurent FERT | fce6960 | 2014-06-20 15:35:19 +0200 | [diff] [blame] | 34 | else |
| 35 | LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) |
| 36 | endif |
| 37 | |
Laurent FERT | 68f5fea | 2014-07-21 19:50:15 +0200 | [diff] [blame] | 38 | PRODUCT_COPY_FILES += \ |
Tarun Agarwal | d9eec1d | 2014-07-13 04:20:58 -0700 | [diff] [blame] | 39 | $(LOCAL_KERNEL):kernel |
Laurent FERT | fce6960 | 2014-06-20 15:35:19 +0200 | [diff] [blame] | 40 | |
| 41 | endif #TARGET_KERNEL_BUILT_FROM_SOURCE |
| 42 | |
Patrick Tjin | c8cb01b | 2014-07-23 09:34:47 -0700 | [diff] [blame] | 43 | # Need AppWidget permission to prevent from Launcher's crash. |
| 44 | # TODO(pattjin): Remove this when the TV Launcher is used, which does not support AppWidget. |
| 45 | PRODUCT_COPY_FILES += \ |
| 46 | frameworks/native/data/etc/android.software.app_widgets.xml:system/etc/permissions/android.software.app_widgets.xml |
| 47 | |
Craig Stout | 7ca4f81 | 2014-09-29 15:06:22 -0700 | [diff] [blame] | 48 | PRODUCT_AAPT_CONFIG := normal large xlarge hdpi xhdpi |
Patrick Tjin | c8cb01b | 2014-07-23 09:34:47 -0700 | [diff] [blame] | 49 | PRODUCT_AAPT_PREF_CONFIG := xhdpi |
| 50 | |
Mike J. Chen | 4e0f519 | 2014-08-05 20:27:40 -0700 | [diff] [blame] | 51 | # xhdpi, while we are hardcoding the 1080 resolution. |
| 52 | # when we start doing 720 as well, will need to stop hardcoding this. |
| 53 | PRODUCT_PROPERTY_OVERRIDES += \ |
Mike J. Chen | 116d579 | 2014-08-06 20:59:11 -0700 | [diff] [blame] | 54 | ro.sf.lcd_density=320 |
Mike J. Chen | 4e0f519 | 2014-08-05 20:27:40 -0700 | [diff] [blame] | 55 | |
Mathieu Chartier | e437c92 | 2014-12-10 19:56:09 -0800 | [diff] [blame] | 56 | # There may be a cleaner way to do this. |
| 57 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 58 | dalvik.vm.heapstartsize=8m \ |
| 59 | dalvik.vm.heapgrowthlimit=128m \ |
| 60 | dalvik.vm.heapsize=174m |
| 61 | |
Mike J. Chen | 4e0f519 | 2014-08-05 20:27:40 -0700 | [diff] [blame] | 62 | $(call inherit-product-if-exists, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk) |
| 63 | |
Tim Kilbourn | 635e742 | 2014-11-07 15:08:40 -0800 | [diff] [blame] | 64 | PRODUCT_CHARACTERISTICS := nosdcard,tv |
Patrick Tjin | c8cb01b | 2014-07-23 09:34:47 -0700 | [diff] [blame] | 65 | |
Patrick Tjin | 425fcd8 | 2014-07-22 00:28:27 -0700 | [diff] [blame] | 66 | DEVICE_PACKAGE_OVERLAYS := \ |
| 67 | device/asus/fugu/overlay |
Laurent FERT | 9b55403 | 2014-07-03 10:15:17 +0200 | [diff] [blame] | 68 | |
Patrick Tjin | 560690f | 2014-07-21 21:40:58 -0700 | [diff] [blame] | 69 | PRODUCT_COPY_FILES += \ |
Laurent FERT | b01b7fd | 2014-07-08 19:03:03 +0200 | [diff] [blame] | 70 | device/asus/fugu/fstab.fugu:root/fstab.fugu \ |
Laurent FERT | 9b55403 | 2014-07-03 10:15:17 +0200 | [diff] [blame] | 71 | device/asus/fugu/init.fugu.rc:root/init.fugu.rc \ |
Laurent FERT | 43f1745 | 2014-07-08 19:12:23 +0200 | [diff] [blame] | 72 | device/asus/fugu/init.fugu.usb.rc:root/init.fugu.usb.rc \ |
Benoit Fradin | 871737a | 2014-07-22 16:18:57 +0200 | [diff] [blame] | 73 | device/asus/fugu/ueventd.fugu.rc:root/ueventd.fugu.rc \ |
| 74 | device/asus/fugu/init.recovery.fugu.rc:root/init.recovery.fugu.rc |
Laurent FERT | 9b55403 | 2014-07-03 10:15:17 +0200 | [diff] [blame] | 75 | |
Mike J. Chen | ae08952 | 2014-08-08 22:25:06 -0700 | [diff] [blame] | 76 | # Audio |
Rajat S Gupta | 4b025b3 | 2014-07-18 23:15:36 -0700 | [diff] [blame] | 77 | PRODUCT_PACKAGES += \ |
| 78 | libtinyalsa \ |
Rajat S Gupta | 9208bbd | 2014-08-18 16:38:57 -0700 | [diff] [blame] | 79 | audio.primary.fugu |
Mike J. Chen | ae08952 | 2014-08-08 22:25:06 -0700 | [diff] [blame] | 80 | |
| 81 | USE_CUSTOM_AUDIO_POLICY := 1 |
Rajat S Gupta | 4b025b3 | 2014-07-18 23:15:36 -0700 | [diff] [blame] | 82 | |
| 83 | # specific management of audio_policy.conf |
| 84 | PRODUCT_COPY_FILES += \ |
| 85 | device/asus/fugu/audio_policy.conf:system/etc/audio_policy.conf |
| 86 | |
Yuncheol Heo | 580e990 | 2014-08-12 17:02:35 +0900 | [diff] [blame] | 87 | # Hdmi CEC: Fugu works as a playback device (4). |
| 88 | PRODUCT_PROPERTY_OVERRIDES += ro.hdmi.device_type=4 |
| 89 | |
Patrick Tjin | aa99138 | 2014-08-26 23:50:01 -0700 | [diff] [blame] | 90 | # Boot Animation |
| 91 | PRODUCT_COPY_FILES += \ |
| 92 | device/asus/fugu/bootanimation.zip:system/media/bootanimation.zip |
| 93 | |
Cedric Bondier | a8a3f75 | 2014-07-16 14:28:00 +0200 | [diff] [blame] | 94 | # Bluetooth |
| 95 | PRODUCT_PACKAGES += \ |
Cedric Bondier | a8a3f75 | 2014-07-16 14:28:00 +0200 | [diff] [blame] | 96 | bt_bcm4354 |
| 97 | |
Patrick Tjin | aa818a6 | 2014-07-30 08:41:54 -0700 | [diff] [blame] | 98 | PRODUCT_COPY_FILES += \ |
| 99 | device/asus/fugu/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf |
| 100 | |
Laurent FERT | fe198c2 | 2014-07-08 19:34:49 +0200 | [diff] [blame] | 101 | # IMG graphics |
| 102 | PRODUCT_PACKAGES += \ |
Laurent FERT | 8ea303a | 2014-07-08 19:36:00 +0200 | [diff] [blame] | 103 | IMG_graphics \ |
| 104 | hwcomposer.moorefield |
| 105 | |
ywan171 | ee4044e | 2014-07-17 19:11:50 +0800 | [diff] [blame] | 106 | #Video |
| 107 | PRODUCT_COPY_FILES += \ |
Jonathan DE CESCO | 38f82c7 | 2014-07-17 08:44:55 +0200 | [diff] [blame] | 108 | device/asus/fugu/media_profiles.xml:system/etc/media_profiles.xml \ |
| 109 | device/asus/fugu/wrs_omxil_components.list:system/etc/wrs_omxil_components.list \ |
Lajos Molnar | 3f364c5 | 2014-08-11 16:01:42 -0700 | [diff] [blame] | 110 | frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \ |
| 111 | frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \ |
ywan171 | f724744 | 2014-08-06 14:54:06 +0800 | [diff] [blame] | 112 | device/asus/fugu/media_codecs.xml:system/etc/media_codecs.xml \ |
Dale Stimson | b01ff05 | 2014-10-07 15:28:51 -0700 | [diff] [blame] | 113 | device/asus/fugu/vp9_interpredict.binary:system/etc/vp9_interpredict.binary \ |
Xigui Wang | a571481 | 2014-10-28 16:14:32 +0800 | [diff] [blame] | 114 | device/asus/fugu/mfx_omxil_core.conf:system/etc/mfx_omxil_core.conf \ |
| 115 | device/asus/fugu/video_isv_profile.xml:system/etc/video_isv_profile.xml |
| 116 | |
ywan171 | ee4044e | 2014-07-17 19:11:50 +0800 | [diff] [blame] | 117 | |
Laurent FERT | 8ea303a | 2014-07-08 19:36:00 +0200 | [diff] [blame] | 118 | # psb video |
Patrick Tjin | 0c46f6b | 2014-08-08 23:12:02 -0700 | [diff] [blame] | 119 | PRODUCT_PACKAGES += \ |
ywan171 | ee4044e | 2014-07-17 19:11:50 +0800 | [diff] [blame] | 120 | pvr_drv_video |
| 121 | |
ywan171 | f724744 | 2014-08-06 14:54:06 +0800 | [diff] [blame] | 122 | # Media SDK and OMX IL components |
| 123 | PRODUCT_PACKAGES += \ |
| 124 | libmfxsw32 \ |
| 125 | libmfx_omx_core \ |
| 126 | libmfx_omx_components_sw \ |
| 127 | libgabi++-mfx \ |
| 128 | libstlport-mfx |
| 129 | |
ywan171 | ee4044e | 2014-07-17 19:11:50 +0800 | [diff] [blame] | 130 | #video firmware |
| 131 | PRODUCT_PACKAGES += \ |
| 132 | msvdx.bin.0008.0000.0000 \ |
| 133 | msvdx.bin.0008.0000.0001 \ |
| 134 | msvdx.bin.0008.0002.0001 \ |
| 135 | msvdx.bin.0008.0000.0002 \ |
| 136 | msvdx.bin.000c.0001.0001 \ |
| 137 | topaz.bin.0008.0000.0000 \ |
| 138 | topaz.bin.0008.0000.0001 \ |
| 139 | topaz.bin.0008.0000.0002 \ |
| 140 | topaz.bin.0008.0002.0001 \ |
| 141 | topaz.bin.000c.0001.0001 \ |
| 142 | vsp.bin.0008.0000.0000 \ |
| 143 | vsp.bin.0008.0000.0001 \ |
| 144 | vsp.bin.0008.0000.0002 \ |
| 145 | vsp.bin.0008.0002.0001 \ |
| 146 | vsp.bin.000c.0001.0001 |
| 147 | # libva |
| 148 | PRODUCT_PACKAGES += \ |
| 149 | libva \ |
| 150 | libva-android \ |
| 151 | libva-tpi \ |
| 152 | vainfo |
| 153 | |
| 154 | #libstagefrighthw |
| 155 | PRODUCT_PACKAGES += \ |
| 156 | libstagefrighthw |
| 157 | |
| 158 | # libmix |
Patrick Tjin | 0c46f6b | 2014-08-08 23:12:02 -0700 | [diff] [blame] | 159 | PRODUCT_PACKAGES += \ |
ywan171 | ee4044e | 2014-07-17 19:11:50 +0800 | [diff] [blame] | 160 | libmixvbp_mpeg4 \ |
| 161 | libmixvbp_h264 \ |
| 162 | libmixvbp_h264secure \ |
| 163 | libmixvbp_vc1 \ |
| 164 | libmixvbp_vp8 \ |
| 165 | libmixvbp \ |
| 166 | libva_videodecoder \ |
| 167 | libva_videoencoder |
| 168 | |
Patrick Tjin | 0c46f6b | 2014-08-08 23:12:02 -0700 | [diff] [blame] | 169 | PRODUCT_PACKAGES += \ |
ywan171 | ee4044e | 2014-07-17 19:11:50 +0800 | [diff] [blame] | 170 | libwrs_omxil_common \ |
| 171 | libwrs_omxil_core_pvwrapped \ |
| 172 | libOMXVideoDecoderAVC \ |
| 173 | libOMXVideoDecoderH263 \ |
| 174 | libOMXVideoDecoderMPEG4 \ |
| 175 | libOMXVideoDecoderWMV \ |
| 176 | libOMXVideoDecoderVP8 \ |
ywan171 | 6276c31 | 2014-07-24 22:16:45 +0800 | [diff] [blame] | 177 | libOMXVideoDecoderVP9HWR \ |
ywan171 | db919d3 | 2014-09-25 15:17:49 +0800 | [diff] [blame] | 178 | libOMXVideoDecoderVP9Hybrid \ |
ywan171 | ee4044e | 2014-07-17 19:11:50 +0800 | [diff] [blame] | 179 | libOMXVideoEncoderAVC \ |
| 180 | libOMXVideoEncoderH263 \ |
| 181 | libOMXVideoEncoderMPEG4 \ |
| 182 | libOMXVideoEncoderVP8 |
| 183 | |
Xigui Wang | a571481 | 2014-10-28 16:14:32 +0800 | [diff] [blame] | 184 | #libISV |
| 185 | PRODUCT_PACKAGES += libisv_omx_core |
Laurent FERT | 8ea303a | 2014-07-08 19:36:00 +0200 | [diff] [blame] | 186 | |
| 187 | # pvr |
| 188 | PRODUCT_PACKAGES += \ |
| 189 | libpvr2d |
| 190 | |
| 191 | # libdrm |
| 192 | PRODUCT_PACKAGES += \ |
| 193 | libdrm \ |
| 194 | dristat \ |
| 195 | drmstat |
Laurent FERT | fe198c2 | 2014-07-08 19:34:49 +0200 | [diff] [blame] | 196 | |
Jonathan DE CESCO | 38f82c7 | 2014-07-17 08:44:55 +0200 | [diff] [blame] | 197 | # Wifi |
| 198 | PRODUCT_PACKAGES += \ |
andy2_kuo | 86c224e | 2014-08-01 13:33:53 +0800 | [diff] [blame] | 199 | libwpa_client \ |
| 200 | lib_driver_cmd_bcmdhd \ |
| 201 | hostapd \ |
Dmitry Shmidt | fb9612b | 2014-09-28 12:21:36 -0700 | [diff] [blame] | 202 | dhcpcd.conf \ |
andy2_kuo | 86c224e | 2014-08-01 13:33:53 +0800 | [diff] [blame] | 203 | wpa_supplicant \ |
andy2_kuo | d632f94 | 2014-09-08 17:25:29 -0400 | [diff] [blame] | 204 | bcmdhd.cal \ |
| 205 | bcmdhd_sr2.cal |
Jonathan DE CESCO | 38f82c7 | 2014-07-17 08:44:55 +0200 | [diff] [blame] | 206 | |
| 207 | PRODUCT_COPY_FILES += \ |
| 208 | device/asus/fugu/wpa_supplicant.conf:/system/etc/wifi/wpa_supplicant.conf |
| 209 | |
| 210 | PRODUCT_COPY_FILES += \ |
| 211 | frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ |
Thierry Strudel | 02b0aad | 2014-07-31 14:28:05 -0700 | [diff] [blame] | 212 | frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ |
| 213 | frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \ |
Patrick Tjin | 52a4728 | 2014-08-14 16:17:56 -0700 | [diff] [blame] | 214 | frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \ |
| 215 | frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \ |
| 216 | frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ |
Patrick Tjin | e2e0b7c | 2014-09-10 16:12:51 -0700 | [diff] [blame] | 217 | frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \ |
| 218 | frameworks/native/data/etc/android.hardware.hdmi.cec.xml:system/etc/permissions/android.hardware.hdmi.cec.xml |
Jonathan DE CESCO | 38f82c7 | 2014-07-17 08:44:55 +0200 | [diff] [blame] | 219 | |
Mike J. Chen | 3e46de3 | 2014-08-06 14:57:26 -0700 | [diff] [blame] | 220 | # Key layout files |
| 221 | PRODUCT_COPY_FILES += \ |
Mike J. Chen | 3e46de3 | 2014-08-06 14:57:26 -0700 | [diff] [blame] | 222 | device/asus/fugu/gpio-keys.idc:system/usr/idc/gpio-keys.idc \ |
| 223 | device/asus/fugu/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \ |
| 224 | device/asus/fugu/gpio-keys.kcm:system/usr/keychars/gpio-keys.kcm \ |
Jerome Poichet | 0330ef1 | 2014-09-10 13:30:21 -0700 | [diff] [blame] | 225 | device/asus/fugu/Spike.kl:system/usr/keylayout/Spike.kl \ |
| 226 | device/asus/fugu/Nexus_Remote.kl:system/usr/keylayout/Nexus_Remote.kl |
Mike J. Chen | 3e46de3 | 2014-08-06 14:57:26 -0700 | [diff] [blame] | 227 | |
Dale Stimson | 034414b | 2014-08-21 16:27:28 -0700 | [diff] [blame] | 228 | #GFX Config |
| 229 | PRODUCT_COPY_FILES += \ |
| 230 | device/asus/fugu/powervr.ini:system/etc/powervr.ini |
| 231 | |
shravan | 08bc3b3 | 2014-08-25 16:35:40 +0530 | [diff] [blame] | 232 | # Thermal itux |
| 233 | ENABLE_ITUXD := true |
| 234 | PRODUCT_PACKAGES += \ |
| 235 | ituxd |
| 236 | |
Thierry Strudel | 6c37781 | 2014-09-23 16:27:27 -0700 | [diff] [blame] | 237 | # Power HAL |
| 238 | PRODUCT_PACKAGES += \ |
| 239 | power.fugu |
| 240 | |
Patrick Tjin | d78e01f | 2014-09-14 22:38:49 -0700 | [diff] [blame] | 241 | # Debug rc files |
| 242 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
| 243 | PRODUCT_COPY_FILES += \ |
| 244 | device/asus/fugu/init.fugu.diag.rc.userdebug:root/init.fugu.diag.rc |
| 245 | endif |
| 246 | |
Guilhem IMBERTON | cba0687 | 2014-07-24 14:21:33 +0200 | [diff] [blame] | 247 | $(call inherit-product-if-exists, vendor/asus/fugu/device-vendor.mk) |
| 248 | $(call inherit-product-if-exists, vendor/intel/PRIVATE/fugu/device-vendor.mk) |
Patrick Tjin | f522030 | 2014-08-27 20:37:08 -0700 | [diff] [blame] | 249 | $(call inherit-product-if-exists, vendor/intel/moorefield/prebuilts/houdini/houdini.mk) |
andy2_kuo | 86c224e | 2014-08-01 13:33:53 +0800 | [diff] [blame] | 250 | |
Patrick Tjin | 66f473e | 2014-09-03 20:46:48 -0700 | [diff] [blame] | 251 | # Add WiFi Firmware |
| 252 | $(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4354/device-bcm.mk) |
| 253 | |
Brian McGillion | 437f011 | 2014-10-03 11:34:17 +0300 | [diff] [blame] | 254 | # specific management of sep_policy.conf |
| 255 | PRODUCT_COPY_FILES += \ |
| 256 | device/asus/fugu/sep_policy.conf:system/etc/security/sep_policy.conf |
| 257 | |
andy2_kuo | 86c224e | 2014-08-01 13:33:53 +0800 | [diff] [blame] | 258 | #PRODUCT_CHARACTERISTICS := tablet |