clean up mac80211 related kernel version deps
[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 define Build/Prepare
48 mkdir -p $(PKG_BUILD_DIR)
49 $(CP) ./src/* $(PKG_BUILD_DIR)/
50 endef
51
52 define Build/Configure
53 endef
54
55 define Build/Compile
56 $(MAKE) -C "$(LINUX_DIR)" \
57 $(MAKE_OPTS) \
58 modules
59 endef
60
61 $(eval $(call KernelPackage,b43))
This page took 0.039427 seconds and 5 git commands to generate.