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