# # Copyright (C) 2018-2019 The LineageOS Project # # SPDX-License-Identifier: Apache-2.0 # BOARD_VENDOR := oneplus DEVICE_PATH := device/oneplus/guacamoleb # Architecture TARGET_ARCH := arm64 TARGET_ARCH_VARIANT := armv8-2a TARGET_CPU_ABI := arm64-v8a TARGET_CPU_ABI2 := TARGET_CPU_VARIANT := cortex-a75 TARGET_2ND_ARCH := arm TARGET_2ND_ARCH_VARIANT := armv8-a TARGET_2ND_CPU_ABI := armeabi-v7a TARGET_2ND_CPU_ABI2 := armeabi TARGET_2ND_CPU_VARIANT := cortex-a55 TARGET_USES_64_BIT_BINDER := true # Assert TARGET_OTA_ASSERT_DEVICE := OnePlus7Pro # Bootloader TARGET_BOOTLOADER_BOARD_NAME := sm8150 TARGET_NO_BOOTLOADER := true # Kernel BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom androidboot.console=ttyMSM0 androidboot.memcg=1 lpm_levels.sleep_disabled=1 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 service_locator.enable=1 swiotlb=2048 firmware_class.path=/vendor/firmware_mnt/image loop.max_part=7 androidboot.usbcontroller=a600000.dwc3 BOARD_KERNEL_CMDLINE += skip_override androidboot.fastboot=1 BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive BOARD_KERNEL_BASE := 0x00000000 BOARD_KERNEL_PAGESIZE := 4096 BOARD_KERNEL_TAGS_OFFSET := 0x01E00000 BOARD_RAMDISK_OFFSET := 0x02000000 BOARD_ROOT_EXTRA_FOLDERS := odm op1 op2 BOARD_ROOT_EXTRA_SYMLINKS := /vendor/dsp:/dsp /vendor/firmware_mnt:/firmware /vendor/bt_firmware:/bt_firmware /mnt/vendor/persist:/persist TARGET_KERNEL_ARCH := arm64 TARGET_KERNEL_HEADER_ARCH := arm64 TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android- BOARD_KERNEL_IMAGE_NAME := Image-dtb TARGET_KERNEL_SOURCE := kernel/oneplus/sm8150 TARGET_KERNEL_CONFIG := sm8150-perf_defconfig BOARD_KERNEL_SEPARATED_DTBO := true # Partitions BOARD_BOOTIMAGE_PARTITION_SIZE := 100663296 BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 BOARD_RECOVERYIMAGE_PARTITION_SIZE := 100663296 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3640655872 BOARD_VENDORIMAGE_PARTITION_SIZE := 1073741824 BOARD_USERDATAIMAGE_PARTITION_SIZE := 115601780736 BOARD_DTBOIMG_PARTITION_SIZE := 8388608 BOARD_FLASH_BLOCK_SIZE := 262144 BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4 TARGET_NO_RECOVERY := true BOARD_BUILD_SYSTEM_ROOT_IMAGE := true BOARD_USES_RECOVERY_AS_BOOT := true TARGET_USERIMAGES_USE_EXT4 := true TARGET_USERIMAGES_USE_F2FS := true TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false TARGET_USES_MKE2FS := true TARGET_COPY_OUT_VENDOR := vendor # Platform TARGET_BOARD_PLATFORM := msmnile TARGET_BOARD_PLATFORM_GPU := qcom-adreno640 # Audio AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true AUDIO_FEATURE_ENABLED_HDMI_SPK := true AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true USE_CUSTOM_AUDIO_POLICY := 1 USE_XML_AUDIO_POLICY_CONF := 1 PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/audio/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml # Bluetooth BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth/include # Camera TARGET_USES_QTI_CAMERA_DEVICE := true # Charger Mode BOARD_CHARGER_ENABLE_SUSPEND := true # Dexopt WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= true # DRM TARGET_ENABLE_MEDIADRM_64 := true # Filesystem TARGET_FS_CONFIG_GEN := $(DEVICE_PATH)/config.fs # Graphics NUM_FRAMEBUFFER_SURFACE_BUFFERS := 2 TARGET_USES_HWC2 := true # RenderScript OVERRIDE_RS_DRIVER := libRSDriver_adreno.so # RIL TARGET_PROVIDES_QTI_TELEPHONY_JAR := true TARGET_RIL_VARIANT := caf # Sepolicy: TBD # Recovery TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888" TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom # Treble BOARD_VNDK_VERSION := current PRODUCT_FULL_TREBLE_OVERRIDE := true # System.prop TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop