diff --git a/BoardConfig-common.mk b/BoardConfig-common.mk index 247ff0b..e8c471d 100644 --- a/BoardConfig-common.mk +++ b/BoardConfig-common.mk @@ -42,6 +42,11 @@ BOARD_KERNEL_CMDLINE += swiotlb=1024 BOARD_KERNEL_CMDLINE += sysctl.kernel.sched_pelt_multiplier=4 BOARD_BOOTCONFIG += androidboot.boot_devices=13200000.ufs +# Enable KUnit for userdebug and eng builds +ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) + BOARD_KERNEL_CMDLINE += kunit.enable=1 +endif + TARGET_NO_BOOTLOADER := true TARGET_NO_RADIOIMAGE := true BOARD_PREBUILT_BOOTIMAGE := $(wildcard $(TARGET_KERNEL_DIR)/boot.img)