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