forked from wkpark/android_device_lge_eve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BoardConfig.mk
130 lines (108 loc) · 3.71 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#
# Product-specific compile-time definitions.
#
TARGET_BOARD_PLATFORM := msm7k
TARGET_BOARD_PLATFORM_GPU := qcom
TARGET_CPU_ABI := armeabi
TARGET_ARCH_VARIANT := armv6j
TARGET_ARCH_VARIANT_CPU := arm1136j-s
TARGET_BOOTLOADER_BOARD_NAME := eve
## cat /proc/mtd
## dev: size erasesize name
## mtd0: 00080000 00020000 "usd"
## mtd1: 00580000 00020000 "pkg"
## mtd2: 006e0000 00020000 "boot"
## mtd3: 0c800000 00020000 "system"
## mtd4: 0bc40000 00020000 "userdata"
## mtd5: 002c0000 00020000 "lgdrm"
## mtd6: 04000000 00020000 "cache"
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x006e0000
# recovery partition == boot partition
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x006e0000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x0c800000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x0bc40000
# BOARD_FLASH_BLOCK_SIZE := 0x00020000
BOARD_FLASH_BLOCK_SIZE := 131072
#
TARGET_NO_BOOTLOADER := true
TARGET_NO_RECOVERY := false
#
BOARD_HAS_NO_MISC_PARTITION := true
# recovery.img
TARGET_PREBUILT_RECOVERY_KERNEL := device/lge/eve/kernel
BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../device/lge/eve/recovery/recovery_ui.c
TARGET_RECOVERY_PRE_COMMAND := "sh /sbin/pre-recovery.sh; sync"
# for OpenEVE kernel
TARGET_OPENEVE := true
ifdef TARGET_OPENEVE
BOARD_UMS_LUNFILE := "/sys/devices/platform/msm_hsusb/gadget/lun0/file"
endif
# Wifi related defines
BOARD_WPA_SUPPLICANT_DRIVER := WEXT
WPA_SUPPLICANT_VERSION := VER_0_6_X
#bcm4329 driver
ifdef TARGET_OPENEVE
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/wireless.ko"
WIFI_DRIVER_MODULE_ARG := "firmware_path=/etc/wl/rtecdc.bin nvram_path=/etc/wl/nvram.txt config_path=/data/misc/wifi/config"
WIFI_DRIVER_MODULE_NAME := "wireless"
else
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/bcm4329.ko"
WIFI_DRIVER_MODULE_ARG := "iface_name=wlan0 firmware_path=/etc/wl/rtecdc.bin nvram_path=/etc/wl/nvram.txt"
WIFI_DRIVER_MODULE_NAME := "bcm4329"
endif
#This would pull in the wrong wpa_supplicant.conf and dhcpcd.conf
BOARD_WLAN_DEVICE := bcm4329
# enable SoftAP
WIFI_DRIVER_FW_STA_PATH := "/system/etc/wl/rtecdc.bin"
WIFI_DRIVER_FW_AP_PATH := "/system/etc/wl/rtecdc-apsta.bin"
TARGET_PROVIDES_LIBAUDIO := true
BOARD_USES_GENERIC_AUDIO := false
BOARD_USE_HTC_LIBSENSORS := false
# Camera
BOARD_USE_FROYO_LIBCAMERA := true
BOARD_CAMERA_BUILD_FROM_SOURCE := false
BOARD_CAMERA_USE_GETBUFFERINFO := true
BOARD_USES_QCOM_LIBS := true
#BOARD_GL_TEX_POW2_DIMENSION_REQUIRED := true
#BOARD_NO_GL2 := true
# kernel cmdline
BOARD_KERNEL_CMDLINE := no_console_suspend=1 console=/dev/null
# bluetooth
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true
# RIL
TARGET_PROVIDES_LIBRIL := true
# FM radio
BOARD_HAVE_FM_RADIO := true
BOARD_GLOBAL_CFLAGS += -DHAVE_FM_RADIO
# 2D/3D Graphics
TARGET_HARDWARE_3D := false
TARGET_LIBAGL_USE_GRALLOC_COPYBITS := true
# Use RGB565 surfaces until userspace drivers are upgraded
TARGET_USES_16BPPSURFACE_FOR_OPAQUE := true
BOARD_NO_RGBX_8888 := true
BOARD_AVOID_DRAW_TEXTURE_EXTENSION := true
#BOARD_HAS_LIMITED_EGL := true
#If this is exacly libloc_api, then it will build from source
BOARD_GPS_LIBRARIES := libloc
BOARD_USES_GPSSHIM := true
#USE_PV_WINDOWS_MEDIA := false
USE_CAMERA_STUB := false
BOARD_EGL_CFG := device/lge/eve/egl.cfg
# USB
BOARD_USE_USB_MASS_STORAGE_SWITCH := true
ifdef TARGET_OPENEVE
# Add LUNFILE configuration to the system
## for old CM7 src
# TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/platform/msm_hsusb/gadget/lun"
#BOARD_USE_NO_USB_COMPOSITE := true
BOARD_CUSTOM_USB_CONTROLLER := ../../device/lge/eve/UsbController.cpp
endif
# old libsensor
#TARGET_USES_OLD_LIBSENSORS_HAL := true
# webkit
JS_ENGINE := v8
# ENABLE_GIF added
# see external/webkit/Android.mk
ENABLE_GIF_ANIMATION := true
#BOARD_GLOBAL_CFLAGS += -DANDROID_LARGE_MEMORY_DEVICE