ixp4xx-2.6/config: Removed the disabling of swap so that the generic enabling of...
[openwrt.git] / package / wlcompat / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=kmod-wlcompat
13 PKG_RELEASE:=6
14
15 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)
16
17 include $(INCLUDE_DIR)/package.mk
18
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
24 DESCRIPTION:=\
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)
28 endef
29
30 define KernelPackage/wlcompat
31 $(call KernelPackage/wlcompat/Default)
32 FILES:=$(PKG_BUILD_DIR)/wlcompat.o
33 AUTOLOAD:=$(call AutoLoad,50,wlcompat)
34 endef
35
36 define KernelPackage/wlcompat-debug
37 $(call KernelPackage/wlcompat/Default)
38 TITLE+= (debug)
39 DESCRIPTION+=\\\
40 \\\
41 This is a debugging version.
42 FILES:=$(PKG_BUILD_DIR)/wlcompat-debug.o
43 endef
44
45 define Build/Prepare
46 mkdir -p $(PKG_BUILD_DIR)
47 $(CP) ./src/* $(PKG_BUILD_DIR)/
48 endef
49
50 define Build/Compile
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" \
56 modules
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" \
63 modules
64 endef
65
66 $(eval $(call KernelPackage,wlcompat))
67 $(eval $(call KernelPackage,wlcompat-debug))
This page took 0.05359 seconds and 5 git commands to generate.