From b491187e10cfebc999055ba8d6126b5bc16dd1ee Mon Sep 17 00:00:00 2001 From: Simon Sickle Date: Wed, 29 Nov 2017 22:40:12 -0600 Subject: [PATCH] Copy from OPOSS --- BoardConfig.mk | 42 ++++++++++++++++++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 4 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 9758e17..8d8c417 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -48,12 +48,17 @@ TARGET_USES_UEFI := true # Kernel BOARD_KERNEL_BASE := 0x00000000 -BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 sched_enable_hmp=1 sched_enable_power_aware=1 service_locator.enable=1 swiotlb=2048 androidboot.usbcontroller=a800000.dwc3 androidboot.selinux=permissive +BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200,n8 androidboot.console=ttyMSM0 earlycon=msm_serial_dm,0xc1b0000 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 sched_enable_hmp=1 sched_enable_power_aware=1 service_locator.enable=1 swiotlb=2048 androidboot.configfs=true androidboot.usbcontroller=a800000.dwc3 androidboot.selinux=permissive BOARD_KERNEL_PAGESIZE := 4096 -BOARD_KERNEL_TAGS_OFFSET := 0x00000100 -BOARD_RAMDISK_OFFSET := 0x01000000 +BOARD_KERNEL_TAGS_OFFSET := 0x01E00000 +BOARD_RAMDISK_OFFSET := 0x02000000 TARGET_PREBUILT_KERNEL := device/oneplus/dumpling/prebuilt/Image.gz-dtb +TARGET_KERNEL_ARCH := arm64 +TARGET_KERNEL_HEADER_ARCH := arm64 +TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android- +TARGET_USES_UNCOMPRESSED_KERNEL := false + # Platform TARGET_BOARD_PLATFORM := msm8998 TARGET_BOARD_PLATFORM_GPU := qcom-adreno540 @@ -66,7 +71,7 @@ BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 BOARD_PERSISTIMAGE_PARTITION_SIZE := 33554432 BOARD_PERSISTIMAGE_FILE_SYSTEM_TYPE := ext4 -BOARD_FLASH_BLOCK_SIZE := 266240 # (BOARD_KERNEL_PAGESIZE * 64) +BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64) BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 TARGET_COPY_OUT_VENDOR := vendor @@ -81,6 +86,35 @@ TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888" TARGET_USERIMAGES_USE_EXT4 := true TARGET_USERIMAGES_USE_F2FS := true +TARGET_USES_ION := true +TARGET_USES_NEW_ION_API :=true +TARGET_USES_QCOM_BSP := true +TARGET_USES_COLOR_METADATA := true +MAX_EGL_CACHE_KEY_SIZE := 12*1024 +MAX_EGL_CACHE_SIZE := 2048*1024 + +VSYNC_EVENT_PHASE_OFFSET_NS := 0 +SF_VSYNC_EVENT_PHASE_OFFSET_NS := 0 + +BOARD_USES_GENERIC_AUDIO := true +BOARD_QTI_CAMERA_32BIT_ONLY := true +TARGET_NO_RPC := true + +TARGET_PLATFORM_DEVICE_BASE := /devices/soc.0/ +TARGET_INIT_VENDOR_LIB := libinit_msm + +TARGET_INIT_COLDBOOT_TIMEOUT := 8 + +NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 +TARGET_KERNEL_APPEND_DTB := true +TARGET_COMPILE_WITH_MSM_KERNEL := true + +#Enable SSC Feature +TARGET_USES_SSC := true + +# Enable sensor multi HAL +USE_SENSOR_MULTI_HAL := true + # TWRP specific build flags TW_THEME := portrait_hdpi RECOVERY_SDCARD_ON_DATA := true -- 2.20.1