3 include $(TOPDIR
)/rules.mk
4 include $(TOPDIR
)/package
/kernel.mk
6 PKG_NAME
:=kmod-wlcompat
9 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
11 include $(TOPDIR
)/package
/rules.mk
13 define Package
/kmod-wlcompat
18 TITLE
:=Wrapper providing Wireless Extensions for Broadcom wl module
20 A wrapper module
, that provides Wireless Extension support for the
\\\
21 proprietary Broadcom wl module.
22 VERSION
:=$(LINUX_VERSION
)+$(BOARD
)-$(PKG_RELEASE
)
25 define Package
/kmod-wlcompat-debug
26 $(call Package
/kmod-wlcompat
)
28 TITLE
:=Wrapper providing Wireless Extensions for Broadcom wl module
(debug
)
30 A wrapper module
, that provides Wireless Extension support for the
\\\
31 proprietary Broadcom wl module.
35 mkdir
-p
$(PKG_BUILD_DIR
)
36 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
40 $(MAKE
) -C
"$(LINUX_DIR)" \
41 CROSS_COMPILE
="$(TARGET_CROSS)" \
42 ARCH
="$(LINUX_KARCH)" \
43 PATH
="$(TARGET_PATH)" \
44 SUBDIRS
="$(PKG_BUILD_DIR)" \
45 EXTRA_CFLAGS
="-DDEBUG -I$(LINUX_DIR)/arch/mips/bcm947xx/include -I$(PKG_BUILD_DIR)/include" \
47 mv
$(PKG_BUILD_DIR
)/wlcompat.o
$(PKG_BUILD_DIR
)/wlcompat-debug.o
48 $(MAKE
) -C
"$(LINUX_DIR)" \
49 CROSS_COMPILE
="$(TARGET_CROSS)" \
50 ARCH
="$(LINUX_KARCH)" \
51 PATH
="$(TARGET_PATH)" \
52 SUBDIRS
="$(PKG_BUILD_DIR)" \
53 EXTRA_CFLAGS
="-I$(LINUX_DIR)/arch/mips/bcm947xx/include -I$(PKG_BUILD_DIR)/include" \
57 define Package
/kmod-wlcompat
/install
58 install -d
-m0755
$(1)/etc
/modules.d
59 echo
"wlcompat" > $(1)/etc
/modules.d
/30-wlcompat
60 install -d
-m0755
$(1)/lib
/modules
/$(LINUX_VERSION
)
61 $(CP
) $(PKG_BUILD_DIR
)/wlcompat.o
$(1)/lib
/modules
/$(LINUX_VERSION
)/
64 define Package
/kmod-wlcompat-debug
/install
65 install -d
-m0755
$(1)/lib
/modules
/$(LINUX_VERSION
)
66 $(CP
) $(PKG_BUILD_DIR
)/wlcompat-debug.o
$(1)/lib
/modules
/$(LINUX_VERSION
)/
69 $(eval
$(call BuildPackage
,kmod-wlcompat
))
70 $(eval
$(call BuildPackage
,kmod-wlcompat-debug
))