| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 1 | # 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 Sutherland | 7951df0 | 2012-12-15 01:03:15 -0600 | [diff] [blame^] | 21 | DEVICE_PACKAGE_OVERLAYS += device/htc/qsd8k-common/overlay |
| 22 | |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 23 | TARGET_NO_BOOTLOADER := true |
| 24 | |
| 25 | # QSD8250 |
| 26 | TARGET_BOARD_PLATFORM := qsd8k |
| 27 | TARGET_BOARD_PLATFORM_GPU := qcom-adreno200 |
| 28 | |
| 29 | # Arm (v7a) w/ neon |
| Andrew Sutherland | ce97b68 | 2012-11-14 04:13:10 -0600 | [diff] [blame] | 30 | TARGET_ARCH := arm |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 31 | TARGET_ARCH_VARIANT := armv7-a-neon |
| 32 | TARGET_CPU_ABI := armeabi-v7a |
| 33 | TARGET_CPU_ABI2 := armeabi |
| 34 | ARCH_ARM_HAVE_TLS_REGISTER := true |
| 35 | |
| Andrew Sutherland | 7951df0 | 2012-12-15 01:03:15 -0600 | [diff] [blame^] | 36 | # Scorpion |
| 37 | TARGET_USE_SCORPION_BIONIC_OPTIMIZATION := true |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 38 | |
| 39 | # Headers |
| 40 | TARGET_SPECIFIC_HEADER_PATH := device/htc/qsd8k-common/include |
| 41 | |
| 42 | # Wifi |
| andrew.boren | 1408b9c | 2012-07-16 00:31:49 -0700 | [diff] [blame] | 43 | WIFI_BAND := 802_11_ABG |
| 44 | WPA_SUPPLICANT_VERSION := VER_0_8_X |
| 45 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 |
| 46 | BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd |
| 47 | BOARD_HOSTAPD_DRIVER := NL80211 |
| 48 | BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd |
| 49 | BOARD_WLAN_DEVICE := bcmdhd |
| 50 | WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin" |
| 51 | WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin" |
| 52 | WIFI_DRIVER_FW_PATH_P2P := "/vendor/firmware/fw_bcmdhd_p2p.bin" |
| 53 | WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path" |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 54 | |
| 55 | # Audio |
| 56 | BOARD_USES_GENERIC_AUDIO := false |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 57 | |
| 58 | # Compass/Accelerometer |
| 59 | BOARD_VENDOR_USE_AKMD := akm8973 |
| 60 | |
| 61 | # Bluetooth |
| 62 | BOARD_HAVE_BLUETOOTH := true |
| 63 | BOARD_HAVE_BLUETOOTH_BCM := true |
| Andrew Sutherland | 231c73a | 2012-12-11 14:53:04 -0600 | [diff] [blame] | 64 | BOARD_BLUEDROID_VENDOR_CONF := device/htc/qsd8k-common/bluetooth/vnd_qsd8k.txt |
| 65 | BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR ?= device/htc/qsd8k-common/bluetooth/include |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 66 | |
| 67 | # Fm radio |
| Andrew Sutherland | 45230d7 | 2012-09-13 20:05:47 -0500 | [diff] [blame] | 68 | #BOARD_HAVE_FM_RADIO := true |
| 69 | #BOARD_GLOBAL_CFLAGS += -DHAVE_FM_RADIO |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 70 | |
| 71 | # Qcom |
| Andrew Sutherland | f1abb76 | 2012-11-30 23:07:59 -0600 | [diff] [blame] | 72 | BOARD_USES_LEGACY_QCOM := true |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 73 | BOARD_VENDOR_QCOM_AMSS_VERSION := 3200 |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 74 | |
| 75 | # Hardware rendering |
| 76 | BOARD_EGL_CFG := device/htc/qsd8k-common/egl.cfg |
| 77 | USE_OPENGL_RENDERER := true |
| 78 | # We only have 2 buffers |
| Andrew Sutherland | 75ce7c4 | 2012-07-11 13:40:45 -0500 | [diff] [blame] | 79 | TARGET_DISABLE_TRIPLE_BUFFERING := true |
| Andrew Sutherland | ee0fc13 | 2012-07-15 12:35:38 -0500 | [diff] [blame] | 80 | BOARD_NEEDS_MEMORYHEAPPMEM := true |
| Andrew Sutherland | 7960906 | 2012-08-09 22:53:59 -0500 | [diff] [blame] | 81 | TARGET_NO_HW_VSYNC := true |
| Andrew Sutherland | 1d6f8c0 | 2012-07-23 20:52:49 -0500 | [diff] [blame] | 82 | COMMON_GLOBAL_CFLAGS += -DTARGET_8x50 |
| Andrew Sutherland | ef4d4b6 | 2012-12-11 02:36:01 -0600 | [diff] [blame] | 83 | BOARD_EGL_NEEDS_LEGACY_FB := true |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 84 | |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 85 | # Webkit |
| 86 | TARGET_FORCE_CPU_UPLOAD := true |
| Andrew Sutherland | 45230d7 | 2012-09-13 20:05:47 -0500 | [diff] [blame] | 87 | ENABLE_WEBGL := true |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 88 | |
| Andrew Sutherland | 6de4d65 | 2012-07-14 14:32:23 -0500 | [diff] [blame] | 89 | # Legacy ril |
| 90 | COMMON_GLOBAL_CFLAGS += -DRIL_VERSION_2_SUPPORT |
| 91 | |
| Paul Mongold | 0ce44bd | 2012-09-24 23:42:14 -0400 | [diff] [blame] | 92 | # Camcorder |
| 93 | BOARD_USE_OLD_AVC_ENCODER := true |
| 94 | BOARD_NO_BFRAMES := true |
| 95 | |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 96 | # Kernel directory |
| 97 | TARGET_KERNEL_SOURCE := kernel/htc/qsd8k |
| andrew.boren | fb1ada8 | 2012-09-24 20:15:09 -0700 | [diff] [blame] | 98 | BUILD_KERNEL := true |
| 99 | |
| Andrew Sutherland | ff4486a | 2012-11-22 19:11:48 -0600 | [diff] [blame] | 100 | #BOARD_USES_LEGACY_CAMERA := true |
| Andrew Sutherland | fb59898 | 2012-11-09 17:32:55 -0600 | [diff] [blame] | 101 | |
| Andrew Sutherland | 7f7be79 | 2012-09-09 13:46:27 -0500 | [diff] [blame] | 102 | # Override kernel toolchain. (4.6 is too unstable) |
| andrew.boren | 048a470 | 2012-12-11 18:57:20 -0700 | [diff] [blame] | 103 | KERNEL_TOOLCHAIN_PREFIX:=$(ANDROID_BUILD_TOP)/prebuilts/gcc/linux-x86/arm/arm-eabi-4.4.3/bin/arm-eabi- |