From 1bfac7e0e8fc76ffb337140ea2aec2ee0211ae20 Mon Sep 17 00:00:00 2001 From: Bernhard Fischer Date: Mon, 15 Sep 2008 17:50:40 +0200 Subject: [PATCH] improve sanity check --- target/linux/Makefile.in | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/target/linux/Makefile.in b/target/linux/Makefile.in index 8cc0a13..e71b114 100644 --- a/target/linux/Makefile.in +++ b/target/linux/Makefile.in @@ -108,18 +108,15 @@ $(LINUX26_KCONFIG): sleep 5; \ fi -# Sanity check -ifeq (=$(BR2_KERNEL_LINUX)$(BR2_PACKAGE_LINUX_KCONFIG)=,=y=) -$(error you do not have a linux kernel configuration) -endif - # Doesn't make sense to warn about a missing kernel config # when we are about to configure. -ifeq ($(findstring -menuconfig,$(MAKECMDGOALS)),) +ifeq (=$(BR2_KERNEL_LINUX)$(BR2_PACKAGE_LINUX_KCONFIG)=,=y=) +ifeq ($(filter -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 endif +endif ifneq ($(strip $(LINUX26_VERSION)),$(strip $(LINUX_HEADERS_VERSION))) -- 2.11.4.GIT