mark b43 as broken
[openwrt.git] / package / b43 / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 7440 2007-06-02 02:22:01Z nbd $
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=b43
13 PKG_RELEASE:=1
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define KernelPackage/b43
18 SUBMENU:=Wireless Drivers
19 TITLE:=Broadcom 43xx wireless support
20 DEPENDS:=@TARGET_brcm47xx +kmod-mac80211 @BROKEN
21 FILES:=$(PKG_BUILD_DIR)/b43.$(LINUX_KMOD_SUFFIX)
22 # AUTOLOAD:=$(call AutoLoad,30,b43)
23 endef
24
25 define KernelPackage/b43/description
26 Kernel module for Broadcom 43xx wireless support (mac80211)
27 endef
28
29 EXTRA_KCONFIG:= \
30 CONFIG_B43=m \
31 CONFIG_B43_DMA=y \
32 $(if $(CONFIG_LEDS_TRIGGERS),CONFIG_B43_LEDS=y) \
33
34
35 EXTRA_CFLAGS:= \
36 $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=m,%,$(filter %=m,$(EXTRA_KCONFIG)))) \
37 $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=y,%,$(filter %=y,$(EXTRA_KCONFIG)))) \
38
39 MAKE_OPTS:= \
40 ARCH="$(LINUX_KARCH)" \
41 CROSS_COMPILE="$(TARGET_CROSS)" \
42 SUBDIRS="$(PKG_BUILD_DIR)" \
43 EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
44 LINUXINCLUDE="-I$(STAGING_DIR)/usr/include/mac80211 -I$(LINUX_DIR)/include -include linux/autoconf.h" \
45 $(EXTRA_KCONFIG)
46
47 ifneq ($(findstring 2.6.23,$(LINUX_VERSION)),)
48 define Build/Prepare
49 mkdir -p $(PKG_BUILD_DIR)
50 $(CP) ./src/* $(PKG_BUILD_DIR)/
51 endef
52
53 define Build/Configure
54 endef
55
56 define Build/Compile
57 $(MAKE) -C "$(LINUX_DIR)" \
58 $(MAKE_OPTS) \
59 modules
60 endef
61 else
62 override CONFIG_PACKAGE_kmod-b43=
63 endif
64
65 $(eval $(call KernelPackage,b43))
This page took 0.044898 seconds and 5 git commands to generate.