strip the kernel version suffix from target directories, except for brcm-2.4 (the...
[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 include $(INCLUDE_DIR)/package.mk
16
17 define KernelPackage/wlcompat/Default
18 SUBMENU:=Proprietary BCM43xx WiFi driver
19 SUBMENUDEP:=@TARGET_BRCM_2_4
20 DEPENDS:=@TARGET_BRCM_2_4 @PACKAGE_kmod-brcm-wl||PACKAGE_kmod-brcm-wl-mimo +wireless-tools
21 TITLE:=Broadcom wl wrapper module
22 DESCRIPTION:=\
23 This package contains a wrapper module, that provides Wireless Extension \\\
24 support for the proprietary Broadcom wl module.
25 endef
26
27 define KernelPackage/wlcompat
28 $(call KernelPackage/wlcompat/Default)
29 FILES:=$(PKG_BUILD_DIR)/wlcompat.o
30 AUTOLOAD:=$(call AutoLoad,50,wlcompat)
31 endef
32
33 define KernelPackage/wlcompat-debug
34 $(call KernelPackage/wlcompat/Default)
35 TITLE+= (debug)
36 DESCRIPTION+=\\\
37 \\\
38 This is a debugging version.
39 FILES:=$(PKG_BUILD_DIR)/wlcompat-debug.o
40 endef
41
42 define Build/Prepare
43 mkdir -p $(PKG_BUILD_DIR)
44 $(CP) ./src/* $(PKG_BUILD_DIR)/
45 endef
46
47 define Build/Compile
48 $(MAKE) -C "$(LINUX_DIR)" \
49 CROSS_COMPILE="$(TARGET_CROSS)" \
50 ARCH="$(LINUX_KARCH)" \
51 SUBDIRS="$(PKG_BUILD_DIR)" \
52 EXTRA_CFLAGS="-DDEBUG -I$(LINUX_DIR)/arch/mips/bcm947xx/include -I$(PKG_BUILD_DIR)/include" \
53 modules
54 mv $(PKG_BUILD_DIR)/wlcompat.o $(PKG_BUILD_DIR)/wlcompat-debug.o
55 $(MAKE) -C "$(LINUX_DIR)" \
56 CROSS_COMPILE="$(TARGET_CROSS)" \
57 ARCH="$(LINUX_KARCH)" \
58 SUBDIRS="$(PKG_BUILD_DIR)" \
59 EXTRA_CFLAGS="-I$(LINUX_DIR)/arch/mips/bcm947xx/include -I$(PKG_BUILD_DIR)/include" \
60 modules
61 endef
62
63 $(eval $(call KernelPackage,wlcompat))
64 $(eval $(call KernelPackage,wlcompat-debug))
This page took 0.044193 seconds and 5 git commands to generate.