blob: 93fca63e50157723a23d6ddab7318c079f20ec08 [file] [log] [blame]
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -04001FORCE_32_BIT := true
2
3-include vendor/samsung/gprimeltecan/BoardConfigVendor.mk
4#-include vendor/qcom/msm8916/BoardConfig.mk
5
6LOCAL_PATH := device/samsung/gprimeltecan
7
8# Inherit from common
9-include device/samsung/qcom-common/BoardConfigCommon.mk
10
11TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include
12
13# ANT+
14BOARD_ANT_WIRELESS_DEVICE := "vfs-prerelease"
15
16# Platform
17TARGET_ARCH := arm
18#TARGET_NO_BOOTLOADER := true
Zvikomborero VIncent Zvikarambaa4ae2bf2016-07-25 00:41:06 -040019TARGET_BOARD_PLATFORM := msm8916
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040020TARGET_CPU_ABI := armeabi-v7a
21TARGET_CPU_ABI2 := armeabi
22TARGET_ARCH_VARIANT := armv7-a-neon
Zvikomborero VIncent Zvikarambaa4ae2bf2016-07-25 00:41:06 -040023TARGET_BOARD_PLATFORM_GPU := qcom-adreno306
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040024#ARCH_ARM_HAVE_TLS_REGISTER := true
25
26# Architecture
27TARGET_CPU_SMP := true
28TARGET_CPU_VARIANT := cortex-a53
29TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp
30TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp
31
32# Audio
33AUDIO_FEATURE_LOW_LATENCY_PRIMARY := true
34BOARD_USES_ALSA_AUDIO := true
35
36# Asserts
37TARGET_OTA_ASSERT_DEVICE := gprimeltevl,gprimeltecan,samsung_sm_g530w
38
39# Bluetooth
40BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth
41BOARD_HAVE_BLUETOOTH := true
42BOARD_HAVE_BLUETOOTH_QCOM := true
43BLUETOOTH_HCI_USE_MCT := true
44
Zvikomborero VIncent Zvikarambaa4ae2bf2016-07-25 00:41:06 -040045# Misc.
46#TARGET_SYSTEM_PROP := $(LOCAL_PATH)/system.prop
47
48# Custom RIL class
49BOARD_RIL_CLASS := $(LOCAL_PATH)/ril
50BOARD_PROVIDES_LIBRIL := true
51PROTOBUF_SUPPORTED := true
52
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040053# Bootloader
54TARGET_BOOTLOADER_BOARD_NAME := MSM8916
55
56# Camera
57TARGET_USE_VENDOR_CAMERA_EXT := true
Zvikomborero VIncent Zvikarambaa4ae2bf2016-07-25 00:41:06 -040058#TARGET_PROVIDES_CAMERA_HAL := true
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040059USE_DEVICE_SPECIFIC_CAMERA := true
60
61# Charger
62# BOARD_CHARGER_ENABLE_SUSPEND := true
63# BOARD_CHARGER_SHOW_PERCENTAGE := true
64
Zvikomborero VIncent Zvikaramba50c5cb32016-07-23 01:50:09 -040065#sec_s3fwrn5 <- NFC HAL
66
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040067# CMHW
68BOARD_HARDWARE_CLASS += $(LOCAL_PATH)/cmhw
69
70# Crypto
71TARGET_HW_DISK_ENCRYPTION := true
72
73# default.prop
74ADDITIONAL_DEFAULT_PROPERTIES += \
75 camera2.portability.force_api=1
76
77# Display
78MAX_EGL_CACHE_KEY_SIZE := 12*1024
79MAX_EGL_CACHE_SIZE := 2048*1024
80NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
81OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
82TARGET_CONTINUOUS_SPLASH_ENABLED := true
83TARGET_HAVE_NEW_GRALLOC := true
84
85# Encryption
86TARGET_SWV8_DISK_ENCRYPTION := true
87
88# FM
89AUDIO_FEATURE_ENABLED_FM := true
90TARGET_QCOM_NO_FM_FIRMWARE := true
91
92# Fonts
93EXTENDED_FONT_FOOTPRINT := true
94
95# GPS
Zvikomborero VIncent Zvikarambaa4ae2bf2016-07-25 00:41:06 -040096#TARGET_GPS_HAL_PATH := $(LOCAL_PATH)/gps
97#TARGET_NO_RPC := true
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040098
99# Init
100TARGET_INIT_VENDOR_LIB := libinit_msm
101TARGET_LIBINIT_DEFINES_FILE := $(LOCAL_PATH)/init/init_gprimeltecan.cpp
102TARGET_PLATFORM_DEVICE_BASE := /devices/soc.0/
103TARGET_UNIFIED_DEVICE := true
104TARGET_PROVIDES_INIT_RC := true
105
106# Kernel
107BOARD_CUSTOM_BOOTIMG_MK := $(LOCAL_PATH)/mkbootimg.mk
108BOARD_KERNEL_BASE := 0x80000000
109BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom user_debug=23 msm_rtb.filter=0x3F ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci androidboot.selinux=permissive
110BOARD_KERNEL_PAGESIZE := 2048
111BOARD_KERNEL_SEPARATED_DT := true
112BOARD_KERNEL_TAGS_OFFSET := 0x01E00000
113BOARD_RAMDISK_OFFSET := 0x02000000
114#BOARD_SECOND_OFFSET := 0x00F00000
115TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/kernel
116#TARGET_KERNEL_CONFIG := msm8916_sec_defconfig
117#TARGET_KERNEL_VARIANT_CONFIG := msm8916_sec_fortuna_eur_defconfig
118#TARGET_KERNEL_SELINUX_CONFIG := selinux_defconfig
119#TARGET_KERNEL_SOURCE := kernel/samsung/fortuna
120
121# Lights
Zvikomborero VIncent Zvikaramba50c5cb32016-07-23 01:50:09 -0400122TARGET_PROVIDES_LIBLIGHT := false
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400123
124# malloc implementation
125MALLOC_IMPL := dlmalloc
126
127# Partitions
128# Partition sizes
129TARGET_USERIMAGES_USE_EXT4 := true
130BOARD_BOOTIMAGE_PARTITION_SIZE := 13631488
131BOARD_RECOVERYIMAGE_PARTITION_SIZE := 15728640
132BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2359296000
133BOARD_SYSTEMIMAGE_PARTITION_TPE := ext4
134BOARD_CACHEIMAGE_PARTITION_SIZE := 314572800
135BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
136BOARD_PERSISTIMAGE_PARTITION_SIZE := 8388608
137BOARD_PERSISTIMAGE_FILE_SYSTEM_TYPE := ext4
138# (5731495936 - 16384)
139BOARD_USERDATAIMAGE_PARTITION_SIZE := 4942966784
140BOARD_FLASH_BLOCK_SIZE := 131072
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400141
142# Power
143TARGET_POWERHAL_VARIANT := qcom
144
145# Qualcomm support
146TARGET_USES_QCOM_BSP := true
147COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE -DQCOM_BSP
148
149# Recovery
150BOARD_USE_CUSTOM_RECOVERY_FONT := \"roboto_15x24.h\"
151BOARD_SUPPRESS_EMMC_WIPE := true
152TARGET_RECOVERY_PIXEL_FORMAT := ABGR_8888
153TARGET_RECOVERY_QCOM_RTC_FIX := true
154TARGET_USERIMAGES_USE_EXT4 := true
155TARGET_USERIMAGES_USE_F2FS := true
156
157# RIL
158TARGET_RIL_VARIANT := caf
159
160# SELinux
161include device/qcom/sepolicy/sepolicy.mk
Zvikomborero VIncent Zvikaramba8b4bdcb2016-07-22 01:42:16 -0400162include vendor/cm/sepolicy/sepolicy.mk
163include vendor/cm/sepolicy/qcom/sepolicy.mk
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400164
165BOARD_SEPOLICY_DIRS += \
166 device/samsung/gprimeltecan/sepolicy
167
168BOARD_SEPOLICY_UNION += \
Zvikomborero VIncent Zvikarambaa4ae2bf2016-07-25 00:41:06 -0400169 ueventd.te \
170 file.te \
171 shell.te \
172 surfaceflinger.te \
173 bluetooth_loader.te \
174 wcnss_service.te \
175 healthd.te \
176 rild.te \
177 qseecomd.te \
178 system_server.te \
179 time_daemon.te \
180 sysinit.te \
181 mm-qcamerad.te \
182 file_contexts \
183 init_shell.te \
184 keystore.te \
185 perfd.te \
186 mediaserver.te \
187 property_contexts
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400188
189# Time services
190BOARD_USES_QC_TIME_SERVICES := true
191
192# TWRP
193#RECOVERY_VARIANT := twrp
194BOARD_HAS_LARGE_FILESYSTEM := true
195BOARD_HAS_NO_SELECT_BUTTON := true
196BOARD_SUPPRESS_SECURE_ERASE := true
197RECOVERY_GRAPHICS_USE_LINELENGTH := true
198RECOVERY_SDCARD_ON_DATA := true
199TW_BRIGHTNESS_PATH := "/sys/class/leds/lcd-backlight/brightness"
200#TW_SECONDARY_BRIGHTNESS_PATH := "/sys/devices/soc.0/1a00000.qcom\x2cmdss_mdp/qcom\x2cmdss_fb_primary.132/leds/lcd-backlight/brightness"
201TW_MAX_BRIGHTNESS := 255
202# TW_CRYPTO_FS_OPTIONS := "nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check,encryptable=footer"
203# TW_CRYPTO_FS_TYPE := "ext4"
204# TW_CRYPTO_KEY_LOC := "footer"
205# TW_CRYPTO_MNT_POINT := "/data"
206# TW_CRYPTO_REAL_BLKDEV := "/dev/block/platform/7824900.sdhci/by-name/userdata"
207#TW_EXCLUDE_ENCRYPTED_BACKUPS := true
208TW_HAS_DOWNLOAD_MODE := true
209#DEVICE_RESOLUTION := 540x960
210TW_HAS_MTP := true
211# TW_IGNORE_MAJOR_AXIS_0 := true
212TW_INCLUDE_CRYPTO := true
213TW_INPUT_BLACKLIST := "accelerometer"
214TW_INTERNAL_STORAGE_PATH := "/data/media/0"
215#TW_INTERNAL_STORAGE_MOUNT_POINT := "data"
216TW_MTP_DEVICE := /dev/usb_mtp_gadget
217TW_NEW_ION_HEAP := true
218TW_NO_REBOOT_BOOTLOADER := true
219TW_NO_SCREEN_TIMEOUT := true
220TW_NO_USB_STORAGE := true
221TW_TARGET_USES_QCOM_BSP := true
222TW_THEME := portrait_hdpi
223ifeq ($(TW),)
224 TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/recovery.fstab
225else
226 TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/recovery/twrp.fstab
227# TARGET_CPU_VARIANT := cortex-a7
228endif
229
230# Vold
231BOARD_VOLD_DISC_HAS_MULTIPLE_MAJORS := true
232BOARD_VOLD_MAX_PARTITIONS := 67
233TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/msm_hsusb/gadget/lun%d/file
234
235# Wifi
236BOARD_HAS_QCOM_WLAN := true
237BOARD_HAS_QCOM_WLAN_SDK := true
238BOARD_HAVE_SAMSUNG_WIFI := true
239BOARD_HOSTAPD_DRIVER := NL80211
240BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_qcwcn
241BOARD_WLAN_DEVICE := qcwcn
242BOARD_WPA_SUPPLICANT_DRIVER := NL80211
243BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_qcwcn
244TARGET_USES_QCOM_WCNSS_QMI := true
245TARGET_USES_WCNSS_CTRL := true
246WIFI_DRIVER_FW_PATH_AP := "ap"
247WIFI_DRIVER_FW_PATH_STA := "sta"
248WPA_SUPPLICANT_VERSION := VER_0_8_X
Zvikomborero VIncent Zvikarambaa4ae2bf2016-07-25 00:41:06 -0400249WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/wlan.ko"
250WIFI_DRIVER_MODULE_NAME := "wlan"
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400251
252# inherit from the proprietary version
253-include vendor/samsung/gprimeltecan/BoardConfigVendor.mk