# # Copyright 2018 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # This contains the module build definitions for the hardware-specific # components for this device. # # As much as possible, those components should be built unconditionally, # with device-specific names to avoid collisions, to avoid device-specific # bitrot and build breakages. Building a component unconditionally does # *not* include it on all devices, so it is safe even with hardware-specific # components. LOCAL_PATH := device/nokia/PL2 TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include # Architecture TARGET_ARCH := arm64 TARGET_ARCH_VARIANT := armv8-a TARGET_CPU_ABI := arm64-v8a TARGET_CPU_ABI2 := TARGET_CPU_VARIANT := generic TARGET_2ND_ARCH := arm TARGET_2ND_ARCH_VARIANT := armv8-a TARGET_2ND_CPU_ABI := armeabi-v7a TARGET_2ND_CPU_ABI2 := armeabi TARGET_2ND_CPU_VARIANT := cortex-a53 # Bootloader TARGET_BOOTLOADER_BOARD_NAME := sdm660 TARGET_NO_BOOTLOADER := true # Kernel BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200,n8 androidboot.console=ttyMSM0 earlycon=msm_serial_dm,0xc170000 androidboot.hardware=qcom msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 sched_enable_hmp=1 sched_enable_power_aware=1 service_locator.enable=1 swiotlb=1 androidboot.configfs=true androidboot.usbcontroller=a800000.dwc3 BOARD_KERNEL_CMDLINE += skip_override androidboot.selinux=permissive BOARD_KERNEL_BASE := 0x00000000 BOARD_KERNEL_OFFSET := 0x00008000 BOARD_KERNEL_PAGESIZE := 4096 BOARD_KERNEL_TAGS_OFFSET := 0x00000100 BOARD_RAMDISK_OFFSET := 0x01000000 BOARD_SECOND_OFFSET := 0x00f00000 BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/prebuilt/Image.gz-dtb # Platform TARGET_BOARD_PLATFORM := sdm660 TARGET_BOARD_PLATFORM_GPU := qcom-adreno508 TARGET_SUPPORTS_64_BIT_APPS := true # Encryption #PLATFORM_VERSION := 16.1.0 PLATFORM_SECURITY_PATCH := 2025-12-31 # Partitions BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864 BOARD_BUILD_SYSTEM_ROOT_IMAGE := true BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64) # Recovery BOARD_HAS_LARGE_FILESYSTEM := true BOARD_HAS_NO_SELECT_BUTTON := true TARGET_NO_KERNEL := false TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888" TARGET_USERIMAGES_USE_EXT4 := true # TWRP specific build flags RECOVERY_SDCARD_ON_DATA := true TARGET_RECOVERY_QCOM_RTC_FIX := true TW_BRIGHTNESS_PATH := "/sys/class/leds/lcd-backlight/brightness" TW_MAX_BRIGHTNESS := 100 TW_DEFAULT_BRIGHTNESS := "30" TW_EXTRA_LANGUAGES := true #TW_INCLUDE_CRYPTO := true TW_INCLUDE_NTFS_3G := true TW_INPUT_BLACKLIST := "hbtp_vm" TW_SCREEN_BLANK_ON_BOOT := true TW_THEME := portrait_hdpi TW_USE_TOOLBOX := true TW_INCLUDE_REPACKTOOLS := true TW_HAS_EDL_MODE := true # Workaround for error copying vendor files to recovery ramdisk TARGET_COPY_OUT_VENDOR := system/vendor