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
:=$(BUILD_DIR
)/$(PKG_NAME
)
17 include $(INCLUDE_DIR
)/package.mk
19 define Package
/kmod-wlcompat
24 TITLE
:=Wrapper providing Wireless Extensions for Broadcom wl module
26 A wrapper module
, that provides Wireless Extension support for the
\\\
27 proprietary Broadcom wl module.
28 VERSION
:=$(LINUX_VERSION
)+$(BOARD
)-$(PKG_RELEASE
)
31 define Package
/kmod-wlcompat-debug
32 $(call Package
/kmod-wlcompat
)
34 TITLE
:=Wrapper providing Wireless Extensions for Broadcom wl module
(debug
)
36 A wrapper module
, that provides Wireless Extension support for the
\\\
37 proprietary Broadcom wl module.
41 mkdir
-p
$(PKG_BUILD_DIR
)
42 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
46 $(MAKE
) -C
"$(LINUX_DIR)" \
47 CROSS_COMPILE
="$(TARGET_CROSS)" \
48 ARCH
="$(LINUX_KARCH)" \
49 PATH
="$(TARGET_PATH)" \
50 SUBDIRS
="$(PKG_BUILD_DIR)" \
51 EXTRA_CFLAGS
="-DDEBUG -I$(LINUX_DIR)/arch/mips/bcm947xx/include -I$(PKG_BUILD_DIR)/include" \
53 mv
$(PKG_BUILD_DIR
)/wlcompat.o
$(PKG_BUILD_DIR
)/wlcompat-debug.o
54 $(MAKE
) -C
"$(LINUX_DIR)" \
55 CROSS_COMPILE
="$(TARGET_CROSS)" \
56 ARCH
="$(LINUX_KARCH)" \
57 PATH
="$(TARGET_PATH)" \
58 SUBDIRS
="$(PKG_BUILD_DIR)" \
59 EXTRA_CFLAGS
="-I$(LINUX_DIR)/arch/mips/bcm947xx/include -I$(PKG_BUILD_DIR)/include" \
63 define Package
/kmod-wlcompat
/install
64 install -d
-m0755
$(1)/etc
/modules.d
65 echo
"wlcompat" > $(1)/etc
/modules.d
/30-wlcompat
66 install -d
-m0755
$(1)/lib
/modules
/$(LINUX_VERSION
)
67 $(CP
) $(PKG_BUILD_DIR
)/wlcompat.o
$(1)/lib
/modules
/$(LINUX_VERSION
)/
70 define Package
/kmod-wlcompat-debug
/install
71 install -d
-m0755
$(1)/lib
/modules
/$(LINUX_VERSION
)
72 $(CP
) $(PKG_BUILD_DIR
)/wlcompat-debug.o
$(1)/lib
/modules
/$(LINUX_VERSION
)/
75 $(eval
$(call BuildPackage
,kmod-wlcompat
))
76 $(eval
$(call BuildPackage
,kmod-wlcompat-debug
))