use a default VERSION field for kmod packages
[openwrt.git] / package / bcm43xx-mac80211 / 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:=bcm43xx-mac80211
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)
16
17 include $(INCLUDE_DIR)/package.mk
18 ifeq ($(DUMP),)
19 include $(LINUX_DIR)/.config
20 endif
21
22 define KernelPackage/bcm43xx-mac80211
23 SUBMENU:=Wireless Drivers
24 TITLE:=Broadcom 43xx wireless support
25 DESCRIPTION:=Kernel module for Broadcom 43xx wireless support (mac80211)
26 DEPENDS:=@LINUX_2_6_BRCM47XX +kmod-mac80211
27 KCONFIG:=CONFIG_MAC80211
28 FILES:=$(PKG_BUILD_DIR)/bcm43xx-mac80211.$(LINUX_KMOD_SUFFIX)
29 # AUTOLOAD:=$(call AutoLoad,30,bcm43xx-mac80211)
30 endef
31
32 ifneq ($(CONFIG_MAC80211),)
33
34 PKG_EXTRA_KCONFIG:= \
35 CONFIG_BCM43XX_MAC80211=m \
36 CONFIG_BCM43XX_MAC80211_PCI=y \
37 CONFIG_BCM43XX_MAC80211_DEBUG=y \
38 CONFIG_BCM43XX_MAC80211_DMA=y \
39 CONFIG_BCM43XX_MAC80211_PIO=y \
40 CONFIG_BCM43XX_MAC80211_DMA_AND_PIO_MODE=y \
41
42 PKG_EXTRA_CFLAGS:= \
43 -I$(STAGING_DIR)/usr/include/mac80211 \
44 $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=m,%,$(filter %=m,$(PKG_EXTRA_KCONFIG)))) \
45 $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=y,%,$(filter %=y,$(PKG_EXTRA_KCONFIG)))) \
46
47 define Build/Compile/it
48 $(MAKE) -C "$(LINUX_DIR)" \
49 ARCH="$(LINUX_KARCH)" \
50 CROSS_COMPILE="$(TARGET_CROSS)" \
51 SUBDIRS="$(PKG_BUILD_DIR)" \
52 $(PKG_EXTRA_KCONFIG) \
53 EXTRA_CFLAGS="$(PKG_EXTRA_CFLAGS)" \
54 V="$(V)" \
55 modules
56 endef
57
58 endif
59
60 define Build/Prepare
61 mkdir -p $(PKG_BUILD_DIR)
62 $(CP) ./src/bcm43xx/* $(PKG_BUILD_DIR)/
63 endef
64
65 define Build/Configure
66 endef
67
68 define Build/Compile
69 $(call Build/Compile/it)
70 endef
71
72 $(eval $(call KernelPackage,bcm43xx-mac80211))
This page took 0.049193 seconds and 5 git commands to generate.