• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17KERNEL_SRC_DIR ?= linux/kernel-fugu
18KERNEL_CFG_NAME ?= fugu
19TARGET_KERNEL_ARCH ?= x86_64
20
21
22# Check for availability of kernel source
23ifneq ($(wildcard $(KERNEL_SRC_DIR)/Makefile),)
24  # Give precedence to TARGET_PREBUILT_KERNEL
25  ifeq ($(TARGET_PREBUILT_KERNEL),)
26    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),)
33LOCAL_KERNEL := device/asus/fugu-kernel/bzImage
34else
35LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
36endif
37
38PRODUCT_COPY_FILES += \
39    $(LOCAL_KERNEL):kernel
40
41endif #TARGET_KERNEL_BUILT_FROM_SOURCE
42
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.
45PRODUCT_COPY_FILES += \
46    frameworks/native/data/etc/android.software.app_widgets.xml:system/etc/permissions/android.software.app_widgets.xml
47
48PRODUCT_AAPT_CONFIG := normal large xlarge hdpi xhdpi
49PRODUCT_AAPT_PREF_CONFIG := xhdpi
50
51# 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 += \
54    ro.sf.lcd_density=320
55
56# 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
62$(call inherit-product-if-exists, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
63
64PRODUCT_CHARACTERISTICS := nosdcard,tv
65
66DEVICE_PACKAGE_OVERLAYS := \
67    device/asus/fugu/overlay
68
69PRODUCT_COPY_FILES += \
70    device/asus/fugu/fstab.fugu:root/fstab.fugu \
71    device/asus/fugu/init.fugu.rc:root/init.fugu.rc \
72    device/asus/fugu/init.fugu.usb.rc:root/init.fugu.usb.rc \
73    device/asus/fugu/ueventd.fugu.rc:root/ueventd.fugu.rc \
74    device/asus/fugu/init.recovery.fugu.rc:root/init.recovery.fugu.rc
75
76# Audio
77PRODUCT_PACKAGES += \
78    libtinyalsa \
79    audio.primary.fugu \
80    audio.usb.default \
81    audio.a2dp.default
82
83# http://b/15193147
84# TODO(danalbert): Remove this once stlport is dead and gone.
85PRODUCT_PACKAGES +=  libstlport
86
87USE_CUSTOM_AUDIO_POLICY := 1
88
89# specific management of audio_policy.conf
90PRODUCT_COPY_FILES += \
91    device/asus/fugu/audio_policy.conf:system/etc/audio_policy.conf
92
93# Hdmi CEC: Fugu works as a playback device (4).
94PRODUCT_PROPERTY_OVERRIDES += ro.hdmi.device_type=4
95
96# Boot Animation
97PRODUCT_COPY_FILES += \
98    device/asus/fugu/bootanimation-580-256col.zip:system/media/bootanimation.zip
99
100# Bluetooth
101PRODUCT_PACKAGES += \
102    bt_bcm4354
103
104PRODUCT_COPY_FILES += \
105    device/asus/fugu/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf
106
107# IMG graphics
108PRODUCT_PACKAGES += \
109    IMG_graphics \
110    hwcomposer.moorefield
111
112#Video
113PRODUCT_COPY_FILES += \
114    device/asus/fugu/media_profiles.xml:system/etc/media_profiles.xml \
115    device/asus/fugu/wrs_omxil_components.list:system/etc/wrs_omxil_components.list \
116    frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
117    frameworks/av/media/libstagefright/data/media_codecs_google_tv.xml:system/etc/media_codecs_google_tv.xml \
118    frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
119    device/asus/fugu/media_codecs.xml:system/etc/media_codecs.xml \
120    device/asus/fugu/media_codecs_performance.xml:system/etc/media_codecs_performance.xml \
121    device/asus/fugu/vp9_interpredict.binary:system/etc/vp9_interpredict.binary \
122    device/asus/fugu/mfx_omxil_core.conf:system/etc/mfx_omxil_core.conf \
123    device/asus/fugu/video_isv_profile.xml:system/etc/video_isv_profile.xml \
124    device/asus/fugu/codec_resources_limitation.xml:system/etc/codec_resources_limitation.xml
125
126
127# psb video
128PRODUCT_PACKAGES += \
129    pvr_drv_video
130
131# Media SDK and OMX IL components
132PRODUCT_PACKAGES += \
133    libmfxsw32 \
134    libmfx_omx_core \
135    libmfx_omx_components_sw \
136    libgabi++-mfx \
137    libstlport-mfx
138
139#video firmware
140PRODUCT_PACKAGES += \
141    msvdx.bin.0008.0000.0000 \
142    msvdx.bin.0008.0000.0001 \
143    msvdx.bin.0008.0002.0001 \
144    msvdx.bin.0008.0000.0002 \
145    msvdx.bin.000c.0001.0001 \
146    topaz.bin.0008.0000.0000 \
147    topaz.bin.0008.0000.0001 \
148    topaz.bin.0008.0000.0002 \
149    topaz.bin.0008.0002.0001 \
150    topaz.bin.000c.0001.0001 \
151    vsp.bin.0008.0000.0000 \
152    vsp.bin.0008.0000.0001 \
153    vsp.bin.0008.0000.0002 \
154    vsp.bin.0008.0002.0001 \
155    vsp.bin.000c.0001.0001
156# libva
157PRODUCT_PACKAGES += \
158    libva \
159    libva-android \
160    libva-tpi \
161    vainfo
162
163#libstagefrighthw
164PRODUCT_PACKAGES += \
165    libstagefrighthw
166
167# libmix
168PRODUCT_PACKAGES += \
169    libmixvbp_mpeg4 \
170    libmixvbp_h264 \
171    libmixvbp_h264secure \
172    libmixvbp_vc1 \
173    libmixvbp_vp8 \
174    libmixvbp_mpeg2 \
175    libmixvbp \
176    libva_videodecoder \
177    libva_videoencoder
178
179PRODUCT_PACKAGES += \
180    libwrs_omxil_common \
181    libwrs_omxil_core_pvwrapped \
182    libOMXVideoDecoderAVC \
183    libOMXVideoDecoderH263 \
184    libOMXVideoDecoderMPEG4 \
185    libOMXVideoDecoderWMV \
186    libOMXVideoDecoderVP8 \
187    libOMXVideoDecoderMPEG2 \
188    libOMXVideoDecoderVP9HWR \
189    libOMXVideoDecoderVP9Hybrid \
190    libOMXVideoEncoderAVC \
191    libOMXVideoEncoderH263 \
192    libOMXVideoEncoderMPEG4 \
193    libOMXVideoEncoderVP8
194
195#libISV
196PRODUCT_PACKAGES += libisv_omx_core
197
198# pvr
199PRODUCT_PACKAGES += \
200    libpvr2d
201
202# libdrm
203PRODUCT_PACKAGES += \
204    libdrm \
205    dristat \
206    drmstat
207
208# Wifi
209PRODUCT_PACKAGES += \
210    libwpa_client \
211    lib_driver_cmd_bcmdhd \
212    hostapd \
213    dhcpcd.conf \
214    wpa_supplicant \
215    bcmdhd.cal \
216    bcmdhd_sr2.cal
217
218PRODUCT_COPY_FILES += \
219    device/asus/fugu/wpa_supplicant.conf:/system/etc/wifi/wpa_supplicant.conf
220
221PRODUCT_COPY_FILES += \
222    frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
223    frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
224    frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
225    frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
226    frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
227    frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
228    frameworks/native/data/etc/android.hardware.hdmi.cec.xml:system/etc/permissions/android.hardware.hdmi.cec.xml \
229    frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml
230
231# Key layout files
232PRODUCT_COPY_FILES += \
233    device/asus/fugu/Nexus_Remote.idc:system/usr/idc/Nexus_Remote.idc \
234    device/asus/fugu/gpio-keys.idc:system/usr/idc/gpio-keys.idc \
235    device/asus/fugu/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
236    device/asus/fugu/gpio-keys.kcm:system/usr/keychars/gpio-keys.kcm \
237    device/asus/fugu/Spike.kl:system/usr/keylayout/Spike.kl \
238    device/asus/fugu/Nexus_Remote.kl:system/usr/keylayout/Nexus_Remote.kl
239
240#GFX Config
241PRODUCT_COPY_FILES += \
242    device/asus/fugu/powervr.ini:system/etc/powervr.ini
243
244# Thermal itux
245ENABLE_ITUXD := true
246PRODUCT_PACKAGES += \
247    ituxd
248
249# Power HAL
250PRODUCT_PACKAGES += \
251    power.fugu
252
253# Debug rc files
254ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
255PRODUCT_COPY_FILES += \
256    device/asus/fugu/init.fugu.diag.rc.userdebug:root/init.fugu.diag.rc
257endif
258
259$(call inherit-product-if-exists, vendor/asus/fugu/device-vendor.mk)
260$(call inherit-product-if-exists, vendor/intel/PRIVATE/fugu/device-vendor.mk)
261$(call inherit-product-if-exists, vendor/intel/moorefield/prebuilts/houdini/houdini.mk)
262
263# Add WiFi Firmware
264$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4354/device-bcm.mk)
265
266# specific management of sep_policy.conf
267PRODUCT_COPY_FILES += \
268    device/asus/fugu/sep_policy.conf:system/etc/security/sep_policy.conf
269
270# Without this filter, we get very close to the limit.
271PRODUCT_DEX_PREOPT_DEFAULT_FLAGS += --compiler-filter=space
272
273#PRODUCT_CHARACTERISTICS := tablet
274