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
17 TITLE
:=Wrapper providing Wireless Extensions for Broadcom wl module
19 A wrapper module
, that provides Wireless Extension support for the
\\\
20 proprietary Broadcom wl module.
21 VERSION
:=$(LINUX_VERSION
)+$(BOARD
)-$(PKG_RELEASE
)
24 define Package
/kmod-wlcompat-debug
25 $(call Package
/kmod-wlcompat
)
26 TITLE
:=Wrapper providing Wireless Extensions for Broadcom wl module
(debug
)
28 A wrapper module
, that provides Wireless Extension support for the
\\\
29 proprietary Broadcom wl module.
33 mkdir
-p
$(PKG_BUILD_DIR
)
34 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
38 $(MAKE
) -C
"$(LINUX_DIR)" \
39 CROSS_COMPILE
="$(TARGET_CROSS)" \
40 ARCH
="$(LINUX_KARCH)" \
41 PATH
="$(TARGET_PATH)" \
42 SUBDIRS
="$(PKG_BUILD_DIR)" \
43 EXTRA_CFLAGS
="-DDEBUG -I$(LINUX_DIR)/arch/mips/bcm947xx/include -I$(PKG_BUILD_DIR)/include" \
45 mv
$(PKG_BUILD_DIR
)/wlcompat.o
$(PKG_BUILD_DIR
)/wlcompat-debug.o
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
="-I$(LINUX_DIR)/arch/mips/bcm947xx/include -I$(PKG_BUILD_DIR)/include" \
55 define Package
/kmod-wlcompat
/install
56 install -d
-m0755
$(1)/etc
/modules.d
57 echo
"wlcompat" > $(1)/etc
/modules.d
/30-wlcompat
58 install -d
-m0755
$(1)/lib
/modules
/$(LINUX_VERSION
)
59 $(CP
) $(PKG_BUILD_DIR
)/wlcompat.o
$(1)/lib
/modules
/$(LINUX_VERSION
)/
62 define Package
/kmod-wlcompat-debug
/install
63 install -d
-m0755
$(1)/lib
/modules
/$(LINUX_VERSION
)
64 $(CP
) $(PKG_BUILD_DIR
)/wlcompat-debug.o
$(1)/lib
/modules
/$(LINUX_VERSION
)/
67 $(eval
$(call BuildPackage
,kmod-wlcompat
))
68 $(eval
$(call BuildPackage
,kmod-wlcompat-debug
))