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 | ||
2eb668a3 SS |
26 | BOARD_PATH := device/oneplus/dumpling |
27 | ||
d52e70d1 SJ |
28 | # Architecture |
29 | TARGET_ARCH := arm64 | |
30 | TARGET_ARCH_VARIANT := armv8-a | |
31 | TARGET_CPU_ABI := arm64-v8a | |
32 | TARGET_CPU_ABI2 := | |
33 | TARGET_CPU_VARIANT := generic | |
34 | ||
35 | TARGET_2ND_ARCH := arm | |
36 | TARGET_2ND_ARCH_VARIANT := armv7-a-neon | |
37 | TARGET_2ND_CPU_ABI := armeabi-v7a | |
38 | TARGET_2ND_CPU_ABI2 := armeabi | |
39 | TARGET_2ND_CPU_VARIANT := cortex-a9 | |
40 | ||
41 | ENABLE_CPUSETS := true | |
42 | ENABLE_SCHEDBOOST := true | |
43 | ||
44 | # Bootloader | |
45 | TARGET_BOOTLOADER_BOARD_NAME := msm8998 | |
46 | TARGET_NO_BOOTLOADER := true | |
d52e70d1 SJ |
47 | TARGET_USES_UEFI := true |
48 | ||
d52e70d1 SJ |
49 | # Kernel |
50 | BOARD_KERNEL_BASE := 0x00000000 | |
b491187e | 51 | 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 |
d52e70d1 | 52 | BOARD_KERNEL_PAGESIZE := 4096 |
b491187e SS |
53 | BOARD_KERNEL_TAGS_OFFSET := 0x01E00000 |
54 | BOARD_RAMDISK_OFFSET := 0x02000000 | |
c213021e | 55 | TARGET_PREBUILT_KERNEL := device/oneplus/dumpling/prebuilt/Image.gz-dtb |
d52e70d1 | 56 | |
b491187e SS |
57 | TARGET_KERNEL_ARCH := arm64 |
58 | TARGET_KERNEL_HEADER_ARCH := arm64 | |
59 | TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android- | |
60 | TARGET_USES_UNCOMPRESSED_KERNEL := false | |
61 | ||
d52e70d1 SJ |
62 | # Platform |
63 | TARGET_BOARD_PLATFORM := msm8998 | |
64 | TARGET_BOARD_PLATFORM_GPU := qcom-adreno540 | |
65 | ||
66 | # Partitions | |
12e041e4 | 67 | BOARD_BOOTIMAGE_PARTITION_SIZE := 0x04000000 |
d52e70d1 | 68 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472 |
12e041e4 SS |
69 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 10737418240 |
70 | BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 | |
71 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 | |
72 | BOARD_PERSISTIMAGE_PARTITION_SIZE := 33554432 | |
73 | BOARD_PERSISTIMAGE_FILE_SYSTEM_TYPE := ext4 | |
b491187e | 74 | BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64) |
16c951e1 SS |
75 | BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 |
76 | TARGET_COPY_OUT_VENDOR := vendor | |
d52e70d1 | 77 | |
78cb5f12 SS |
78 | # Crypto |
79 | TARGET_HW_DISK_ENCRYPTION := true | |
2eb668a3 | 80 | TARGET_CRYPTFS_HW_PATH := $(BOARD_PATH)/cryptfs_hw |
78cb5f12 | 81 | |
d52e70d1 SJ |
82 | # Recovery |
83 | BOARD_HAS_LARGE_FILESYSTEM := true | |
84 | BOARD_HAS_NO_SELECT_BUTTON := true | |
85 | TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888" | |
86 | TARGET_USERIMAGES_USE_EXT4 := true | |
87 | TARGET_USERIMAGES_USE_F2FS := true | |
88 | ||
b491187e SS |
89 | TARGET_USES_ION := true |
90 | TARGET_USES_NEW_ION_API :=true | |
b491187e | 91 | TARGET_NO_RPC := true |
b491187e | 92 | TARGET_PLATFORM_DEVICE_BASE := /devices/soc.0/ |
b491187e | 93 | TARGET_INIT_COLDBOOT_TIMEOUT := 8 |
b491187e SS |
94 | NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 |
95 | TARGET_KERNEL_APPEND_DTB := true | |
96 | TARGET_COMPILE_WITH_MSM_KERNEL := true | |
97 | ||
98 | #Enable SSC Feature | |
99 | TARGET_USES_SSC := true | |
100 | ||
101 | # Enable sensor multi HAL | |
102 | USE_SENSOR_MULTI_HAL := true | |
103 | ||
d52e70d1 | 104 | # TWRP specific build flags |
16c951e1 | 105 | TW_THEME := portrait_hdpi |
d52e70d1 | 106 | RECOVERY_SDCARD_ON_DATA := true |
16c951e1 | 107 | BOARD_HAS_NO_REAL_SDCARD := true |
d52e70d1 SJ |
108 | TARGET_RECOVERY_QCOM_RTC_FIX := true |
109 | TW_BRIGHTNESS_PATH := "/sys/class/leds/lcd-backlight/brightness" | |
16c951e1 SS |
110 | TW_MAX_BRIGHTNESS := 255 |
111 | TW_DEFAULT_BRIGHTNESS := 150 | |
d52e70d1 | 112 | TW_EXTRA_LANGUAGES := true |
d52e70d1 SJ |
113 | TW_INCLUDE_NTFS_3G := true |
114 | TW_INPUT_BLACKLIST := "hbtp_vm" | |
16c951e1 | 115 | TW_EXCLUDE_SUPERSU := true |
3bdda247 SS |
116 | TW_EXCLUDE_DEFAULT_USB_INIT := true |
117 | TW_NO_USB_STORAGE := true | |
d52e70d1 | 118 | TW_SCREEN_BLANK_ON_BOOT := true |
e04a1869 | 119 | TW_INCLUDE_CRYPTO := true |