Browse Source

add extra check if ADK_TARGET_KERNEL_USE_DEFCONFIG is enabled, but ADK_TARGET_KERNEL_DEFCONFIG is empty

Waldemar Brodkorb 6 years ago
parent
commit
f6634c53e1
1 changed files with 5 additions and 0 deletions
  1. 5 0
      mk/build.mk

+ 5 - 0
mk/build.mk

@@ -141,6 +141,11 @@ POSTCONFIG=		-@\
 		if [ $$cleandir -eq 1 ];then \
 			echo "You should rebuild with 'make cleansystem'";\
 		fi; \
+		if [ "$$(grep ^ADK_TARGET_KERNEL_USE_DEFCONFIG .config)" ];then \
+			if [ "$$(grep ^ADK_TARGET_KERNEL_DEFCONFIG .config|awk -F= '{print $$2}')" == '""' ];then \
+			echo "custom Linux defconfig name missing";\
+			fi; \
+		fi; \
 		if [ $$rebuild -eq 1 ];then \
 			cp .config .config.old;\
 		fi; \