From 032ad6560617387c5111fc0cf1a6c0cb11651576 Mon Sep 17 00:00:00 2001 From: Raghavendra Rao Ananta Date: Tue, 14 Aug 2018 01:57:59 -0700 Subject: [PATCH] AndroidKernel: Look for defconfig under vendor/ The target configuration searches for defconfig under configs/vendor/ by default. Hence, change the search path for the same for kernel configuration. Change-Id: Ica83363fc6783eb1ce2d46acfd755a1915e1d113 Signed-off-by: Raghavendra Rao Ananta --- AndroidKernel.mk | 4 ++++ 1 file changed, 4 insertions(+) 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)