2007-06-21 23:45:45 +03:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id: Makefile 7440 2007-06-02 02:22:01Z nbd $
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
|
|
PKG_NAME:=bcm43xx-mac80211
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2007-08-30 17:19:31 +03:00
|
|
|
ifeq ($(DUMP),)
|
|
|
|
include $(LINUX_DIR)/.config
|
|
|
|
endif
|
2007-06-21 23:45:45 +03:00
|
|
|
|
|
|
|
define KernelPackage/bcm43xx-mac80211
|
2007-08-30 17:19:31 +03:00
|
|
|
SUBMENU:=Wireless Drivers
|
2007-06-21 23:45:45 +03:00
|
|
|
TITLE:=Broadcom 43xx wireless support
|
|
|
|
DESCRIPTION:=Kernel module for Broadcom 43xx wireless support (mac80211)
|
2007-09-06 19:27:37 +03:00
|
|
|
DEPENDS:=@TARGET_BRCM47XX +kmod-mac80211
|
2007-08-30 17:19:31 +03:00
|
|
|
KCONFIG:=CONFIG_MAC80211
|
|
|
|
FILES:=$(PKG_BUILD_DIR)/bcm43xx-mac80211.$(LINUX_KMOD_SUFFIX)
|
2007-06-21 23:45:45 +03:00
|
|
|
# AUTOLOAD:=$(call AutoLoad,30,bcm43xx-mac80211)
|
|
|
|
endef
|
|
|
|
|
2007-08-30 17:19:31 +03:00
|
|
|
ifneq ($(CONFIG_MAC80211),)
|
2007-06-21 23:45:45 +03:00
|
|
|
|
2007-08-30 17:19:31 +03:00
|
|
|
PKG_EXTRA_KCONFIG:= \
|
|
|
|
CONFIG_BCM43XX_MAC80211=m \
|
|
|
|
CONFIG_BCM43XX_MAC80211_PCI=y \
|
|
|
|
CONFIG_BCM43XX_MAC80211_DEBUG=y \
|
|
|
|
CONFIG_BCM43XX_MAC80211_DMA=y \
|
|
|
|
CONFIG_BCM43XX_MAC80211_PIO=y \
|
|
|
|
CONFIG_BCM43XX_MAC80211_DMA_AND_PIO_MODE=y \
|
|
|
|
|
|
|
|
PKG_EXTRA_CFLAGS:= \
|
|
|
|
-I$(STAGING_DIR)/usr/include/mac80211 \
|
|
|
|
$(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=m,%,$(filter %=m,$(PKG_EXTRA_KCONFIG)))) \
|
|
|
|
$(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=y,%,$(filter %=y,$(PKG_EXTRA_KCONFIG)))) \
|
|
|
|
|
|
|
|
define Build/Compile/it
|
|
|
|
$(MAKE) -C "$(LINUX_DIR)" \
|
2007-06-21 23:45:45 +03:00
|
|
|
ARCH="$(LINUX_KARCH)" \
|
2007-08-30 17:19:31 +03:00
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
2007-06-21 23:45:45 +03:00
|
|
|
SUBDIRS="$(PKG_BUILD_DIR)" \
|
2007-08-30 17:19:31 +03:00
|
|
|
$(PKG_EXTRA_KCONFIG) \
|
|
|
|
EXTRA_CFLAGS="$(PKG_EXTRA_CFLAGS)" \
|
|
|
|
V="$(V)" \
|
2007-06-21 23:45:45 +03:00
|
|
|
modules
|
2007-06-22 07:55:38 +03:00
|
|
|
endef
|
2007-08-30 17:19:31 +03:00
|
|
|
|
2007-06-22 07:55:38 +03:00
|
|
|
endif
|
2007-06-21 23:45:45 +03:00
|
|
|
|
2007-08-30 17:19:31 +03:00
|
|
|
define Build/Prepare
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
|
|
$(CP) ./src/bcm43xx/* $(PKG_BUILD_DIR)/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(call Build/Compile/it)
|
|
|
|
endef
|
|
|
|
|
2007-06-21 23:45:45 +03:00
|
|
|
$(eval $(call KernelPackage,bcm43xx-mac80211))
|