SHARE
TWEET

Untitled

a guest Aug 12th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # Copyright (C) 2016 The CyanogenMod Project
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16.  
  17. DEVICE_PATH := device/blu/life_one_x2
  18.  
  19. TARGET_BOARD_VENDOR := blu
  20.  
  21. # Architecture
  22. TARGET_ARCH := arm64
  23. TARGET_ARCH_VARIANT := armv8-a
  24. TARGET_CPU_ABI := arm64-v8a
  25. TARGET_CPU_ABI2 :=
  26. TARGET_CPU_CORTEX_A53 := true
  27. TARGET_CPU_VARIANT := generic
  28.  
  29. TARGET_2ND_ARCH := arm
  30. TARGET_2ND_ARCH_VARIANT := armv7-a-neon
  31. TARGET_2ND_CPU_ABI := armeabi-v7a
  32. TARGET_2ND_CPU_ABI2 := armeabi
  33. TARGET_2ND_CPU_VARIANT := cortex-a53
  34.  
  35. TARGET_BOARD_PLATFORM := msm8937
  36. TARGET_BOARD_PLATFORM_GPU := qcom-adreno505
  37.  
  38. # Bootloader
  39. TARGET_BOOTLOADER_BOARD_NAME := msm8937
  40. TARGET_NO_BOOTLOADER := true
  41.  
  42. # Flags
  43. TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp
  44. TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp
  45.  
  46. # Kernel
  47. #BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 androidboot.bootdevice=7824900.sdhci earlycon=msm_hsl_uart,0x78B0000
  48. BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 androidboot.selinux=permissive
  49. BOARD_KERNEL_BASE := 0x80000000
  50. BOARD_KERNEL_PAGESIZE := 2048
  51. BOARD_KERNEL_TAGS_OFFSET := 0x00000100
  52. BOARD_RAMDISK_OFFSET := 0x01000000
  53. BOARD_MKBOOTIMG_ARGS := --ramdisk_offset BOARD_RAMDISK_OFFSET --tags_offset BOARD_KERNEL_TAGS_OFFSET
  54. # BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb
  55. # TARGET_KERNEL_APPEND_DTB := true
  56. # TARGET_KERNEL_ARCH := arm64
  57. # TARGET_KERNEL_HEADER_ARCH := arm64
  58. # TARGET_KERNEL_SOURCE := kernel/blu/msm8937
  59. # TARGET_KERNEL_CONFIG := cyanogenmod_life_one_x2_defconfig
  60. # TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android-
  61.  
  62. TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/recovery/kernel
  63.  
  64. # Init
  65. TARGET_PLATFORM_DEVICE_BASE := /devices/soc/
  66.  
  67. # Partitions
  68. BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)
  69. BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864
  70. BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
  71. BOARD_PERSISTIMAGE_PARTITION_SIZE := 33554432
  72. BOARD_RECOVERYIMAGE_PARTITION_SIZE := 67108864
  73. BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472
  74. BOARD_USERDATAIMAGE_PARTITION_SIZE := 56765144064
  75.  
  76. BOARD_HAS_LARGE_FILESYSTEM := true
  77. TARGET_USERIMAGES_USE_EXT4 := true
  78.  
  79. #Recovery
  80. TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/recovery/root/etc/twrp.fstab
  81. TW_THEME := portrait_hdpi
  82. TW_INCLUDE_CRYPTO := true
  83. TW_MAX_BRIGHTNESS := 255
  84. TW_BRIGHTNESS_PATH := /sys/class/leds/lcd-backlight/brightness
  85. TW_DEFAULT_EXTERNAL_STORAGE := true
  86. TARGET_RECOVERY_QCOM_RTC_FIX := true
  87. BOARD_SUPPRESS_SECURE_ERASE := true
  88. RECOVERY_SDCARD_ON_DATA := true
  89. RECOVERY_GRAPHICS_USE_LINELENGTH := true
RAW Paste Data
Top