blob: 2e101039780ef68b1b65d302ca6dc9a207bea2c8 [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
19#TARGET_BOARD_PLATFORM := msm8916
20TARGET_CPU_ABI := armeabi-v7a
21TARGET_CPU_ABI2 := armeabi
22TARGET_ARCH_VARIANT := armv7-a-neon
23#TARGET_BOARD_PLATFORM_GPU := qcom-adreno306
24#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
45# Bootloader
46TARGET_BOOTLOADER_BOARD_NAME := MSM8916
47
48# Camera
49TARGET_USE_VENDOR_CAMERA_EXT := true
50USE_DEVICE_SPECIFIC_CAMERA := true
51
52# Charger
53# BOARD_CHARGER_ENABLE_SUSPEND := true
54# BOARD_CHARGER_SHOW_PERCENTAGE := true
55
Zvikomborero VIncent Zvikaramba50c5cb32016-07-23 01:50:09 -040056#sec_s3fwrn5 <- NFC HAL
57
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040058# CMHW
59BOARD_HARDWARE_CLASS += $(LOCAL_PATH)/cmhw
60
61# Crypto
62TARGET_HW_DISK_ENCRYPTION := true
63
64# default.prop
65ADDITIONAL_DEFAULT_PROPERTIES += \
66 camera2.portability.force_api=1
67
68# Display
69MAX_EGL_CACHE_KEY_SIZE := 12*1024
70MAX_EGL_CACHE_SIZE := 2048*1024
71NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
72OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
73TARGET_CONTINUOUS_SPLASH_ENABLED := true
74TARGET_HAVE_NEW_GRALLOC := true
75
76# Encryption
77TARGET_SWV8_DISK_ENCRYPTION := true
78
79# FM
80AUDIO_FEATURE_ENABLED_FM := true
81TARGET_QCOM_NO_FM_FIRMWARE := true
82
83# Fonts
84EXTENDED_FONT_FOOTPRINT := true
85
86# GPS
Zvikomborero VIncent Zvikaramba8b4bdcb2016-07-22 01:42:16 -040087TARGET_GPS_HAL_PATH := $(LOCAL_PATH)/gps
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040088TARGET_NO_RPC := true
89
90# Init
91TARGET_INIT_VENDOR_LIB := libinit_msm
92TARGET_LIBINIT_DEFINES_FILE := $(LOCAL_PATH)/init/init_gprimeltecan.cpp
93TARGET_PLATFORM_DEVICE_BASE := /devices/soc.0/
94TARGET_UNIFIED_DEVICE := true
95TARGET_PROVIDES_INIT_RC := true
96
97# Kernel
98BOARD_CUSTOM_BOOTIMG_MK := $(LOCAL_PATH)/mkbootimg.mk
99BOARD_KERNEL_BASE := 0x80000000
100BOARD_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
101BOARD_KERNEL_PAGESIZE := 2048
102BOARD_KERNEL_SEPARATED_DT := true
103BOARD_KERNEL_TAGS_OFFSET := 0x01E00000
104BOARD_RAMDISK_OFFSET := 0x02000000
105#BOARD_SECOND_OFFSET := 0x00F00000
106TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/kernel
107#TARGET_KERNEL_CONFIG := msm8916_sec_defconfig
108#TARGET_KERNEL_VARIANT_CONFIG := msm8916_sec_fortuna_eur_defconfig
109#TARGET_KERNEL_SELINUX_CONFIG := selinux_defconfig
110#TARGET_KERNEL_SOURCE := kernel/samsung/fortuna
111
112# Lights
Zvikomborero VIncent Zvikaramba50c5cb32016-07-23 01:50:09 -0400113TARGET_PROVIDES_LIBLIGHT := false
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400114
115# malloc implementation
116MALLOC_IMPL := dlmalloc
117
118# Partitions
119# Partition sizes
120TARGET_USERIMAGES_USE_EXT4 := true
121BOARD_BOOTIMAGE_PARTITION_SIZE := 13631488
122BOARD_RECOVERYIMAGE_PARTITION_SIZE := 15728640
123BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2359296000
124BOARD_SYSTEMIMAGE_PARTITION_TPE := ext4
125BOARD_CACHEIMAGE_PARTITION_SIZE := 314572800
126BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
127BOARD_PERSISTIMAGE_PARTITION_SIZE := 8388608
128BOARD_PERSISTIMAGE_FILE_SYSTEM_TYPE := ext4
129# (5731495936 - 16384)
130BOARD_USERDATAIMAGE_PARTITION_SIZE := 4942966784
131BOARD_FLASH_BLOCK_SIZE := 131072
132# Platform
133TARGET_BOARD_PLATFORM := msm8916
134TARGET_BOARD_PLATFORM_GPU := qcom-adreno306
135
136# Power
137TARGET_POWERHAL_VARIANT := qcom
138
139# Qualcomm support
140TARGET_USES_QCOM_BSP := true
141COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE -DQCOM_BSP
142
143# Recovery
144BOARD_USE_CUSTOM_RECOVERY_FONT := \"roboto_15x24.h\"
145BOARD_SUPPRESS_EMMC_WIPE := true
146TARGET_RECOVERY_PIXEL_FORMAT := ABGR_8888
147TARGET_RECOVERY_QCOM_RTC_FIX := true
148TARGET_USERIMAGES_USE_EXT4 := true
149TARGET_USERIMAGES_USE_F2FS := true
150
151# RIL
152TARGET_RIL_VARIANT := caf
153
154# SELinux
155include device/qcom/sepolicy/sepolicy.mk
Zvikomborero VIncent Zvikaramba8b4bdcb2016-07-22 01:42:16 -0400156include vendor/cm/sepolicy/sepolicy.mk
157include vendor/cm/sepolicy/qcom/sepolicy.mk
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400158
159BOARD_SEPOLICY_DIRS += \
160 device/samsung/gprimeltecan/sepolicy
161
162BOARD_SEPOLICY_UNION += \
163 bluetooth_loader.te \
164 file.te \
165 healthd.te \
166 qseecomd.te \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400167 surfaceflinger.te \
168 system_server.te \
169 wcnss_service.te \
Zvikomborero VIncent Zvikaramba4aa27d52016-07-22 13:02:20 -0400170 misc.te \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400171 file_contexts \
172 property_contexts
173
174# Time services
175BOARD_USES_QC_TIME_SERVICES := true
176
177# TWRP
178#RECOVERY_VARIANT := twrp
179BOARD_HAS_LARGE_FILESYSTEM := true
180BOARD_HAS_NO_SELECT_BUTTON := true
181BOARD_SUPPRESS_SECURE_ERASE := true
182RECOVERY_GRAPHICS_USE_LINELENGTH := true
183RECOVERY_SDCARD_ON_DATA := true
184TW_BRIGHTNESS_PATH := "/sys/class/leds/lcd-backlight/brightness"
185#TW_SECONDARY_BRIGHTNESS_PATH := "/sys/devices/soc.0/1a00000.qcom\x2cmdss_mdp/qcom\x2cmdss_fb_primary.132/leds/lcd-backlight/brightness"
186TW_MAX_BRIGHTNESS := 255
187# TW_CRYPTO_FS_OPTIONS := "nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check,encryptable=footer"
188# TW_CRYPTO_FS_TYPE := "ext4"
189# TW_CRYPTO_KEY_LOC := "footer"
190# TW_CRYPTO_MNT_POINT := "/data"
191# TW_CRYPTO_REAL_BLKDEV := "/dev/block/platform/7824900.sdhci/by-name/userdata"
192#TW_EXCLUDE_ENCRYPTED_BACKUPS := true
193TW_HAS_DOWNLOAD_MODE := true
194#DEVICE_RESOLUTION := 540x960
195TW_HAS_MTP := true
196# TW_IGNORE_MAJOR_AXIS_0 := true
197TW_INCLUDE_CRYPTO := true
198TW_INPUT_BLACKLIST := "accelerometer"
199TW_INTERNAL_STORAGE_PATH := "/data/media/0"
200#TW_INTERNAL_STORAGE_MOUNT_POINT := "data"
201TW_MTP_DEVICE := /dev/usb_mtp_gadget
202TW_NEW_ION_HEAP := true
203TW_NO_REBOOT_BOOTLOADER := true
204TW_NO_SCREEN_TIMEOUT := true
205TW_NO_USB_STORAGE := true
206TW_TARGET_USES_QCOM_BSP := true
207TW_THEME := portrait_hdpi
208ifeq ($(TW),)
209 TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/recovery.fstab
210else
211 TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/recovery/twrp.fstab
212# TARGET_CPU_VARIANT := cortex-a7
213endif
214
215# Vold
216BOARD_VOLD_DISC_HAS_MULTIPLE_MAJORS := true
217BOARD_VOLD_MAX_PARTITIONS := 67
218TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/msm_hsusb/gadget/lun%d/file
219
220# Wifi
221BOARD_HAS_QCOM_WLAN := true
222BOARD_HAS_QCOM_WLAN_SDK := true
223BOARD_HAVE_SAMSUNG_WIFI := true
224BOARD_HOSTAPD_DRIVER := NL80211
225BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_qcwcn
226BOARD_WLAN_DEVICE := qcwcn
227BOARD_WPA_SUPPLICANT_DRIVER := NL80211
228BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_qcwcn
229TARGET_USES_QCOM_WCNSS_QMI := true
230TARGET_USES_WCNSS_CTRL := true
231WIFI_DRIVER_FW_PATH_AP := "ap"
232WIFI_DRIVER_FW_PATH_STA := "sta"
233WPA_SUPPLICANT_VERSION := VER_0_8_X
234
235# inherit from the proprietary version
236-include vendor/samsung/gprimeltecan/BoardConfigVendor.mk