2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_NAME
:=kmod-wlcompat
15 include $(INCLUDE_DIR
)/package.mk
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
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.
29 define KernelPackage
/wlcompat
30 $(call KernelPackage
/wlcompat
/Default
)
31 FILES
:=$(PKG_BUILD_DIR
)/wlcompat.o
32 AUTOLOAD
:=$(call AutoLoad
,50,wlcompat
)
35 define KernelPackage
/wlcompat
/description
36 $(call KernelPackage
/wlcompat
/Default
/description
)
39 define KernelPackage
/wlcompat-debug
40 $(call KernelPackage
/wlcompat
/Default
)
42 FILES
:=$(PKG_BUILD_DIR
)/wlcompat-debug.o
45 define KernelPackage
/wlcompat-debug
/description
46 $(call KernelPackage
/wlcompat
/Default
/description
)
47 This is a debugging version.
51 mkdir
-p
$(PKG_BUILD_DIR
)
52 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
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" \
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" \
71 $(eval
$(call KernelPackage
,wlcompat
))
72 $(eval
$(call KernelPackage
,wlcompat-debug
))