Fix tx error handling (#2552). Make rx ring size actually configurable through
[openwrt.git] / package / wlcompat / Makefile
1 #
2 # Copyright (C) 2006 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$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=kmod-wlcompat
13 PKG_RELEASE:=6
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define KernelPackage/wlcompat/Default
18 SUBMENU:=Proprietary BCM43xx WiFi driver
19 SUBMENUDEP:=@TARGET_brcm_2_4
20 DEPENDS:=@TARGET_brcm_2_4 @PACKAGE_kmod-brcm-wl||PACKAGE_kmod-brcm-wl-mimo +wireless-tools
21 TITLE:=Broadcom wl wrapper module
22 endef
23
24 define KernelPackage/wlcompat/Default/description
25 This package contains a wrapper module, that provides Wireless Extension
26 support for the proprietary Broadcom wl module.
27 endef
28
29 define KernelPackage/wlcompat
30 $(call KernelPackage/wlcompat/Default)
31 FILES:=$(PKG_BUILD_DIR)/wlcompat.o
32 AUTOLOAD:=$(call AutoLoad,50,wlcompat)
33 endef
34
35 define KernelPackage/wlcompat/description
36 $(call KernelPackage/wlcompat/Default/description)
37 endef
38
39 define KernelPackage/wlcompat-debug
40 $(call KernelPackage/wlcompat/Default)
41 TITLE+= (debug)
42 FILES:=$(PKG_BUILD_DIR)/wlcompat-debug.o
43 endef
44
45 define KernelPackage/wlcompat-debug/description
46 $(call KernelPackage/wlcompat/Default/description)
47 This is a debugging version.
48 endef
49
50 define Build/Prepare
51 mkdir -p $(PKG_BUILD_DIR)
52 $(CP) ./src/* $(PKG_BUILD_DIR)/
53 endef
54
55 define Build/Compile
56 $(MAKE) -C "$(LINUX_DIR)" \
57 CROSS_COMPILE="$(TARGET_CROSS)" \
58 ARCH="$(LINUX_KARCH)" \
59 SUBDIRS="$(PKG_BUILD_DIR)" \
60 EXTRA_CFLAGS="-DDEBUG -I$(LINUX_DIR)/arch/mips/bcm947xx/include -I$(PKG_BUILD_DIR)/include" \
61 modules
62 mv $(PKG_BUILD_DIR)/wlcompat.o $(PKG_BUILD_DIR)/wlcompat-debug.o
63 $(MAKE) -C "$(LINUX_DIR)" \
64 CROSS_COMPILE="$(TARGET_CROSS)" \
65 ARCH="$(LINUX_KARCH)" \
66 SUBDIRS="$(PKG_BUILD_DIR)" \
67 EXTRA_CFLAGS="-I$(LINUX_DIR)/arch/mips/bcm947xx/include -I$(PKG_BUILD_DIR)/include" \
68 modules
69 endef
70
71 $(eval $(call KernelPackage,wlcompat))
72 $(eval $(call KernelPackage,wlcompat-debug))
This page took 0.043913 seconds and 5 git commands to generate.