mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_sky
synced 2026-02-01 09:40:11 +00:00
sky: update kernel building
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
-include vendor/xiaomi/sky/BoardConfigVendor.mk
|
||||
|
||||
DEVICE_PATH := device/xiaomi/sky
|
||||
KERNEL_PATH := $(DEVICE_PATH)-kernel
|
||||
|
||||
# A/B
|
||||
AB_OTA_UPDATER := true
|
||||
@@ -69,40 +70,51 @@ NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
|
||||
# DRM
|
||||
TARGET_ENABLE_MEDIADRM_64 := true
|
||||
|
||||
# DTB
|
||||
BOARD_USES_DT := true
|
||||
BOARD_PREBUILT_DTBIMAGE_DIR := $(KERNEL_PATH)/dtbs
|
||||
BOARD_PREBUILT_DTBOIMAGE := $(KERNEL_PATH)/dtbo.img
|
||||
|
||||
# Filesystem
|
||||
TARGET_FS_CONFIG_GEN := $(DEVICE_PATH)/configs/config.fs
|
||||
|
||||
# Kernel
|
||||
TARGET_KERNEL_ARCH := arm64
|
||||
TARGET_KERNEL_HEADER_ARCH := arm64
|
||||
|
||||
BOARD_BOOT_HEADER_VERSION := 4
|
||||
BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION)
|
||||
|
||||
TARGET_COMPILE_WITH_MSM_KERNEL := false
|
||||
TARGET_FORCE_PREBUILT_KERNEL := true
|
||||
BOARD_EXCLUDE_KERNEL_FROM_RECOVERY_IMAGE := true
|
||||
BOARD_KERNEL_IMAGE_NAME := Image
|
||||
|
||||
BOARD_INCLUDE_DTB_IN_BOOTIMG := true
|
||||
BOARD_USES_GENERIC_KERNEL_IMAGE := true
|
||||
TARGET_HAS_GENERIC_KERNEL_HEADERS := true
|
||||
BOARD_KERNEL_PAGESIZE := 4096
|
||||
BOARD_KERNEL_BASE := 0x00000000
|
||||
|
||||
BOARD_KERNEL_CMDLINE := \
|
||||
video=vfb:640x400,bpp=32,memsize=3072000 \
|
||||
disable_dma32=on \
|
||||
bootinfo.fingerprint=$(LINEAGE_VERSION) \
|
||||
swinfo.fingerprint=$(LINEAGE_VERSION) \
|
||||
mtdoops.fingerprint=$(LINEAGE_VERSION)
|
||||
|
||||
BOARD_BOOTCONFIG := \
|
||||
androidboot.hardware=qcom \
|
||||
androidboot.memcg=1 \
|
||||
androidboot.usbcontroller=a600000.dwc3 \
|
||||
androidboot.init_fatal_reboot_target=recovery \
|
||||
androidboot.selinux=permissive
|
||||
androidboot.selinux=permissive \
|
||||
androidboot.init_fatal_reboot_target=recovery
|
||||
|
||||
TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/prebuilts/kernel
|
||||
BOARD_PREBUILT_DTBOIMAGE := $(DEVICE_PATH)/prebuilts/dtbo.img
|
||||
BOARD_BOOT_HEADER_VERSION := 4
|
||||
BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION)
|
||||
|
||||
BOARD_KERNEL_IMAGE_NAME := Image
|
||||
|
||||
BOARD_RAMDISK_USE_LZ4 := true
|
||||
BOARD_INCLUDE_DTB_IN_BOOTIMG := true
|
||||
BOARD_USES_GENERIC_KERNEL_IMAGE := true
|
||||
|
||||
# Kill lineage kernel build task while preserving kernel
|
||||
TARGET_NO_KERNEL_OVERRIDE := true
|
||||
|
||||
# Workaround to make lineage's soong generator work
|
||||
TARGET_KERNEL_SOURCE := $(KERNEL_PATH)/kernel-headers
|
||||
|
||||
# Kernel Binary
|
||||
TARGET_KERNEL_VERSION := 5.10
|
||||
LOCAL_KERNEL := $(KERNEL_PATH)/Image
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_KERNEL):kernel
|
||||
|
||||
# Kernel modules
|
||||
BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD := $(strip $(shell cat $(KERNEL_PATH)/vendor_ramdisk/modules.load))
|
||||
|
||||
Reference in New Issue
Block a user