blob: 67c0cf4ef31b3c1a05ebe2f7fb66cf5218f39825 [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
Zvikomborero VIncent Zvikaramba46818ce2016-07-25 19:59:57 -040049BOARD_RIL_CLASS := ../../../device/samsung/gprimeltecan/ril
Zvikomborero VIncent Zvikarambaa4ae2bf2016-07-25 00:41:06 -040050PROTOBUF_SUPPORTED := true
51
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040052# Bootloader
53TARGET_BOOTLOADER_BOARD_NAME := MSM8916
54
55# Camera
56TARGET_USE_VENDOR_CAMERA_EXT := true
Zvikomborero VIncent Zvikaramba323d3162016-07-25 03:15:09 -040057TARGET_PROVIDES_CAMERA_HAL := true
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040058USE_DEVICE_SPECIFIC_CAMERA := true
59
60# Charger
61# BOARD_CHARGER_ENABLE_SUSPEND := true
Zvikomborero VIncent Zvikaramba081e3a02016-07-26 06:07:53 -040062BOARD_CHARGER_SHOW_PERCENTAGE := true
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040063
Zvikomborero VIncent Zvikaramba50c5cb32016-07-23 01:50:09 -040064#sec_s3fwrn5 <- NFC HAL
65
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040066# CMHW
67BOARD_HARDWARE_CLASS += $(LOCAL_PATH)/cmhw
68
69# Crypto
70TARGET_HW_DISK_ENCRYPTION := true
71
72# default.prop
73ADDITIONAL_DEFAULT_PROPERTIES += \
74 camera2.portability.force_api=1
75
76# Display
77MAX_EGL_CACHE_KEY_SIZE := 12*1024
78MAX_EGL_CACHE_SIZE := 2048*1024
79NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
Zvikomborero Vincent Zvikaramba94239f92016-07-28 03:48:03 -040080OVERRIDE_RS_DRIVER := libRSDriver.so
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040081TARGET_CONTINUOUS_SPLASH_ENABLED := true
82TARGET_HAVE_NEW_GRALLOC := true
83
84# Encryption
85TARGET_SWV8_DISK_ENCRYPTION := true
86
87# FM
88AUDIO_FEATURE_ENABLED_FM := true
89TARGET_QCOM_NO_FM_FIRMWARE := true
90
91# Fonts
92EXTENDED_FONT_FOOTPRINT := true
93
94# GPS
Vincent Zvikarambafe30ac62016-07-27 12:08:03 -040095#TARGET_GPS_HAL_PATH := $(LOCAL_PATH)/gps
96#TARGET_NO_RPC := true
Zvikomborero VIncent Zvikaramba46818ce2016-07-25 19:59:57 -040097
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040098# Init
99TARGET_INIT_VENDOR_LIB := libinit_msm
100TARGET_LIBINIT_DEFINES_FILE := $(LOCAL_PATH)/init/init_gprimeltecan.cpp
101TARGET_PLATFORM_DEVICE_BASE := /devices/soc.0/
102TARGET_UNIFIED_DEVICE := true
103TARGET_PROVIDES_INIT_RC := true
104
105# Kernel
106BOARD_CUSTOM_BOOTIMG_MK := $(LOCAL_PATH)/mkbootimg.mk
107BOARD_KERNEL_BASE := 0x80000000
Vincent Zvikarambafe30ac62016-07-27 12:08:03 -0400108BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom user_debug=23 msm_rtb.filter=0x3F ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400109BOARD_KERNEL_PAGESIZE := 2048
110BOARD_KERNEL_SEPARATED_DT := true
111BOARD_KERNEL_TAGS_OFFSET := 0x01E00000
112BOARD_RAMDISK_OFFSET := 0x02000000
113#BOARD_SECOND_OFFSET := 0x00F00000
Zvikomborero VIncent Zvikaramba6a393df2016-08-02 01:18:34 -0400114#TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/kernel
115TARGET_KERNEL_CONFIG := msm8916_sec_defconfig
116TARGET_KERNEL_VARIANT_CONFIG := msm8916_sec_fortuna_can_defconfig
117TARGET_KERNEL_SELINUX_CONFIG := selinux_defconfig
118TARGET_KERNEL_SOURCE := kernel/samsung/gprimeltecan
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400119
120# Lights
Zvikomborero VIncent Zvikaramba50c5cb32016-07-23 01:50:09 -0400121TARGET_PROVIDES_LIBLIGHT := false
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400122
123# malloc implementation
124MALLOC_IMPL := dlmalloc
125
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400126# Partition sizes
127TARGET_USERIMAGES_USE_EXT4 := true
128BOARD_BOOTIMAGE_PARTITION_SIZE := 13631488
129BOARD_RECOVERYIMAGE_PARTITION_SIZE := 15728640
130BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2359296000
131BOARD_SYSTEMIMAGE_PARTITION_TPE := ext4
132BOARD_CACHEIMAGE_PARTITION_SIZE := 314572800
133BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
134BOARD_PERSISTIMAGE_PARTITION_SIZE := 8388608
135BOARD_PERSISTIMAGE_FILE_SYSTEM_TYPE := ext4
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400136BOARD_USERDATAIMAGE_PARTITION_SIZE := 4942966784
137BOARD_FLASH_BLOCK_SIZE := 131072
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400138
139# Power
140TARGET_POWERHAL_VARIANT := qcom
141
142# Qualcomm support
143TARGET_USES_QCOM_BSP := true
144COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE -DQCOM_BSP
145
146# Recovery
147BOARD_USE_CUSTOM_RECOVERY_FONT := \"roboto_15x24.h\"
148BOARD_SUPPRESS_EMMC_WIPE := true
149TARGET_RECOVERY_PIXEL_FORMAT := ABGR_8888
150TARGET_RECOVERY_QCOM_RTC_FIX := true
151TARGET_USERIMAGES_USE_EXT4 := true
Vincent Zvikarambafe30ac62016-07-27 12:08:03 -0400152TARGET_USERIMAGES_USE_F2FS := false
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400153
154# RIL
155TARGET_RIL_VARIANT := caf
Zvikomborero VIncent Zvikarambad8c60662016-07-26 01:29:33 -0400156#override to enable audio.
Zvikomborero VIncent Zvikaramba081e3a02016-07-26 06:07:53 -0400157BOARD_PROVIDES_LIBRIL := false
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400158
159# SELinux
160include device/qcom/sepolicy/sepolicy.mk
Zvikomborero VIncent Zvikaramba8b4bdcb2016-07-22 01:42:16 -0400161include vendor/cm/sepolicy/sepolicy.mk
162include vendor/cm/sepolicy/qcom/sepolicy.mk
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400163
164BOARD_SEPOLICY_DIRS += \
165 device/samsung/gprimeltecan/sepolicy
166
167BOARD_SEPOLICY_UNION += \
Zvikomborero VIncent Zvikarambaa4ae2bf2016-07-25 00:41:06 -0400168 ueventd.te \
169 file.te \
170 shell.te \
171 surfaceflinger.te \
172 bluetooth_loader.te \
173 wcnss_service.te \
174 healthd.te \
175 rild.te \
176 qseecomd.te \
177 system_server.te \
178 time_daemon.te \
179 sysinit.te \
180 mm-qcamerad.te \
181 file_contexts \
182 init_shell.te \
Zvikomborero VIncent Zvikarambaec0cfbc2016-07-26 01:48:40 -0400183 init.te \
Zvikomborero VIncent Zvikaramba541d5a22016-07-26 02:55:00 -0400184 lkmd.te \
185 qmuxd.te \
186 rfs_access.te \
187 rmt_storage.te \
Zvikomborero VIncent Zvikarambaa4ae2bf2016-07-25 00:41:06 -0400188 keystore.te \
189 perfd.te \
190 mediaserver.te \
191 property_contexts
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400192
193# Time services
194BOARD_USES_QC_TIME_SERVICES := true
195
196# TWRP
197#RECOVERY_VARIANT := twrp
198BOARD_HAS_LARGE_FILESYSTEM := true
199BOARD_HAS_NO_SELECT_BUTTON := true
200BOARD_SUPPRESS_SECURE_ERASE := true
201RECOVERY_GRAPHICS_USE_LINELENGTH := true
202RECOVERY_SDCARD_ON_DATA := true
203TW_BRIGHTNESS_PATH := "/sys/class/leds/lcd-backlight/brightness"
204#TW_SECONDARY_BRIGHTNESS_PATH := "/sys/devices/soc.0/1a00000.qcom\x2cmdss_mdp/qcom\x2cmdss_fb_primary.132/leds/lcd-backlight/brightness"
205TW_MAX_BRIGHTNESS := 255
206# TW_CRYPTO_FS_OPTIONS := "nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check,encryptable=footer"
207# TW_CRYPTO_FS_TYPE := "ext4"
208# TW_CRYPTO_KEY_LOC := "footer"
209# TW_CRYPTO_MNT_POINT := "/data"
210# TW_CRYPTO_REAL_BLKDEV := "/dev/block/platform/7824900.sdhci/by-name/userdata"
211#TW_EXCLUDE_ENCRYPTED_BACKUPS := true
212TW_HAS_DOWNLOAD_MODE := true
213#DEVICE_RESOLUTION := 540x960
214TW_HAS_MTP := true
215# TW_IGNORE_MAJOR_AXIS_0 := true
216TW_INCLUDE_CRYPTO := true
217TW_INPUT_BLACKLIST := "accelerometer"
218TW_INTERNAL_STORAGE_PATH := "/data/media/0"
219#TW_INTERNAL_STORAGE_MOUNT_POINT := "data"
220TW_MTP_DEVICE := /dev/usb_mtp_gadget
221TW_NEW_ION_HEAP := true
222TW_NO_REBOOT_BOOTLOADER := true
223TW_NO_SCREEN_TIMEOUT := true
224TW_NO_USB_STORAGE := true
225TW_TARGET_USES_QCOM_BSP := true
226TW_THEME := portrait_hdpi
227ifeq ($(TW),)
228 TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/recovery.fstab
229else
230 TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/recovery/twrp.fstab
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400231endif
232
233# Vold
234BOARD_VOLD_DISC_HAS_MULTIPLE_MAJORS := true
235BOARD_VOLD_MAX_PARTITIONS := 67
236TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/msm_hsusb/gadget/lun%d/file
237
238# Wifi
239BOARD_HAS_QCOM_WLAN := true
240BOARD_HAS_QCOM_WLAN_SDK := true
241BOARD_HAVE_SAMSUNG_WIFI := true
242BOARD_HOSTAPD_DRIVER := NL80211
243BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_qcwcn
244BOARD_WLAN_DEVICE := qcwcn
245BOARD_WPA_SUPPLICANT_DRIVER := NL80211
246BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_qcwcn
247TARGET_USES_QCOM_WCNSS_QMI := true
248TARGET_USES_WCNSS_CTRL := true
249WIFI_DRIVER_FW_PATH_AP := "ap"
250WIFI_DRIVER_FW_PATH_STA := "sta"
251WPA_SUPPLICANT_VERSION := VER_0_8_X
Zvikomborero VIncent Zvikaramba6a393df2016-08-02 01:18:34 -0400252#WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/wlan.ko"
253#WIFI_DRIVER_MODULE_NAME := "wlan"
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400254
255# inherit from the proprietary version
256-include vendor/samsung/gprimeltecan/BoardConfigVendor.mk