blob: 9d8eb0396d40781fa5f7a9f906bc4543a03ab7ab [file] [log] [blame]
Laurent FERTfce69602014-06-20 15:35:19 +02001#
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
17KERNEL_SRC_DIR ?= linux/kernel-fugu
18KERNEL_CFG_NAME ?= fugu
19TARGET_KERNEL_ARCH ?= x86_64
20
Tarun Agarwald9eec1d2014-07-13 04:20:58 -070021
Laurent FERTfce69602014-06-20 15:35:19 +020022# Check for availability of kernel source
23ifneq ($(wildcard $(KERNEL_SRC_DIR)/Makefile),)
24 # Give precedence to TARGET_PREBUILT_KERNEL
Thierry Strudel3017b102014-07-10 09:40:46 -070025 ifeq ($(TARGET_PREBUILT_KERNEL),)
Laurent FERTfce69602014-06-20 15:35:19 +020026 TARGET_KERNEL_BUILT_FROM_SOURCE := true
27 endif
28endif
29
30ifneq ($(TARGET_KERNEL_BUILT_FROM_SOURCE), true)
31# Use prebuilt kernel
32ifeq ($(TARGET_PREBUILT_KERNEL),)
Patrick Tjin560690f2014-07-21 21:40:58 -070033LOCAL_KERNEL := device/asus/fugu-kernel/bzImage
Laurent FERTfce69602014-06-20 15:35:19 +020034else
35LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
36endif
37
Laurent FERT68f5fea2014-07-21 19:50:15 +020038PRODUCT_COPY_FILES += \
Tarun Agarwald9eec1d2014-07-13 04:20:58 -070039 $(LOCAL_KERNEL):kernel
Laurent FERTfce69602014-06-20 15:35:19 +020040
41endif #TARGET_KERNEL_BUILT_FROM_SOURCE
42
Patrick Tjinc8cb01b2014-07-23 09:34:47 -070043# 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.
45PRODUCT_COPY_FILES += \
46 frameworks/native/data/etc/android.software.app_widgets.xml:system/etc/permissions/android.software.app_widgets.xml
47
Craig Stout7ca4f812014-09-29 15:06:22 -070048PRODUCT_AAPT_CONFIG := normal large xlarge hdpi xhdpi
Patrick Tjinc8cb01b2014-07-23 09:34:47 -070049PRODUCT_AAPT_PREF_CONFIG := xhdpi
50
Mike J. Chen4e0f5192014-08-05 20:27:40 -070051# xhdpi, while we are hardcoding the 1080 resolution.
52# when we start doing 720 as well, will need to stop hardcoding this.
53PRODUCT_PROPERTY_OVERRIDES += \
Mike J. Chen116d5792014-08-06 20:59:11 -070054 ro.sf.lcd_density=320
Mike J. Chen4e0f5192014-08-05 20:27:40 -070055
Mathieu Chartiere437c922014-12-10 19:56:09 -080056# There may be a cleaner way to do this.
57PRODUCT_PROPERTY_OVERRIDES += \
58 dalvik.vm.heapstartsize=8m \
59 dalvik.vm.heapgrowthlimit=128m \
60 dalvik.vm.heapsize=174m
61
Mike J. Chen4e0f5192014-08-05 20:27:40 -070062$(call inherit-product-if-exists, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
63
Tim Kilbourn635e7422014-11-07 15:08:40 -080064PRODUCT_CHARACTERISTICS := nosdcard,tv
Patrick Tjinc8cb01b2014-07-23 09:34:47 -070065
Patrick Tjin425fcd82014-07-22 00:28:27 -070066DEVICE_PACKAGE_OVERLAYS := \
67 device/asus/fugu/overlay
Laurent FERT9b554032014-07-03 10:15:17 +020068
Patrick Tjin560690f2014-07-21 21:40:58 -070069PRODUCT_COPY_FILES += \
Laurent FERTb01b7fd2014-07-08 19:03:03 +020070 device/asus/fugu/fstab.fugu:root/fstab.fugu \
Laurent FERT9b554032014-07-03 10:15:17 +020071 device/asus/fugu/init.fugu.rc:root/init.fugu.rc \
Laurent FERT43f17452014-07-08 19:12:23 +020072 device/asus/fugu/init.fugu.usb.rc:root/init.fugu.usb.rc \
Benoit Fradin871737a2014-07-22 16:18:57 +020073 device/asus/fugu/ueventd.fugu.rc:root/ueventd.fugu.rc \
74 device/asus/fugu/init.recovery.fugu.rc:root/init.recovery.fugu.rc
Laurent FERT9b554032014-07-03 10:15:17 +020075
Mike J. Chenae089522014-08-08 22:25:06 -070076# Audio
Rajat S Gupta4b025b32014-07-18 23:15:36 -070077PRODUCT_PACKAGES += \
78 libtinyalsa \
Rajat S Gupta9208bbd2014-08-18 16:38:57 -070079 audio.primary.fugu
Mike J. Chenae089522014-08-08 22:25:06 -070080
81USE_CUSTOM_AUDIO_POLICY := 1
Rajat S Gupta4b025b32014-07-18 23:15:36 -070082
83# specific management of audio_policy.conf
84PRODUCT_COPY_FILES += \
85 device/asus/fugu/audio_policy.conf:system/etc/audio_policy.conf
86
Yuncheol Heo580e9902014-08-12 17:02:35 +090087# Hdmi CEC: Fugu works as a playback device (4).
88PRODUCT_PROPERTY_OVERRIDES += ro.hdmi.device_type=4
89
Patrick Tjinaa991382014-08-26 23:50:01 -070090# Boot Animation
91PRODUCT_COPY_FILES += \
92 device/asus/fugu/bootanimation.zip:system/media/bootanimation.zip
93
Cedric Bondiera8a3f752014-07-16 14:28:00 +020094# Bluetooth
95PRODUCT_PACKAGES += \
Cedric Bondiera8a3f752014-07-16 14:28:00 +020096 bt_bcm4354
97
Patrick Tjinaa818a62014-07-30 08:41:54 -070098PRODUCT_COPY_FILES += \
99 device/asus/fugu/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf
100
Laurent FERTfe198c22014-07-08 19:34:49 +0200101# IMG graphics
102PRODUCT_PACKAGES += \
Laurent FERT8ea303a2014-07-08 19:36:00 +0200103 IMG_graphics \
104 hwcomposer.moorefield
105
ywan171ee4044e2014-07-17 19:11:50 +0800106#Video
107PRODUCT_COPY_FILES += \
Jonathan DE CESCO38f82c72014-07-17 08:44:55 +0200108 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 Molnar3f364c52014-08-11 16:01:42 -0700110 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 \
ywan171f7247442014-08-06 14:54:06 +0800112 device/asus/fugu/media_codecs.xml:system/etc/media_codecs.xml \
Dale Stimsonb01ff052014-10-07 15:28:51 -0700113 device/asus/fugu/vp9_interpredict.binary:system/etc/vp9_interpredict.binary \
Xigui Wanga5714812014-10-28 16:14:32 +0800114 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
ywan171ee4044e2014-07-17 19:11:50 +0800117
Laurent FERT8ea303a2014-07-08 19:36:00 +0200118# psb video
Patrick Tjin0c46f6b2014-08-08 23:12:02 -0700119PRODUCT_PACKAGES += \
ywan171ee4044e2014-07-17 19:11:50 +0800120 pvr_drv_video
121
ywan171f7247442014-08-06 14:54:06 +0800122# Media SDK and OMX IL components
123PRODUCT_PACKAGES += \
124 libmfxsw32 \
125 libmfx_omx_core \
126 libmfx_omx_components_sw \
127 libgabi++-mfx \
128 libstlport-mfx
129
ywan171ee4044e2014-07-17 19:11:50 +0800130#video firmware
131PRODUCT_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
148PRODUCT_PACKAGES += \
149 libva \
150 libva-android \
151 libva-tpi \
152 vainfo
153
154#libstagefrighthw
155PRODUCT_PACKAGES += \
156 libstagefrighthw
157
158# libmix
Patrick Tjin0c46f6b2014-08-08 23:12:02 -0700159PRODUCT_PACKAGES += \
ywan171ee4044e2014-07-17 19:11:50 +0800160 libmixvbp_mpeg4 \
161 libmixvbp_h264 \
162 libmixvbp_h264secure \
163 libmixvbp_vc1 \
164 libmixvbp_vp8 \
165 libmixvbp \
166 libva_videodecoder \
167 libva_videoencoder
168
Patrick Tjin0c46f6b2014-08-08 23:12:02 -0700169PRODUCT_PACKAGES += \
ywan171ee4044e2014-07-17 19:11:50 +0800170 libwrs_omxil_common \
171 libwrs_omxil_core_pvwrapped \
172 libOMXVideoDecoderAVC \
173 libOMXVideoDecoderH263 \
174 libOMXVideoDecoderMPEG4 \
175 libOMXVideoDecoderWMV \
176 libOMXVideoDecoderVP8 \
ywan1716276c312014-07-24 22:16:45 +0800177 libOMXVideoDecoderVP9HWR \
ywan171db919d32014-09-25 15:17:49 +0800178 libOMXVideoDecoderVP9Hybrid \
ywan171ee4044e2014-07-17 19:11:50 +0800179 libOMXVideoEncoderAVC \
180 libOMXVideoEncoderH263 \
181 libOMXVideoEncoderMPEG4 \
182 libOMXVideoEncoderVP8
183
Xigui Wanga5714812014-10-28 16:14:32 +0800184#libISV
185PRODUCT_PACKAGES += libisv_omx_core
Laurent FERT8ea303a2014-07-08 19:36:00 +0200186
187# pvr
188PRODUCT_PACKAGES += \
189 libpvr2d
190
191# libdrm
192PRODUCT_PACKAGES += \
193 libdrm \
194 dristat \
195 drmstat
Laurent FERTfe198c22014-07-08 19:34:49 +0200196
Jonathan DE CESCO38f82c72014-07-17 08:44:55 +0200197# Wifi
198PRODUCT_PACKAGES += \
andy2_kuo86c224e2014-08-01 13:33:53 +0800199 libwpa_client \
200 lib_driver_cmd_bcmdhd \
201 hostapd \
Dmitry Shmidtfb9612b2014-09-28 12:21:36 -0700202 dhcpcd.conf \
andy2_kuo86c224e2014-08-01 13:33:53 +0800203 wpa_supplicant \
andy2_kuod632f942014-09-08 17:25:29 -0400204 bcmdhd.cal \
205 bcmdhd_sr2.cal
Jonathan DE CESCO38f82c72014-07-17 08:44:55 +0200206
207PRODUCT_COPY_FILES += \
208 device/asus/fugu/wpa_supplicant.conf:/system/etc/wifi/wpa_supplicant.conf
209
210PRODUCT_COPY_FILES += \
211 frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
Thierry Strudel02b0aad2014-07-31 14:28:05 -0700212 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 Tjin52a47282014-08-14 16:17:56 -0700214 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 Tjine2e0b7c2014-09-10 16:12:51 -0700217 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 CESCO38f82c72014-07-17 08:44:55 +0200219
Mike J. Chen3e46de32014-08-06 14:57:26 -0700220# Key layout files
221PRODUCT_COPY_FILES += \
Mike J. Chen3e46de32014-08-06 14:57:26 -0700222 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 Poichet0330ef12014-09-10 13:30:21 -0700225 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. Chen3e46de32014-08-06 14:57:26 -0700227
Dale Stimson034414b2014-08-21 16:27:28 -0700228#GFX Config
229PRODUCT_COPY_FILES += \
230 device/asus/fugu/powervr.ini:system/etc/powervr.ini
231
shravan08bc3b32014-08-25 16:35:40 +0530232# Thermal itux
233ENABLE_ITUXD := true
234PRODUCT_PACKAGES += \
235 ituxd
236
Thierry Strudel6c377812014-09-23 16:27:27 -0700237# Power HAL
238PRODUCT_PACKAGES += \
239 power.fugu
240
Patrick Tjind78e01f2014-09-14 22:38:49 -0700241# Debug rc files
242ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
243PRODUCT_COPY_FILES += \
244 device/asus/fugu/init.fugu.diag.rc.userdebug:root/init.fugu.diag.rc
245endif
246
Guilhem IMBERTONcba06872014-07-24 14:21:33 +0200247$(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 Tjinf5220302014-08-27 20:37:08 -0700249$(call inherit-product-if-exists, vendor/intel/moorefield/prebuilts/houdini/houdini.mk)
andy2_kuo86c224e2014-08-01 13:33:53 +0800250
Patrick Tjin66f473e2014-09-03 20:46:48 -0700251# Add WiFi Firmware
252$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4354/device-bcm.mk)
253
Brian McGillion437f0112014-10-03 11:34:17 +0300254# specific management of sep_policy.conf
255PRODUCT_COPY_FILES += \
256 device/asus/fugu/sep_policy.conf:system/etc/security/sep_policy.conf
257
andy2_kuo86c224e2014-08-01 13:33:53 +0800258#PRODUCT_CHARACTERISTICS := tablet