upgrade the ixp4xx ethernet driver to v0.3.1, split the Gateway 7001 support to two...
[openwrt.git] / package / d80211 / 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-d80211
13 PKG_VERSION:=20070201
14
15 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define KernelPackage/d80211
20 SUBMENU:=Wireless Drivers
21 DEPENDS:=@LINUX_2_6 kmod-crypto
22 TITLE:=DeviceScape 802.11 stack
23 DESCRIPTION:=DeviceScape 802.11 stack
24 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(LINUX_RELEASE)
25 FILES:=$(PKG_BUILD_DIR)/*.ko
26 AUTOLOAD:=$(call AutoLoad,20,d80211 rc80211_simple)
27 endef
28
29 define Build/Prepare
30 mkdir -p $(PKG_BUILD_DIR)
31 $(CP) ./src/* $(PKG_BUILD_DIR)/
32 $(SED) 's,INIT_WORK(,INIT_WORK_NEW(,g' $(PKG_BUILD_DIR)/*.[ch]
33 endef
34
35 define Build/Compile
36 $(MAKE) -C "$(LINUX_DIR)" \
37 CROSS_COMPILE="$(TARGET_CROSS)" \
38 ARCH="$(LINUX_KARCH)" \
39 SUBDIRS="$(PKG_BUILD_DIR)" \
40 EXTRA_CFLAGS="-I$(PKG_BUILD_DIR)/include -include compat_hacks.h" \
41 modules
42 endef
43
44 define Build/InstallDev
45 mkdir -p $(STAGING_DIR)/usr/include
46 $(CP) ./src/include/* $(STAGING_DIR)/usr/include/
47 endef
48
49 define Build/UninstallDev
50 rm -f $(STAGING_DIR)/usr/include/net/d80211*
51 rm -f $(STAGING_DIR)/usr/include/compat_hacks.h
52 rm -f $(STAGING_DIR)/usr/include/linux/ieee80211*
53 endef
54
55 $(eval $(call KernelPackage,d80211))
This page took 0.044302 seconds and 5 git commands to generate.