From 4fdb94f32432afe841e7dae5629861b44ed57e34 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Tue, 13 Jan 2009 14:30:09 +0100 Subject: [PATCH] improve check for warning about missing kernel .config --- target/linux/Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/Makefile.in b/target/linux/Makefile.in index 3af523f..f7e8e54 100644 --- a/target/linux/Makefile.in +++ b/target/linux/Makefile.in @@ -110,8 +110,8 @@ $(LINUX26_KCONFIG): # Doesn't make sense to warn about a missing kernel config # when we are about to configure. -ifeq (=$(BR2_KERNEL_LINUX)$(BR2_PACKAGE_LINUX_KCONFIG)=,=y=) -ifeq ($(filter -menuconfig linux26-source linux26-unpacked,$(MAKECMDGOALS)),) +ifeq ($(findstring y=,$(BR2_KERNEL_LINUX)$(BR2_PACKAGE_LINUX_KCONFIG)=),y=) +ifeq ($(filter-out -menuconfig linux26-source linux26-unpacked,$(MAKECMDGOALS)),) ifeq ($(BR2_KERNEL_LINUX)$(realpath $(LINUX26_KCONFIG)),y) $(error you do not have a linux kernel configuration file) endif -- 2.11.4.GIT