export ## NOTE ## Make sure to have each variable declaration start ## in the first column, no whitespace allowed. ifeq ($(wildcard $(KLIB_BUILD)/.config),) # These will be ignored by compat autoconf CONFIG_PCI=y CONFIG_USB=y CONFIG_PCMCIA=y CONFIG_SSB=m else include $(KLIB_BUILD)/.config endif # We will warn when you don't have MQ support or NET_SCHED enabled. # # We could consider just quiting if MQ and NET_SCHED is disabled # as I suspect all users of this package want 802.11e (WME) and # 802.11n (HT) support. ifneq ($(wildcard $(KLIB_BUILD)/Makefile),) COMPAT_LATEST_VERSION = 39 KERNEL_SUBLEVEL := $(shell $(MAKE) -C $(KLIB_BUILD) kernelversion | sed -n 's/^2\.6\.\([0-9]\+\).*/\1/p') COMPAT_VERSIONS := $(shell I=$(COMPAT_LATEST_VERSION); while [ "$$I" -gt $(KERNEL_SUBLEVEL) ]; do echo $$I; I=$$(($$I - 1)); done) $(foreach ver,$(COMPAT_VERSIONS),$(eval CONFIG_COMPAT_KERNEL_$(ver)=y)) ifdef CONFIG_COMPAT_KERNEL_24 $(error "ERROR: compat-wireless by default supports kernels >= 2.6.24, try enabling only one driver though") endif #CONFIG_COMPAT_KERNEL_24 ............... ................. this is 0-30 line of config.mk .we can see if there is "if" then there is "endif". i use linux-2.6.27.7 kernel ,and compat-wireless for 2.6.38 or 2.6.39 etl.the error comes all the time.AND,i use gcc-3.4.6-2f for loongson which is a mips arch chip.i use konoppix linux VM. > -----原始邮件----- > 发件人: "Pavel Roskin" <pro...@gnu.org> > 发送时间: 2011年7月19日 星期二 > 收件人: JJLee <jjleecar...@gmail.com> > 抄送: wy408 <wy52119...@163.com>, linux-wirel...@vger.kernel.org > 主题: Re: compat-wireless cross compile > > Quoting JJLee <jjleecar...@gmail.com>: > > > maybe your corss compile gcc not support elseif keywords > > Please don't top-post. Top-posting kills an intelligent discussion. > > >>> config.mk:26:*****missing "endif"........ > > If you actually read the text you quoted you would have realized that > the message comes from the make program that fails to interpret > config.mk. The compiler is not involved at this stage. > > There is no "elseif" or even "elsif" anywhere in > compat-wireless-2.6.39, and if GNU make failed to understand a > keyword, it would have reported it differently: > > $ cat makefile > ifeq (0,0) > elseif > $ make > makefile:2: *** missing separator. Stop. > > BSD make would stop of the first like of the compat-wireless Makefile > without even getting to config.mk: > > $ bmake > bmake: "/home/proski/src/compat-wireless-2.6.39-1-sn/Makefile" line 1: > Need an operator > > -- > Regards, > Pavel Roskin
_______________________________________________ ath5k-devel mailing list ath5k-devel@lists.ath5k.org https://lists.ath5k.org/mailman/listinfo/ath5k-devel