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 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)
17 include $(INCLUDE_DIR
)/package.mk
19 define KernelPackage
/wlcompat
/Default
20 SUBMENU
:=Proprietary BCM43xx WiFi driver
21 SUBMENUDEP
:=@LINUX_2_4_BRCM
22 DEPENDS
:=@LINUX_2_4_BRCM @PACKAGE_kmod-brcm-wl||PACKAGE_kmod-brcm-wl-mimo
+wireless-tools
23 TITLE
:=Broadcom wl wrapper module
25 This package contains a wrapper module
, that provides Wireless Extension
\\\
26 support for the proprietary Broadcom wl module.
27 VERSION
:=$(LINUX_VERSION
)+$(BOARD
)-$(PKG_RELEASE
)
30 define KernelPackage
/wlcompat
31 $(call KernelPackage
/wlcompat
/Default
)
32 FILES
:=$(PKG_BUILD_DIR
)/wlcompat.o
33 AUTOLOAD
:=$(call AutoLoad
,50,wlcompat
)
36 define KernelPackage
/wlcompat-debug
37 $(call KernelPackage
/wlcompat
/Default
)
41 This is a debugging version.
42 FILES
:=$(PKG_BUILD_DIR
)/wlcompat-debug.o
46 mkdir
-p
$(PKG_BUILD_DIR
)
47 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
51 $(MAKE
) -C
"$(LINUX_DIR)" \
52 CROSS_COMPILE
="$(TARGET_CROSS)" \
53 ARCH
="$(LINUX_KARCH)" \
54 SUBDIRS
="$(PKG_BUILD_DIR)" \
55 EXTRA_CFLAGS
="-DDEBUG -I$(LINUX_DIR)/arch/mips/bcm947xx/include -I$(PKG_BUILD_DIR)/include" \
57 mv
$(PKG_BUILD_DIR
)/wlcompat.o
$(PKG_BUILD_DIR
)/wlcompat-debug.o
58 $(MAKE
) -C
"$(LINUX_DIR)" \
59 CROSS_COMPILE
="$(TARGET_CROSS)" \
60 ARCH
="$(LINUX_KARCH)" \
61 SUBDIRS
="$(PKG_BUILD_DIR)" \
62 EXTRA_CFLAGS
="-I$(LINUX_DIR)/arch/mips/bcm947xx/include -I$(PKG_BUILD_DIR)/include" \
66 $(eval
$(call KernelPackage
,wlcompat
))
67 $(eval
$(call KernelPackage
,wlcompat-debug
))