| 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 | |
| 21 | TARGET_NO_BOOTLOADER := true |
| 22 | |
| 23 | # QSD8250 |
| 24 | TARGET_BOARD_PLATFORM := qsd8k |
| 25 | TARGET_BOARD_PLATFORM_GPU := qcom-adreno200 |
| 26 | |
| 27 | # Arm (v7a) w/ neon |
| 28 | TARGET_ARCH_VARIANT := armv7-a-neon |
| 29 | TARGET_CPU_ABI := armeabi-v7a |
| 30 | TARGET_CPU_ABI2 := armeabi |
| 31 | ARCH_ARM_HAVE_TLS_REGISTER := true |
| 32 | |
| Andrew Sutherland | f846bf4 | 2012-07-07 06:08:41 -0500 | [diff] [blame] | 33 | # Bionic optimizations |
| 34 | TARGET_USE_LINARO_STRING_ROUTINES := true |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 35 | |
| 36 | # Headers |
| 37 | TARGET_SPECIFIC_HEADER_PATH := device/htc/qsd8k-common/include |
| 38 | |
| 39 | # Wifi |
| andrew.boren | 1408b9c | 2012-07-16 00:31:49 -0700 | [diff] [blame] | 40 | WIFI_BAND := 802_11_ABG |
| 41 | WPA_SUPPLICANT_VERSION := VER_0_8_X |
| 42 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 |
| 43 | BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd |
| 44 | BOARD_HOSTAPD_DRIVER := NL80211 |
| 45 | BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd |
| 46 | BOARD_WLAN_DEVICE := bcmdhd |
| 47 | WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin" |
| 48 | WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin" |
| 49 | WIFI_DRIVER_FW_PATH_P2P := "/vendor/firmware/fw_bcmdhd_p2p.bin" |
| 50 | WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path" |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 51 | |
| 52 | # Audio |
| 53 | BOARD_USES_GENERIC_AUDIO := false |
| 54 | COMMON_GLOBAL_CFLAGS += -DLEGACY_AUDIO_COMPAT |
| 55 | |
| 56 | # Compass/Accelerometer |
| 57 | BOARD_VENDOR_USE_AKMD := akm8973 |
| 58 | |
| 59 | # Bluetooth |
| 60 | BOARD_HAVE_BLUETOOTH := true |
| 61 | BOARD_HAVE_BLUETOOTH_BCM := true |
| 62 | |
| 63 | # Fm radio |
| 64 | BOARD_HAVE_FM_RADIO := true |
| 65 | BOARD_GLOBAL_CFLAGS += -DHAVE_FM_RADIO |
| 66 | |
| 67 | # Qcom |
| 68 | BOARD_USES_QCOM_LIBS := true |
| 69 | BOARD_USES_QCOM_HARDWARE := true |
| 70 | BOARD_VENDOR_QCOM_AMSS_VERSION := 3200 |
| 71 | COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE -DREFRESH_RATE=60 |
| 72 | |
| 73 | # Hardware rendering |
| 74 | BOARD_EGL_CFG := device/htc/qsd8k-common/egl.cfg |
| 75 | USE_OPENGL_RENDERER := true |
| 76 | # We only have 2 buffers |
| Andrew Sutherland | 75ce7c4 | 2012-07-11 13:40:45 -0500 | [diff] [blame] | 77 | TARGET_DISABLE_TRIPLE_BUFFERING := true |
| Andrew Sutherland | ee0fc13 | 2012-07-15 12:35:38 -0500 | [diff] [blame] | 78 | BOARD_NEEDS_MEMORYHEAPPMEM := true |
| Andrew Sutherland | 7960906 | 2012-08-09 22:53:59 -0500 | [diff] [blame^] | 79 | TARGET_NO_HW_VSYNC := true |
| Andrew Sutherland | 1d6f8c0 | 2012-07-23 20:52:49 -0500 | [diff] [blame] | 80 | COMMON_GLOBAL_CFLAGS += -DTARGET_8x50 |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 81 | |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 82 | # Webkit |
| 83 | TARGET_FORCE_CPU_UPLOAD := true |
| 84 | |
| Andrew Sutherland | 6de4d65 | 2012-07-14 14:32:23 -0500 | [diff] [blame] | 85 | # Legacy ril |
| 86 | COMMON_GLOBAL_CFLAGS += -DRIL_VERSION_2_SUPPORT |
| 87 | |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 88 | # Kernel directory |
| 89 | TARGET_KERNEL_SOURCE := kernel/htc/qsd8k |