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
:=@LINUX_2_4_BRCM
20 DEPENDS
:=@LINUX_2_4_BRCM @PACKAGE_kmod-brcm-wl||PACKAGE_kmod-brcm-wl-mimo
+wireless-tools
21 TITLE
:=Broadcom wl wrapper module
23 This package contains a wrapper module
, that provides Wireless Extension
\\\
24 support for the proprietary Broadcom wl module.
27 define KernelPackage
/wlcompat
28 $(call KernelPackage
/wlcompat
/Default
)
29 FILES
:=$(PKG_BUILD_DIR
)/wlcompat.o
30 AUTOLOAD
:=$(call AutoLoad
,50,wlcompat
)
33 define KernelPackage
/wlcompat-debug
34 $(call KernelPackage
/wlcompat
/Default
)
38 This is a debugging version.
39 FILES
:=$(PKG_BUILD_DIR
)/wlcompat-debug.o
43 mkdir
-p
$(PKG_BUILD_DIR
)
44 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
48 $(MAKE
) -C
"$(LINUX_DIR)" \
49 CROSS_COMPILE
="$(TARGET_CROSS)" \
50 ARCH
="$(LINUX_KARCH)" \
51 SUBDIRS
="$(PKG_BUILD_DIR)" \
52 EXTRA_CFLAGS
="-DDEBUG -I$(LINUX_DIR)/arch/mips/bcm947xx/include -I$(PKG_BUILD_DIR)/include" \
54 mv
$(PKG_BUILD_DIR
)/wlcompat.o
$(PKG_BUILD_DIR
)/wlcompat-debug.o
55 $(MAKE
) -C
"$(LINUX_DIR)" \
56 CROSS_COMPILE
="$(TARGET_CROSS)" \
57 ARCH
="$(LINUX_KARCH)" \
58 SUBDIRS
="$(PKG_BUILD_DIR)" \
59 EXTRA_CFLAGS
="-I$(LINUX_DIR)/arch/mips/bcm947xx/include -I$(PKG_BUILD_DIR)/include" \
63 $(eval
$(call KernelPackage
,wlcompat
))
64 $(eval
$(call KernelPackage
,wlcompat-debug
))