Commit | Line | Data |
---|---|---|
d52e70d1 SJ |
1 | # |
2 | # Copyright 2017 The Android Open Source 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 | # This contains the module build definitions for the hardware-specific | |
18 | # components for this device. | |
19 | # | |
20 | # As much as possible, those components should be built unconditionally, | |
21 | # with device-specific names to avoid collisions, to avoid device-specific | |
22 | # bitrot and build breakages. Building a component unconditionally does | |
23 | # *not* include it on all devices, so it is safe even with hardware-specific | |
24 | # components. | |
25 | ||
26 | # Architecture | |
27 | TARGET_ARCH := arm64 | |
28 | TARGET_ARCH_VARIANT := armv8-a | |
29 | TARGET_CPU_ABI := arm64-v8a | |
30 | TARGET_CPU_ABI2 := | |
80d272c6 | 31 | TARGET_CPU_VARIANT := kryo |
c5ff77ee | 32 | |
d52e70d1 SJ |
33 | TARGET_2ND_ARCH := arm |
34 | TARGET_2ND_ARCH_VARIANT := armv7-a-neon | |
35 | TARGET_2ND_CPU_ABI := armeabi-v7a | |
36 | TARGET_2ND_CPU_ABI2 := armeabi | |
80d272c6 | 37 | TARGET_2ND_CPU_VARIANT := cortex-a53 |
d52e70d1 SJ |
38 | |
39 | ENABLE_CPUSETS := true | |
40 | ENABLE_SCHEDBOOST := true | |
41 | ||
42 | # Bootloader | |
db1518aa | 43 | TARGET_BOOTLOADER_BOARD_NAME := sdm845 |
d52e70d1 | 44 | TARGET_NO_BOOTLOADER := true |
d52e70d1 SJ |
45 | TARGET_USES_UEFI := true |
46 | ||
d52e70d1 | 47 | # Kernel |
4e657cd3 | 48 | BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom androidboot.console=ttyMSM0 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 service_locator.enable=1 swiotlb=2048 androidboot.configfs=true androidboot.usbcontroller=a600000.dwc3 firmware_class.path=/vendor/firmware_mnt/image loop.max_part=7 |
49 | BOARD_KERNEL_CMDLINE += skip_override androidboot.fastboot=1 | |
c5ff77ee | 50 | BOARD_KERNEL_BASE := 0x00000000 |
d52e70d1 | 51 | BOARD_KERNEL_PAGESIZE := 4096 |
d7596fbe | 52 | TARGET_PREBUILT_KERNEL := device/oneplus/fajita/prebuilt/Image.gz-dtb |
d52e70d1 | 53 | |
c5ff77ee | 54 | # Platform |
db1518aa | 55 | TARGET_BOARD_PLATFORM := sdm845 |
56 | TARGET_BOARD_PLATFORM_GPU := qcom-adreno630 | |
c5ff77ee | 57 | |
d52e70d1 | 58 | # Partitions |
80d272c6 | 59 | BOARD_FLASH_BLOCK_SIZE := 262144 |
caf65763 | 60 | |
c5ff77ee | 61 | BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864 |
c5ff77ee | 62 | BOARD_RECOVERYIMAGE_PARTITION_SIZE := 67108864 |
db1518aa | 63 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2998927360 |
58768af7 | 64 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 118112366592 |
caf65763 | 65 | BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := ext4 |
db1518aa | 66 | BOARD_VENDORIMAGE_PARTITION_SIZE := 1073741824 |
caf65763 SS |
67 | TARGET_USERIMAGES_USE_EXT4 := true |
68 | TARGET_USERIMAGES_USE_F2FS := true | |
c5ff77ee | 69 | |
70 | # Workaround for error copying vendor files to recovery ramdisk | |
caf65763 SS |
71 | BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 |
72 | TARGET_COPY_OUT_VENDOR := vendor | |
78cb5f12 | 73 | |
d52e70d1 SJ |
74 | # Recovery |
75 | BOARD_HAS_LARGE_FILESYSTEM := true | |
c5ff77ee | 76 | BOARD_HAS_NO_SELECT_BUTTON := true |
c99dbeb1 | 77 | |
d52e70d1 | 78 | # TWRP specific build flags |
16c951e1 | 79 | BOARD_HAS_NO_REAL_SDCARD := true |
d8bcc3d9 | 80 | RECOVERY_SDCARD_ON_DATA := true |
c5ff77ee | 81 | TARGET_RECOVERY_QCOM_RTC_FIX := true |
bc7cd272 | 82 | TW_BRIGHTNESS_PATH := "/sys/class/backlight/panel0-backlight/brightness" |
caf65763 SS |
83 | TW_EXCLUDE_DEFAULT_USB_INIT := true |
84 | TW_EXCLUDE_SUPERSU := true | |
85 | TW_EXTRA_LANGUAGES := true | |
bd2a0a16 | 86 | TW_INCLUDE_NTFS_3G := true |
db1518aa | 87 | AB_OTA_UPDATER := true |
ba068305 | 88 | BOARD_BUILD_SYSTEM_ROOT_IMAGE := true |
c5ff77ee | 89 | TW_INPUT_BLACKLIST := "hbtp_vm" |
572e2fb4 | 90 | TW_MAX_BRIGHTNESS := 1023 |
f558eb88 | 91 | TW_THEME := portrait_hdpi # set portrait_hdpi_notch to use the notch theme (and finally see the clock) |
8dde1ce7 | 92 | TARGET_RECOVERY_DEVICE_MODULES += android.hardware.boot@1.0 |
406f7506 | 93 | #TW_RECOVERY_ADDITIONAL_RELINK_FILES := ${OUT}/system/lib64/android.hardware.boot@1.0.so |
f5467149 | 94 | TARGET_USE_CUSTOM_LUN_FILE_PATH := "/config/usb_gadget/g1/functions/mass_storage.0/lun.%d/file" |
3ec3c203 EY |
95 | TARGET_RECOVERY_PIXEL_FORMAT := BGRA_8888 |
96 | TW_NO_SCREEN_BLANK := true | |
db1518aa | 97 | |
98 | # Encryption | |
3ec3c203 | 99 | PLATFORM_SECURITY_PATCH := 2025-12-31 |
db1518aa | 100 | TW_INCLUDE_CRYPTO := true |
406f7506 | 101 | TW_INCLUDE_CRYPTO_FBE := true |
80d272c6 | 102 | |
103 | # Extras | |
104 | BOARD_SUPPRESS_SECURE_ERASE := true | |
105 | TW_USE_LEDS_HAPTICS := true | |
406f7506 | 106 | #TW_USE_TOOLBOX := true |
ef17c2d1 | 107 | TW_EXCLUDE_TWRPAPP := true |
42e2e80d | 108 | USE_RECOVERY_INSTALLER := true |
109 | RECOVERY_INSTALLER_PATH := device/oneplus/fajita/installer |