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