-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBoardConfig.mk
80 lines (63 loc) · 2.36 KB
/
BoardConfig.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
USE_CAMERA_STUB:= false
BOARD_USES_QCOM_HARDWARE := true
BOARD_USES_QCOM_LIBS := true
# Bluetooth
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_WLAN_DEVICE := bcm4329
#WIFI_DRIVER_FW_STA_PATH := "/system/etc/firmware/fw_bcm4329_apsta.bin"
WIFI_DRIVER_MODULE_NAME := "dhd"
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/dhd.ko"
WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/firmware/fw_bcm4329.bin nvram_path=/system/etc/wifi/nvram.txt"
## No CSCAN, no 0.6
#WPA_SUPPLICANT_VERSION := VER_0_6_X
WIFI_FIRMWARE_LOADER := wifi-loader
BOARD_WPA_SUPPLICANT_DRIVER := AWEXT
BOARD_USE_CAF_LIBCAMERA := true
# inherit from the proprietary version
-include vendor/geeksphone/zero/BoardConfigVendor.mk
TARGET_NO_BOOTLOADER := true
TARGET_CPU_ABI := armeabi
TARGET_ARCH_VARIANT := armv6-vfp
TARGET_BOARD_PLATFORM := msm7k
TARGET_CPU_ABI := armeabi
TARGET_BOOTLOADER_BOARD_NAME := zero
# fix this up by examining /proc/mtd on a running device
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x00500000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x00500000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x0c800000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x0c3a0000
BOARD_FLASH_BLOCK_SIZE := 131072
#kernel/boot
TARGET_PREBUILT_KERNEL := device/geeksphone/zero/kernel
BOARD_KERNEL_CMDLINE := mem=212M androidboot.hardware=zero no_console_suspend=1 console=null quiet
BOARD_KERNEL_BASE := 0x00200000
BOARD_PAGE_SIZE := 0x00000800
BOARD_USE_USB_MASS_STORAGE_SWITCH := true
#recovery
BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../device/geeksphone/zero/recovery_ui.c
#graficos
BOARD_NO_RGBX_8888 := true
TARGET_BOARD_PLATFORM_GPU := qcom-adreno200
BOARD_AVOID_DRAW_TEXTURE_EXTENSION := true
TARGET_LIBAGL_USE_GRALLOC_COPYBITS := true
JS_ENGINE := v8
TARGET_PROVIDES_LIBAUDIO := true
TARGET_PROVIDES_LIBRIL := true
# to enable the GPS HAL
BOARD_USES_QCOM_LIBRPC := true
BOARD_USES_QCOM_GPS := true
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := zero
# AMSS version to use for GPS
BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 50000
TARGET_OTA_ASSERT_DEVICE := zero
TARGET_USES_OLD_LIBSENSORS_HAL:=true
TARGET_HAS_ZERO_SENSORS:=true
# FM Radio
BOARD_HAVE_FM_RADIO := true
TARGET_GLOBAL_CFLAGS += -DHAVE_FM_RADIO
TARGET_GLOBAL_CPPFLAGS += -DHAVE_FM_RADIO
BOARD_USE_BROADCOM_FM_VOLUME_HACK := true
# System
WITH_DEXPREOPT := true
BOARD_HAS_VIBRATOR_IMPLEMENTATION := ../../device/geeksphone/zero/vibrator.c