diff --git a/net-wireless/mt76x0/Manifest b/net-wireless/mt76x0/Manifest new file mode 100644 index 0000000000000000000000000000000000000000..a52de9bdea9ad66c97837d7c5dd36cbc46eb31a1 --- /dev/null +++ b/net-wireless/mt76x0/Manifest @@ -0,0 +1,2 @@ +AUX mt76x0-9999_usb_h-firmware-location.patch 279 BLAKE2B b2d2c1851ab414716049bcde6c98b4129dce39b24702bdad304efdd1915800e83594995c9e262b227976f7a9d937dc5e6db1ddfd84677f6e4f0bfc39e9c02184 SHA512 f257eaa4f24b704bccd345031f2e7f16d58a3c98173a5b2e7079a3c1878c3374d3c6891dfc2020c98745c0dd19953d2201193f66f4569943039c469dc7bfbaf5 +EBUILD mt76x0-9999.ebuild 552 BLAKE2B 5de769a87275ec3834041ed2cfddbb32135e003a713d820445be8af994bf1dbbea3b3c878e058941e300080e339f12b13399ddddff68d315d0f48bb8ed207c99 SHA512 7e59b83cff9cc4f56c139a0cb727126260a9e30b95ba10a242449e23605acc1c32efbeb35da370a3babba82a1e7c7ee7f54d1406a041d15c717c6622c7a87cb2 diff --git a/net-wireless/mt76x0/files/mt76x0-9999_usb_h-firmware-location.patch b/net-wireless/mt76x0/files/mt76x0-9999_usb_h-firmware-location.patch new file mode 100644 index 0000000000000000000000000000000000000000..f655dd2249a75b4ca406bbb13c53fddbe2be347a --- /dev/null +++ b/net-wireless/mt76x0/files/mt76x0-9999_usb_h-firmware-location.patch @@ -0,0 +1,13 @@ +diff --git a/usb.h b/usb.h +index 43273bb..91a22af 100644 +--- a/usb.h ++++ b/usb.h +@@ -16,7 +16,7 @@ + + #include "mt76x0.h" + +-#define MT7610_FIRMWARE "mt7610.bin" ++#define MT7610_FIRMWARE "mediatek/mt7610u.bin" + + #define MT_VEND_REQ_MAX_RETRY 10 + #define MT_VEND_REQ_TOUT_MS 300 diff --git a/net-wireless/mt76x0/mt76x0-9999.ebuild b/net-wireless/mt76x0/mt76x0-9999.ebuild new file mode 100644 index 0000000000000000000000000000000000000000..715a538610be036f8a5db218bc902fcf382135e2 --- /dev/null +++ b/net-wireless/mt76x0/mt76x0-9999.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit linux-info linux-mod git-r3 + +DESCRIPTION="Linux mt76x0 driver" +HOMEPAGE="https://github.com/sgruszka/mt76x0" +EGIT_REPO_URI="https://github.com/sgruszka/mt76x0.git" +#EGIT_COMMIT="c33ddb05a77741d2a9c9b974ad0cf0fa26d17b6e" + +LICENSE="GPL-2" +SLOT="0" +#KEYWORDS="~amd64 ~x86" +IUSE="" + +MODULE_NAMES="mt76x0(net/wireless:)" +BUILD_TARGETS="all" + +src_prepare() { + epatch "${FILESDIR}"/${P}_usb_h-firmware-location.patch + default +}