mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-18 22:43:53 +01:00
c8fea8d380
SVN-Revision: 5939
53 lines
1.2 KiB
Makefile
53 lines
1.2 KiB
Makefile
#
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
# $Id:$
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=kmod-d80211
|
|
PKG_VERSION:=20061230
|
|
|
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define KernelPackage/d80211
|
|
SUBMENU:=Wireless Drivers
|
|
DEPENDS:=@LINUX_2_6 kmod-crypto
|
|
TITLE:=DeviceScape 802.11 stack
|
|
DESCRIPTION:=DeviceScape 802.11 stack
|
|
VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(LINUX_RELEASE)
|
|
FILES:=$(PKG_BUILD_DIR)/*.ko
|
|
AUTOLOAD:=$(call AutoLoad,20,d80211 rc80211_simple)
|
|
endef
|
|
|
|
define Build/Prepare
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
$(CP) ./src/* $(PKG_BUILD_DIR)/
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C "$(LINUX_DIR)" \
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
ARCH="$(LINUX_KARCH)" \
|
|
SUBDIRS="$(PKG_BUILD_DIR)" \
|
|
EXTRA_CFLAGS="-I$(PKG_BUILD_DIR)/include" \
|
|
modules
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
mkdir -p $(STAGING_DIR)/usr/include/net
|
|
$(CP) ./src/include/net/* $(STAGING_DIR)/usr/include/net/
|
|
endef
|
|
|
|
define Build/UninstallDev
|
|
rm -f $(STAGING_DIR)/usr/include/net/d80211*
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,d80211))
|