# Copyright (C) 2014-2016 The CyanogenMod Project # Copyright (C) 2017-2018 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. LOCAL_PATH := device/samsung/mondrianwifi # temporary BUILD_BROKEN_DUP_RULES := true BOARD_VENDOR := samsung # Include path TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include # Bootloader TARGET_BOOTLOADER_BOARD_NAME := MSM8974 TARGET_NO_BOOTLOADER := true TARGET_NO_RADIOIMAGE := true # Platform TARGET_BOARD_PLATFORM := msm8974 TARGET_BOARD_PLATFORM_GPU := qcom-adreno330 # Architecture TARGET_ARCH := arm TARGET_ARCH_VARIANT := armv7-a-neon TARGET_CPU_ABI := armeabi-v7a TARGET_CPU_ABI2 := armeabi TARGET_CPU_VARIANT := generic TARGET_CPU_VARIANT_RUNTIME := krait # Binder API version TARGET_USES_64_BIT_BINDER := true # Kernel BOARD_KERNEL_BASE := 0x00000000 #BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 zcache.enabled=1 zcache.compressor=lz4 maxcpus=1 BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 androidboot.selinux=permissive BOARD_KERNEL_IMAGE_NAME := zImage BOARD_KERNEL_PAGESIZE := 2048 BOARD_KERNEL_SEPARATED_DT := true BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000 --tags_offset 0x01E00000 BOARD_CUSTOM_BOOTIMG := true BOARD_CUSTOM_BOOTIMG_MK := hardware/samsung/mkbootimg.mk TARGET_KERNEL_ARCH := arm TARGET_KERNEL_CONFIG := lineage_mondrian_defconfig TARGET_KERNEL_SOURCE := kernel/samsung/msm8974_tab # Audio AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true AUDIO_FEATURE_ENABLED_EXTN_POST_PROC := true AUDIO_FEATURE_ENABLED_FLUENCE := true AUDIO_FEATURE_ENABLED_HFP := true AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true BOARD_USES_ALSA_AUDIO := true USE_CUSTOM_AUDIO_POLICY := 1 # Bluetooth BLUETOOTH_HCI_USE_MCT := true BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth BOARD_HAVE_BLUETOOTH_QCOM := true QCOM_BT_USE_SMD_TTY := true # Camera TARGET_HAS_LEGACY_CAMERA_HAL1 := true MALLOC_SVELTE_FOR_LIBC32 := true # Charger BOARD_BATTERY_DEVICE_NAME := "battery" BOARD_CHARGING_CMDLINE_NAME := "androidboot.bootchg" BOARD_CHARGING_CMDLINE_VALUE := "true" WITH_LINEAGE_CHARGER := false # Dexpreopt ifeq ($(HOST_OS),linux) ifneq ($(TARGET_BUILD_VARIANT),eng) WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= false WITH_DEXPREOPT := true endif endif # Partitions BOARD_FLASH_BLOCK_SIZE := 131072 BOARD_BOOTIMAGE_PARTITION_SIZE := 10485760 BOARD_RECOVERYIMAGE_PARTITION_SIZE := 13631488 # Use a conservative size to make sure don't run out of space # US variant is: 2569011200 # EU variant is: 2411724800 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2000000000 BOARD_USERDATAIMAGE_PARTITION_SIZE := 12661537792 TARGET_USERIMAGES_USE_EXT4 := true TARGET_USERIMAGES_USE_F2FS := true BOARD_CACHEIMAGE_PARTITION_SIZE := 209715200 BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 # Extended Filesystem Support TARGET_EXFAT_DRIVER := sdfat # Filesystem TARGET_FS_CONFIG_GEN := $(LOCAL_PATH)/config.fs # Ramdisk BOARD_ROOT_EXTRA_FOLDERS += firmware firmware-modem efs misc # Graphics MAX_EGL_CACHE_KEY_SIZE := 12*1024 MAX_EGL_CACHE_SIZE := 2048*1024 NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS := 0x02000000U TARGET_DISABLE_POSTRENDER_CLEANUP := true TARGET_BOOTANIMATION_MULTITHREAD_DECODE := true TARGET_CONTINUOUS_SPLASH_ENABLED := true TARGET_USES_ION := true USE_OPENGL_RENDERER := true # HIDL DEVICE_MANIFEST_FILE := $(LOCAL_PATH)/manifest.xml DEVICE_MATRIX_FILE := $(LOCAL_PATH)/compatibility_matrix.xml PRODUCT_ENFORCE_VINTF_MANIFEST_OVERRIDE := true # Netd TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE := true # Keymaster TARGET_PROVIDES_KEYMASTER := true # Power TARGET_USES_INTERACTION_BOOST := true # Time services BOARD_USES_QC_TIME_SERVICES := true # Qualcomm support BOARD_USES_QCOM_HARDWARE := true # SDClang TARGET_USE_SDCLANG := true TARGET_LD_SHIM_LIBS = \ /system/vendor/lib/hw/camera.vendor.msm8974.so|libshim_camera.so TARGET_LD_SHIM_LIBS += \ /system/vendor/lib/libperipheral_client.so|libshim_binder.so TARGET_PROCESS_SDK_VERSION_OVERRIDE += \ /system/bin/mediaserver=22 \ /system/vendor/bin/mm-qcamera-daemon=22 # Lineage Hardware JAVA_SOURCE_OVERLAYS := org.lineageos.hardware|$(LOCAL_PATH)/lineagehw|**/*.java # Filesystem TARGET_FS_CONFIG_GEN := $(LOCAL_PATH)/config.fs # Security patch level - P905XXUABPE2 VENDOR_SECURITY_PATCH := 2016-05-01 # Recovery BOARD_RAMDISK_USE_XZ := true BOARD_HAS_DOWNLOAD_MODE := true BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../$(LOCAL_PATH)/recovery/recovery_keys.c BOARD_USE_CUSTOM_RECOVERY_FONT := \"roboto_23x41.h\" BOARD_USES_MMCUTILS := true BOARD_HAS_LARGE_FILESYSTEM := true BOARD_HAS_NO_MISC_PARTITION := true BOARD_HAS_NO_SELECT_BUTTON := true BOARD_RECOVERY_SWIPE := true TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/rootdir/etc/fstab.qcom # SELinux include $(LOCAL_PATH)/sepolicy/sepolicy.mk SELINUX_IGNORE_NEVERALLOWS := true # Sensors TARGET_NO_SENSOR_PERMISSION_CHECK := true # Wifi BOARD_HAS_QCOM_WLAN := true BOARD_WLAN_DEVICE := qcwcn BOARD_HOSTAPD_DRIVER := NL80211 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_qcwcn BOARD_WPA_SUPPLICANT_DRIVER := NL80211 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_qcwcn PRODUCT_VENDOR_MOVE_ENABLED := true TARGET_USES_WCNSS_CTRL := true TARGET_DISABLE_WCNSS_CONFIG_COPY := true TARGET_USES_QCOM_WCNSS_QMI := true WIFI_DRIVER_FW_PATH_AP := "ap" WIFI_DRIVER_FW_PATH_STA := "sta" WPA_SUPPLICANT_VERSION := VER_0_8_X # inherit from the proprietary version -include vendor/samsung/mondrianwifi/BoardConfigVendor.mk