• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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# config.mk
16#
17# Product-specific compile-time definitions.
18#
19
20TARGET_NO_BOOTLOADER := true
21
22TARGET_BOARD_PLATFORM := qsd8k
23TARGET_BOARD_PLATFORM_GPU := qcom-adreno200
24
25TARGET_CPU_ABI := armeabi-v7a
26TARGET_CPU_ABI2 := armeabi
27TARGET_ARCH_VARIANT := armv7-a-neon
28ARCH_ARM_HAVE_TLS_REGISTER := true
29
30TARGET_BOOTLOADER_BOARD_NAME := mahimahi
31
32# Wifi related defines
33BOARD_WPA_SUPPLICANT_DRIVER := WEXT
34WPA_SUPPLICANT_VERSION      := VER_0_6_X
35BOARD_WLAN_DEVICE           := bcm4329
36WIFI_DRIVER_MODULE_PATH     := "/system/lib/modules/bcm4329.ko"
37WIFI_DRIVER_FW_STA_PATH     := "/vendor/firmware/fw_bcm4329.bin"
38WIFI_DRIVER_FW_AP_PATH      := "/vendor/firmware/fw_bcm4329_apsta.bin"
39WIFI_DRIVER_MODULE_ARG      := "firmware_path=/vendor/firmware/fw_bcm4329.bin nvram_path=/proc/calibration"
40WIFI_DRIVER_MODULE_NAME     := "bcm4329"
41
42BOARD_USES_GENERIC_AUDIO := false
43
44BOARD_KERNEL_CMDLINE := no_console_suspend=1 wire.search_count=5
45BOARD_KERNEL_BASE := 0x20000000
46
47BOARD_HAVE_BLUETOOTH := true
48BOARD_HAVE_BLUETOOTH_BCM := true
49
50BOARD_VENDOR_QCOM_AMSS_VERSION := 3200
51
52BOARD_VENDOR_USE_AKMD := akm8973
53
54BOARD_EGL_CFG := device/htc/passion-common/egl.cfg
55
56# # cat /proc/mtd
57# dev:    size   erasesize  name
58# mtd0: 000e0000 00020000 "misc"
59# mtd1: 00500000 00020000 "recovery"
60# mtd2: 00280000 00020000 "boot"
61# mtd3: 07800000 00020000 "system"
62# mtd4: 07800000 00020000 "cache"
63# mtd5: 0c440000 00020000 "userdata"
64# mtd6: 00200000 00020000 "crashdata"
65BOARD_BOOTIMAGE_PARTITION_SIZE := 0x00280000
66BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x00500000
67BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x08400000   # limited so we enforce room to grow
68BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x0c440000
69BOARD_FLASH_BLOCK_SIZE := 131072
70
71# Set the system image size limit to the full physical space available for eng build
72ifeq (eng,$(TARGET_BUILD_VARIANT))
73BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x09000000
74endif
75
76TARGET_RECOVERY_UI_LIB := librecovery_ui_passion librecovery_ui_htc
77
78TARGET_RECOVERY_UPDATER_LIBS += librecovery_updater_htc
79
80TARGET_RELEASETOOLS_EXTENSIONS := device/htc/common
81
82# to enable the GPS HAL
83BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := mahimahi
84# AMSS version to use for GPS
85BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 3200
86