2 # Copyright 2017 The Android Open Source Project
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 # This contains the module build definitions for the hardware-specific
18 # components for this device.
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
28 TARGET_ARCH_VARIANT
:= armv8-a
29 TARGET_CPU_ABI
:= arm64-v8a
31 TARGET_CPU_VARIANT
:= generic
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
37 TARGET_2ND_CPU_VARIANT
:= cortex-a9
39 ENABLE_CPUSETS
:= true
40 ENABLE_SCHEDBOOST
:= true
43 TARGET_BOOTLOADER_BOARD_NAME
:= msm8998
44 TARGET_NO_BOOTLOADER
:= true
45 TARGET_USES_UEFI
:= true
48 BOARD_KERNEL_BASE
:= 0x00000000
49 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
50 BOARD_KERNEL_CMDLINE
+= androidboot.selinux
=permissive
51 BOARD_KERNEL_PAGESIZE
:= 4096
52 BOARD_KERNEL_TAGS_OFFSET
:= 0x00000100
53 BOARD_RAMDISK_OFFSET
:= 0x01000000
54 TARGET_PREBUILT_KERNEL
:= device
/oneplus
/dumpling
/prebuilt
/Image.gz-dtb
57 TARGET_BOARD_PLATFORM
:= msm8998
58 TARGET_BOARD_PLATFORM_GPU
:= qcom-adreno540
61 BOARD_BOOTIMAGE_PARTITION_SIZE
:= 67108864
62 BOARD_CACHEIMAGE_PARTITION_SIZE
:= 268435456
63 BOARD_RECOVERYIMAGE_PARTITION_SIZE
:= 67108864
64 BOARD_SYSTEMIMAGE_PARTITION_SIZE
:= 3221225472
65 BOARD_USERDATAIMAGE_PARTITION_SIZE
:= 56908316672
66 BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE
:= f2fs
67 BOARD_FLASH_BLOCK_SIZE
:= 262144 # (BOARD_KERNEL_PAGESIZE * 64)
70 BOARD_HAS_LARGE_FILESYSTEM
:= true
71 BOARD_HAS_NO_SELECT_BUTTON
:= true
72 TARGET_RECOVERY_PIXEL_FORMAT
:= "RGBX_8888"
73 TARGET_USERIMAGES_USE_EXT4
:= true
74 TARGET_USERIMAGES_USE_F2FS
:= true
76 # TWRP specific build flags
77 BOARD_HAS_NO_REAL_SDCARD
:= true
78 RECOVERY_SDCARD_ON_DATA
:= true
79 TARGET_RECOVERY_QCOM_RTC_FIX
:= true
80 TW_BRIGHTNESS_PATH
:= "/sys/class/leds/lcd-backlight/brightness"
81 TW_EXCLUDE_DEFAULT_USB_INIT
:= true
82 TW_EXCLUDE_SUPERSU
:= true
83 TW_EXTRA_LANGUAGES
:= true
84 TW_INCLUDE_CRYPTO
:= true
85 TARGET_HW_DISK_ENCRYPTION
= true
86 TARGET_CRYPTFS_HW_PATH
:= device
/qcom
/common
/cryptfs_hw
87 TW_INCLUDE_NTFS_3G
:= true
88 TW_INPUT_BLACKLIST
:= "hbtp_vm"
89 TW_MAX_BRIGHTNESS
:= 255
90 TW_DEFAULT_BRIGHTNESS
:= 140
91 TW_NO_USB_STORAGE
:= true
92 TW_SCREEN_BLANK_ON_BOOT
:= true
93 TW_THEME
:= portrait_hdpi
94 # Workaround for error copying vendor files to recovery ramdisk
95 BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE
:= ext4
96 TARGET_COPY_OUT_VENDOR
:= vendor