Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 #
- 2 # Copyright (C) 2006-2009 OpenWrt.org
- 3 #
- 4 # This is free software, licensed under the GNU General Public License v2.
- 5 # See /LICENSE for more information.
- 6 #
- 7
- 8 include $(TOPDIR)/rules.mk
- 9 include $(INCLUDE_DIR)/kernel.mk
- 10
- 11 PKG_NAME:=cypressfmac
- 12 PKG_RELEASE:=1
- 13
- 14 include $(INCLUDE_DIR)/package.mk
- 15
- 16 define KernelPackage/$(PKG_NAME)
- 17 SUBMENU:=Wireless Drivers
- 18 TITLE:=latest brcmfmac by Cypress
- 19 DEPENDS+= @USB_SUPPORT +kmod-cfg80211 +kmod-usb-core
- 20 AUTOLOAD:=$(call AutoLoad,70,brcm)
- 21 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/broadcom/brcm80211/brcmutil/brcmutil.ko
- 22 FILES+=$(PKG_BUILD_DIR)/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko
- 23 FILES+=$(PKG_BUILD_DIR)/compat/compat.ko
- 24 endef
- 25
- 26 define Build/Prepare
- 27 $(CP) ./src/v5.4.18-backports/* $(PKG_BUILD_DIR)/
- 28 endef
- 29
- 30 define Build/Configure
- 31 $(MAKE) -C "$(PKG_BUILD_DIR)" \
- 32 CROSS_COMPILE="$(TARGET_CROSS)" \
- 33 ARCH="$(LINUX_KARCH)" \
- 34 KLIB="$(LINUX_DIR)" \
- 35 KLIB_BUILD="$(LINUX_DIR)" \
- 36 EXTRA_CFLAGS="$(BUILDFLAGS)" \
- 37 defconfig-brcmfmac
- 38 endef
- 39
- 40 define Build/Compile
- 41 $(MAKE) -C "$(PKG_BUILD_DIR)" \
- 42 CROSS_COMPILE="$(TARGET_CROSS)" \
- 43 ARCH="$(LINUX_KARCH)" \
- 44 KLIB="$(LINUX_DIR)" \
- 45 KLIB_BUILD="$(LINUX_DIR)" \
- 46 EXTRA_CFLAGS="$(BUILDFLAGS)" \
- 47 modules
- 48 endef
- 49
- 50 $(eval $(call KernelPackage,$(PKG_NAME)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement