From: Luis R. Rodriguez Date: Sun, 16 Nov 2008 22:38:57 +0000 (-0800) Subject: Complain and exit if the user's kernel was built with X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bcdfe51c4243a90a84d0bb6dff0f27e1865fc38f;p=openwrt%2Fstaging%2Fblogic.git Complain and exit if the user's kernel was built with cfg80211 built into the kernel, we require it be built as a module. Signed-off-by: Luis R. Rodriguez --- diff --git a/config.mk b/config.mk index 740e20475d77..4f5a6b982604 100644 --- a/config.mk +++ b/config.mk @@ -31,6 +31,10 @@ ifeq ($(shell test $(KERNEL_SUBLEVEL) -lt 27 && echo yes),yes) $(error "ERROR: You should use compat-wireless-2.6-old for older kernels, this one is for kenrels >= 2.6.27") endif +ifeq ($(CONFIG_CFG80211),y) +$(error "ERROR: your kernel has CONFIG_CFG80211=y, you should have it CONFIG_CFG80211=m if you want to use this thing.") +endif + # 2.6.27 has FTRACE_DYNAMIC borked, so we will complain if # you have it enabled, otherwise you will very likely run into # a kernel panic.