Change to prebuilt Kernel
This commit is contained in:
@@ -72,37 +72,49 @@ BOARD_INIT_BOOT_HEADER_VERSION := 4
|
|||||||
BOARD_MKBOOTIMG_INIT_ARGS += --header_version $(BOARD_INIT_BOOT_HEADER_VERSION)
|
BOARD_MKBOOTIMG_INIT_ARGS += --header_version $(BOARD_INIT_BOOT_HEADER_VERSION)
|
||||||
|
|
||||||
# Kernel
|
# Kernel
|
||||||
BOARD_BOOTCONFIG := \
|
#BOARD_BOOTCONFIG := \
|
||||||
androidboot.hardware=qcom \
|
# androidboot.hardware=qcom \
|
||||||
androidboot.memcg=1 \
|
# androidboot.memcg=1 \
|
||||||
androidboot.usbcontroller=a600000.dwc3 \
|
# androidboot.usbcontroller=a600000.dwc3 \
|
||||||
androidboot.load_modules_parallel=false \
|
# androidboot.load_modules_parallel=false \
|
||||||
androidboot.hypervisor.protected_vm.supported=true \
|
# androidboot.hypervisor.protected_vm.supported=true \
|
||||||
androidboot.selinux=permissive
|
# androidboot.selinux=permissive
|
||||||
|
|
||||||
BOARD_KERNEL_CMDLINE := \
|
#BOARD_KERNEL_CMDLINE := \
|
||||||
androidboot.hardware=qcom \
|
# androidboot.hardware=qcom \
|
||||||
androidboot.memcg=1 \
|
# androidboot.memcg=1 \
|
||||||
androidboot.usbcontroller=a600000.dwc3 \
|
# androidboot.usbcontroller=a600000.dwc3 \
|
||||||
androidboot.load_modules_parallel=false \
|
# androidboot.load_modules_parallel=false \
|
||||||
androidboot.hypervisor.protected_vm.supported=true \
|
# androidboot.hypervisor.protected_vm.supported=true \
|
||||||
androidboot.selinux=permissive \
|
# androidboot.selinux=permissive \
|
||||||
bpp=32 \
|
# bpp=32 \
|
||||||
printk.devkmsg=on \
|
# printk.devkmsg=on \
|
||||||
firmware_class.path=/vendor/firmware_mnt/image \
|
# firmware_class.path=/vendor/firmware_mnt/image \
|
||||||
bootconfig \
|
# bootconfig \
|
||||||
video=vfb:640x400,bpp=32,memsize=3072000 \
|
# video=vfb:640x400,bpp=32,memsize=3072000 \
|
||||||
loop.max_part=7
|
# loop.max_part=7
|
||||||
|
|
||||||
BOARD_KERNEL_BASE := 0x00000000
|
#BOARD_KERNEL_BASE := 0x00000000
|
||||||
BOARD_KERNEL_IMAGE_NAME := Image
|
#BOARD_KERNEL_IMAGE_NAME := Image
|
||||||
BOARD_KERNEL_PAGESIZE := 4096
|
#BOARD_KERNEL_PAGESIZE := 4096
|
||||||
BOARD_USES_GENERIC_KERNEL_IMAGE := true
|
#BOARD_USES_GENERIC_KERNEL_IMAGE := true
|
||||||
|
|
||||||
TARGET_KERNEL_SOURCE := kernel/samsung/sm8750
|
#TARGET_KERNEL_SOURCE := kernel/samsung/sm8750
|
||||||
|
|
||||||
# Kernel modules
|
# Kernel modules
|
||||||
TARGET_KERNEL_EXT_MODULE_ROOT := kernel/samsung/sm8750-modules
|
#TARGET_KERNEL_EXT_MODULE_ROOT := kernel/samsung/sm8750-modules
|
||||||
|
|
||||||
|
# Test -> Prebuilt Kernel
|
||||||
|
TARGET_FORCE_PREBUILT_KERNEL := true
|
||||||
|
ifeq ($(TARGET_FORCE_PREBUILT_KERNEL),true)
|
||||||
|
TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/prebuilts/kernel
|
||||||
|
TARGET_PREBUILT_DTB := $(DEVICE_PATH)/prebuilts/dtb.img
|
||||||
|
BOARD_MKBOOTIMG_ARGS += --dtb $(TARGET_PREBUILT_DTB)
|
||||||
|
BOARD_INCLUDE_DTB_IN_BOOTIMG :=
|
||||||
|
BOARD_PREBUILT_DTBOIMAGE := $(DEVICE_PATH)/prebuilts/dtbo.img
|
||||||
|
BOARD_KERNEL_SEPARATED_DTBO :=
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
# Metadata
|
# Metadata
|
||||||
BOARD_USES_METADATA_PARTITION := true
|
BOARD_USES_METADATA_PARTITION := true
|
||||||
|
|||||||
BIN
prebuilts/dtb.img
Normal file
BIN
prebuilts/dtb.img
Normal file
Binary file not shown.
BIN
prebuilts/dtbo.img
Normal file
BIN
prebuilts/dtbo.img
Normal file
Binary file not shown.
BIN
prebuilts/kernel
Normal file
BIN
prebuilts/kernel
Normal file
Binary file not shown.
Reference in New Issue
Block a user