@ -1,7 +1,7 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := mt76
PKG_NAME := mt76
PKG_RELEASE = 1
PKG_RELEASE = 2
PKG_LICENSE := GPLv2
PKG_LICENSE := GPLv2
PKG_LICENSE_FILES :=
PKG_LICENSE_FILES :=
@ -20,17 +20,44 @@ STAMP_CONFIGURED_DEPENDS := $(STAGING_DIR)/usr/include/mac80211-backport/backpor
i n c l u d e $( INCLUDE_DIR ) / k e r n e l . m k
i n c l u d e $( INCLUDE_DIR ) / k e r n e l . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e K e r n e l P a c k a g e / m t 7 6
d e f i n e K e r n e l P a c k a g e / m t 7 6 - d e f a u l t
SUBMENU:= Wireless Drivers
SUBMENU:= Wireless Drivers
TITLE:= MediaTek MT76x2/MT7603 wireless driver
DEPENDS:= \
DEPENDS:= \
+kmod-mac80211 @PCI_SUPPORT @!LINUX_3_18 \
+kmod-mac80211 @PCI_SUPPORT @!LINUX_3_18 \
+@DRIVER_11AC_SUPPORT +@DRIVER_11N_SUPPORT +@DRIVER_11W_SUPPORT
+@DRIVER_11AC_SUPPORT +@DRIVER_11N_SUPPORT +@DRIVER_11W_SUPPORT
e n d e f
d e f i n e K e r n e l P a c k a g e / m t 7 6
SUBMENU:= Wireless Drivers
TITLE:= MediaTek MT76x2/MT7603 wireless driver ( metapackage)
DEPENDS:= \
+kmod-mt76-core +kmod-mt76x2 +kmod-mt7603
e n d e f
d e f i n e K e r n e l P a c k a g e / m t 7 6 - c o r e
$( KernelPackage/mt76-default)
TITLE:= MediaTek MT76xx wireless driver
FILES:= \
$( PKG_BUILD_DIR) /mt76.ko
AUTOLOAD:= $( call AutoLoad,50,mac80211 mt76)
e n d e f
d e f i n e K e r n e l P a c k a g e / m t 7 6 x 2
$( KernelPackage/mt76-default)
TITLE:= MediaTek MT76x2 wireless driver
DEPENDS += +kmod-mt76-core
FILES:= \
$( PKG_BUILD_DIR) /mt76x2e.ko
AUTOLOAD:= $( call AutoLoad,51,mt76x2e)
e n d e f
d e f i n e K e r n e l P a c k a g e / m t 7 6 0 3
$( KernelPackage/mt76-default)
TITLE:= MediaTek MT7603 wireless driver
DEPENDS += +kmod-mt76-core
FILES:= \
FILES:= \
$( PKG_BUILD_DIR) /mt76.ko \
$( PKG_BUILD_DIR) /mt76x2e.ko \
$( PKG_BUILD_DIR) /mt7603e.ko
$( PKG_BUILD_DIR) /mt7603e.ko
AUTOLOAD:= $( call AutoLoad,50,mac80211 mt76 mt76x2e mt7603e)
AUTOLOAD:= $( call AutoLoad,51,mt7603e)
e n d e f
e n d e f
NOSTDINC_FLAGS = \
NOSTDINC_FLAGS = \
@ -55,18 +82,27 @@ define Build/Compile
modules
modules
e n d e f
e n d e f
d e f i n e K e r n e l P a c k a g e / m t 7 6 /i n s t a l l
d e f i n e K e r n e l P a c k a g e / m t 7 6 x2 /i n s t a l l
$( INSTALL_DIR) $( 1) /lib/firmware
$( INSTALL_DIR) $( 1) /lib/firmware
cp \
cp \
$( if $( CONFIG_TARGET_ramips_mt7628) || $( CONFIG_TARGET_ramips_mt7688) , \
$( PKG_BUILD_DIR) /firmware/mt7628_e1.bin \
$( PKG_BUILD_DIR) /firmware/mt7628_e2.bin \
) \
$( PKG_BUILD_DIR) /firmware/mt7603_e1.bin \
$( PKG_BUILD_DIR) /firmware/mt7603_e2.bin \
$( PKG_BUILD_DIR) /firmware/mt7662_rom_patch.bin \
$( PKG_BUILD_DIR) /firmware/mt7662_rom_patch.bin \
$( PKG_BUILD_DIR) /firmware/mt7662.bin \
$( PKG_BUILD_DIR) /firmware/mt7662.bin \
$( 1) /lib/firmware
$( 1) /lib/firmware
e n d e f
e n d e f
d e f i n e K e r n e l P a c k a g e / m t 7 6 0 3 / i n s t a l l
$( INSTALL_DIR) $( 1) /lib/firmware
cp $( if $( CONFIG_TARGET_ramips_mt7628) $( CONFIG_TARGET_ramips_mt7688) , \
$( PKG_BUILD_DIR) /firmware/mt7628_e1.bin \
$( PKG_BUILD_DIR) /firmware/mt7628_e2.bin \
,\
$( PKG_BUILD_DIR) /firmware/mt7603_e1.bin \
$( PKG_BUILD_DIR) /firmware/mt7603_e2.bin \
) \
$( 1) /lib/firmware
e n d e f
$( eval $ ( call KernelPackage ,mt 76-core ) )
$( eval $ ( call KernelPackage ,mt 76x 2) )
$( eval $ ( call KernelPackage ,mt 7603) )
$( eval $ ( call KernelPackage ,mt 76) )
$( eval $ ( call KernelPackage ,mt 76) )