Advertisement
matteoscordino

Untitled

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