blob: 92a9614d0dcd11b83774e92d085afd9c3e65b71c [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.borend8d11da2012-08-13 22:16:25 -070033DEVICE_PACKAGE_OVERLAYS += device/htc/qsd8k-common/overlay
34
Andrew Sutherlandf846bf42012-07-07 06:08:41 -050035# Bionic optimizations
36TARGET_USE_LINARO_STRING_ROUTINES := true
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050037
38# Headers
39TARGET_SPECIFIC_HEADER_PATH := device/htc/qsd8k-common/include
40
41# Wifi
andrew.boren1408b9c2012-07-16 00:31:49 -070042WIFI_BAND := 802_11_ABG
43WPA_SUPPLICANT_VERSION := VER_0_8_X
44BOARD_WPA_SUPPLICANT_DRIVER := NL80211
45BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
46BOARD_HOSTAPD_DRIVER := NL80211
47BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
48BOARD_WLAN_DEVICE := bcmdhd
49WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin"
50WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin"
51WIFI_DRIVER_FW_PATH_P2P := "/vendor/firmware/fw_bcmdhd_p2p.bin"
52WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050053
54# Audio
55BOARD_USES_GENERIC_AUDIO := false
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050056
57# Compass/Accelerometer
58BOARD_VENDOR_USE_AKMD := akm8973
59
60# Bluetooth
61BOARD_HAVE_BLUETOOTH := true
62BOARD_HAVE_BLUETOOTH_BCM := true
63
64# Fm radio
Andrew Sutherland45230d72012-09-13 20:05:47 -050065#BOARD_HAVE_FM_RADIO := true
66#BOARD_GLOBAL_CFLAGS += -DHAVE_FM_RADIO
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050067
68# Qcom
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050069BOARD_USES_QCOM_HARDWARE := true
70BOARD_VENDOR_QCOM_AMSS_VERSION := 3200
Andrew Sutherlande21927c2012-08-26 23:04:42 -050071COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050072
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
Andrew Sutherland45230d72012-09-13 20:05:47 -050084ENABLE_WEBGL := true
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050085
Andrew Sutherland6de4d652012-07-14 14:32:23 -050086# Legacy ril
87COMMON_GLOBAL_CFLAGS += -DRIL_VERSION_2_SUPPORT
88
Paul Mongold0ce44bd2012-09-24 23:42:14 -040089# Camcorder
90BOARD_USE_OLD_AVC_ENCODER := true
91BOARD_NO_BFRAMES := true
92
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050093# Kernel directory
94TARGET_KERNEL_SOURCE := kernel/htc/qsd8k
andrew.borenfb1ada82012-09-24 20:15:09 -070095BUILD_KERNEL := true
96
Andrew Sutherland7f7be792012-09-09 13:46:27 -050097# Override kernel toolchain. (4.6 is too unstable)
98ifeq ($(LINARO_BUILD),)
99KERNEL_TOOLCHAIN_PREFIX:=$(ANDROID_BUILD_TOP)/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
100endif