diff --git a/AndroidKernel.mk b/AndroidKernel.mk index 56e752040a19..35d3573210c6 100644 --- a/AndroidKernel.mk +++ b/AndroidKernel.mk @@ -28,6 +28,10 @@ $(warning Forcing kernel header generation only for '$(TARGET_KERNEL_HEADER_ARCH KERNEL_HEADER_ARCH := $(TARGET_KERNEL_HEADER_ARCH) endif +ifeq ($(shell echo $(KERNEL_DEFCONFIG) | grep vendor),) +KERNEL_DEFCONFIG := vendor/$(KERNEL_DEFCONFIG) +endif + KERNEL_HEADER_DEFCONFIG := $(strip $(KERNEL_HEADER_DEFCONFIG)) ifeq ($(KERNEL_HEADER_DEFCONFIG),) KERNEL_HEADER_DEFCONFIG := $(KERNEL_DEFCONFIG)