blob: 75084da6e5a9e97c9b913a4e54081c12ae7e2285 [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
Andrew Sutherland7951df02012-12-15 01:03:15 -060021DEVICE_PACKAGE_OVERLAYS += device/htc/qsd8k-common/overlay
22
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050023TARGET_NO_BOOTLOADER := true
24
25# QSD8250
26TARGET_BOARD_PLATFORM := qsd8k
27TARGET_BOARD_PLATFORM_GPU := qcom-adreno200
28
29# Arm (v7a) w/ neon
Andrew Sutherlandce97b682012-11-14 04:13:10 -060030TARGET_ARCH := arm
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050031TARGET_ARCH_VARIANT := armv7-a-neon
32TARGET_CPU_ABI := armeabi-v7a
33TARGET_CPU_ABI2 := armeabi
34ARCH_ARM_HAVE_TLS_REGISTER := true
35
Andrew Sutherland7951df02012-12-15 01:03:15 -060036# Scorpion
37TARGET_USE_SCORPION_BIONIC_OPTIMIZATION := true
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050038
39# Headers
40TARGET_SPECIFIC_HEADER_PATH := device/htc/qsd8k-common/include
41
42# Wifi
andrew.boren1408b9c2012-07-16 00:31:49 -070043WIFI_BAND := 802_11_ABG
44WPA_SUPPLICANT_VERSION := VER_0_8_X
45BOARD_WPA_SUPPLICANT_DRIVER := NL80211
46BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
47BOARD_HOSTAPD_DRIVER := NL80211
48BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
49BOARD_WLAN_DEVICE := bcmdhd
50WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin"
51WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin"
52WIFI_DRIVER_FW_PATH_P2P := "/vendor/firmware/fw_bcmdhd_p2p.bin"
53WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050054
55# Audio
56BOARD_USES_GENERIC_AUDIO := false
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050057
58# Compass/Accelerometer
59BOARD_VENDOR_USE_AKMD := akm8973
60
61# Bluetooth
62BOARD_HAVE_BLUETOOTH := true
63BOARD_HAVE_BLUETOOTH_BCM := true
Andrew Sutherland231c73a2012-12-11 14:53:04 -060064BOARD_BLUEDROID_VENDOR_CONF := device/htc/qsd8k-common/bluetooth/vnd_qsd8k.txt
65BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR ?= device/htc/qsd8k-common/bluetooth/include
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050066
67# Fm radio
Andrew Sutherland45230d72012-09-13 20:05:47 -050068#BOARD_HAVE_FM_RADIO := true
69#BOARD_GLOBAL_CFLAGS += -DHAVE_FM_RADIO
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050070
71# Qcom
Andrew Sutherlandf1abb762012-11-30 23:07:59 -060072BOARD_USES_LEGACY_QCOM := true
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050073BOARD_VENDOR_QCOM_AMSS_VERSION := 3200
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050074
75# Hardware rendering
76BOARD_EGL_CFG := device/htc/qsd8k-common/egl.cfg
77USE_OPENGL_RENDERER := true
78# We only have 2 buffers
Andrew Sutherland75ce7c42012-07-11 13:40:45 -050079TARGET_DISABLE_TRIPLE_BUFFERING := true
Andrew Sutherlandee0fc132012-07-15 12:35:38 -050080BOARD_NEEDS_MEMORYHEAPPMEM := true
Andrew Sutherland79609062012-08-09 22:53:59 -050081TARGET_NO_HW_VSYNC := true
Andrew Sutherland1d6f8c02012-07-23 20:52:49 -050082COMMON_GLOBAL_CFLAGS += -DTARGET_8x50
Andrew Sutherlandef4d4b62012-12-11 02:36:01 -060083BOARD_EGL_NEEDS_LEGACY_FB := true
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050084
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050085# Webkit
86TARGET_FORCE_CPU_UPLOAD := true
Andrew Sutherland45230d72012-09-13 20:05:47 -050087ENABLE_WEBGL := true
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050088
Andrew Sutherland6de4d652012-07-14 14:32:23 -050089# Legacy ril
90COMMON_GLOBAL_CFLAGS += -DRIL_VERSION_2_SUPPORT
91
Paul Mongold0ce44bd2012-09-24 23:42:14 -040092# Camcorder
93BOARD_USE_OLD_AVC_ENCODER := true
94BOARD_NO_BFRAMES := true
95
Andrew Sutherlandae91e9b2012-06-02 21:18:19 -050096# Kernel directory
97TARGET_KERNEL_SOURCE := kernel/htc/qsd8k
andrew.borenfb1ada82012-09-24 20:15:09 -070098BUILD_KERNEL := true
99
Andrew Sutherlandff4486a2012-11-22 19:11:48 -0600100#BOARD_USES_LEGACY_CAMERA := true
Andrew Sutherlandfb598982012-11-09 17:32:55 -0600101
Andrew Sutherland7f7be792012-09-09 13:46:27 -0500102# Override kernel toolchain. (4.6 is too unstable)
andrew.boren048a4702012-12-11 18:57:20 -0700103KERNEL_TOOLCHAIN_PREFIX:=$(ANDROID_BUILD_TOP)/prebuilts/gcc/linux-x86/arm/arm-eabi-4.4.3/bin/arm-eabi-