| 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.boren | d8d11da | 2012-08-13 22:16:25 -0700 | [diff] [blame] | 33 | DEVICE_PACKAGE_OVERLAYS += device/htc/qsd8k-common/overlay |
| 34 | |
| Andrew Sutherland | f846bf4 | 2012-07-07 06:08:41 -0500 | [diff] [blame] | 35 | # Bionic optimizations |
| 36 | TARGET_USE_LINARO_STRING_ROUTINES := true |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 37 | |
| 38 | # Headers |
| 39 | TARGET_SPECIFIC_HEADER_PATH := device/htc/qsd8k-common/include |
| 40 | |
| 41 | # Wifi |
| andrew.boren | 1408b9c | 2012-07-16 00:31:49 -0700 | [diff] [blame] | 42 | WIFI_BAND := 802_11_ABG |
| 43 | WPA_SUPPLICANT_VERSION := VER_0_8_X |
| 44 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 |
| 45 | BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd |
| 46 | BOARD_HOSTAPD_DRIVER := NL80211 |
| 47 | BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd |
| 48 | BOARD_WLAN_DEVICE := bcmdhd |
| 49 | WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin" |
| 50 | WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin" |
| 51 | WIFI_DRIVER_FW_PATH_P2P := "/vendor/firmware/fw_bcmdhd_p2p.bin" |
| 52 | WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path" |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 53 | |
| 54 | # Audio |
| 55 | BOARD_USES_GENERIC_AUDIO := false |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 56 | |
| 57 | # Compass/Accelerometer |
| 58 | BOARD_VENDOR_USE_AKMD := akm8973 |
| 59 | |
| 60 | # Bluetooth |
| 61 | BOARD_HAVE_BLUETOOTH := true |
| 62 | BOARD_HAVE_BLUETOOTH_BCM := true |
| 63 | |
| 64 | # Fm radio |
| Andrew Sutherland | 45230d7 | 2012-09-13 20:05:47 -0500 | [diff] [blame] | 65 | #BOARD_HAVE_FM_RADIO := true |
| 66 | #BOARD_GLOBAL_CFLAGS += -DHAVE_FM_RADIO |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 67 | |
| 68 | # Qcom |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 69 | BOARD_USES_QCOM_HARDWARE := true |
| 70 | BOARD_VENDOR_QCOM_AMSS_VERSION := 3200 |
| Andrew Sutherland | e21927c | 2012-08-26 23:04:42 -0500 | [diff] [blame] | 71 | COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 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 |
| Andrew Sutherland | 45230d7 | 2012-09-13 20:05:47 -0500 | [diff] [blame] | 84 | ENABLE_WEBGL := true |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 85 | |
| Andrew Sutherland | 6de4d65 | 2012-07-14 14:32:23 -0500 | [diff] [blame] | 86 | # Legacy ril |
| 87 | COMMON_GLOBAL_CFLAGS += -DRIL_VERSION_2_SUPPORT |
| 88 | |
| Paul Mongold | 0ce44bd | 2012-09-24 23:42:14 -0400 | [diff] [blame^] | 89 | # Camcorder |
| 90 | BOARD_USE_OLD_AVC_ENCODER := true |
| 91 | BOARD_NO_BFRAMES := true |
| 92 | |
| Andrew Sutherland | ae91e9b | 2012-06-02 21:18:19 -0500 | [diff] [blame] | 93 | # Kernel directory |
| 94 | TARGET_KERNEL_SOURCE := kernel/htc/qsd8k |
| andrew.boren | fb1ada8 | 2012-09-24 20:15:09 -0700 | [diff] [blame] | 95 | BUILD_KERNEL := true |
| 96 | |
| Andrew Sutherland | 7f7be79 | 2012-09-09 13:46:27 -0500 | [diff] [blame] | 97 | # Override kernel toolchain. (4.6 is too unstable) |
| 98 | ifeq ($(LINARO_BUILD),) |
| 99 | KERNEL_TOOLCHAIN_PREFIX:=$(ANDROID_BUILD_TOP)/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- |
| 100 | endif |