blob: 43114fdcdaf8717c09bbb134f00e8b9ab4304301 [file] [log] [blame]
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -05001# Copyright (C) 2009 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15# This file sets variables that control the way modules are built
16# thorughout the system. It should not be used to conditionally
17# disable makefiles (the proper mechanism to control what gets
18# included in a build is to use PRODUCT_PACKAGES in a product
19# definition file).
20
21TARGET_NO_BOOTLOADER := true
22
23# QSD8250
24TARGET_BOARD_PLATFORM := qsd8k
25TARGET_BOARD_PLATFORM_GPU := qcom-adreno200
26
27# Arm (v7a) w/ neon
28TARGET_ARCH_VARIANT := armv7-a-neon
29TARGET_CPU_ABI := armeabi-v7a
30TARGET_CPU_ABI2 := armeabi
31ARCH_ARM_HAVE_TLS_REGISTER := true
32
Andrew Sutherlandf846bf42012-07-07 06:08:41 -050033# Bionic optimizations
34TARGET_USE_LINARO_STRING_ROUTINES := true
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050035
36# Headers
37TARGET_SPECIFIC_HEADER_PATH := device/htc/qsd8k-common/include
38
39# Wifi
andrew.boren1408b9c2012-07-16 00:31:49 -070040WIFI_BAND := 802_11_ABG
41WPA_SUPPLICANT_VERSION := VER_0_8_X
42BOARD_WPA_SUPPLICANT_DRIVER := NL80211
43BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
44BOARD_HOSTAPD_DRIVER := NL80211
45BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
46BOARD_WLAN_DEVICE := bcmdhd
47WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin"
48WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin"
49WIFI_DRIVER_FW_PATH_P2P := "/vendor/firmware/fw_bcmdhd_p2p.bin"
50WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050051
52# Audio
53BOARD_USES_GENERIC_AUDIO := false
54COMMON_GLOBAL_CFLAGS += -DLEGACY_AUDIO_COMPAT
55
56# Compass/Accelerometer
57BOARD_VENDOR_USE_AKMD := akm8973
58
59# Bluetooth
60BOARD_HAVE_BLUETOOTH := true
61BOARD_HAVE_BLUETOOTH_BCM := true
62
63# Fm radio
64BOARD_HAVE_FM_RADIO := true
65BOARD_GLOBAL_CFLAGS += -DHAVE_FM_RADIO
66
67# Qcom
68BOARD_USES_QCOM_LIBS := true
69BOARD_USES_QCOM_HARDWARE := true
70BOARD_VENDOR_QCOM_AMSS_VERSION := 3200
71COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE -DREFRESH_RATE=60
72
73# Hardware rendering
74BOARD_EGL_CFG := device/htc/qsd8k-common/egl.cfg
75USE_OPENGL_RENDERER := true
76# We only have 2 buffers
Andrew Sutherland75ce7c42012-07-11 13:40:45 -050077TARGET_DISABLE_TRIPLE_BUFFERING := true
Andrew Sutherlandee0fc132012-07-15 12:35:38 -050078BOARD_NEEDS_MEMORYHEAPPMEM := true
Andrew Sutherland79609062012-08-09 22:53:59 -050079TARGET_NO_HW_VSYNC := true
Andrew Sutherland1d6f8c02012-07-23 20:52:49 -050080COMMON_GLOBAL_CFLAGS += -DTARGET_8x50
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050081
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050082# Webkit
83TARGET_FORCE_CPU_UPLOAD := true
84
Andrew Sutherland6de4d652012-07-14 14:32:23 -050085# Legacy ril
86COMMON_GLOBAL_CFLAGS += -DRIL_VERSION_2_SUPPORT
87
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050088# Kernel directory
89TARGET_KERNEL_SOURCE := kernel/htc/qsd8k