nrc7292: add not-buildable S1G driver

This commit is contained in:
Rick Farina (Zero_Chaos) 2022-05-09 10:48:16 -04:00
parent b95c132ce9
commit 2db5e55919
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
3 changed files with 93 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST nrc7292-1.3.4.tar.gz 195995034 BLAKE2B f9a5d6478066a89ebcfaf8100e7316adc60374bfc17e1bffa626f5687e2fcdd76229f57535784dcdc64f81f49b10874e755dd80a46ae429923cb089f13b8d657 SHA512 3e23082515c46b7c65e79d6951e379badfc3d3b3ebb9faf47edce860276a446a3a4d4dafa8e3523a08c7027a69d3601d22c30619ad9d22d5b0994add79a02493

View file

@ -0,0 +1,46 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit linux-mod
DESCRIPTION="RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection"
HOMEPAGE="https://github.com/aircrack-ng/rtl8812au"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
#EGIT_REPO_URI="https://github.com/Gateworks/nrc7292.git"
#S="${WORKDIR}/${P}/package/host/nrc_driver/source/nrc_driver/nrc"
EGIT_REPO_URI="https://github.com/newracom/nrc7292_sw_pkg.git"
S="${WORKDIR}/${P}/package/host/src/nrc"
else
SRC_URI="https://github.com/newracom/nrc7292_sw_pkg/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
#KEYWORDS="~amd64 ~x86"
S="${WORKDIR}/nrc7292_sw_pkg-${PV}/package/host/nrc_driver/source/nrc_driver/nrc"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="kernel_linux"
DEPEND=""
# compile against selected (not running) target
pkg_setup() {
if use kernel_linux; then
BUILD_TARGETS="clean modules"
MODULE_NAMES="nrc7292(misc:)"
BUILD_PARAMS="KVER=${KV_FULL} KSRC=${KERNEL_DIR} V=1"
linux-mod_pkg_setup
else
die "Could not determine proper ${PN} package"
fi
}
src_prepare() {
sed -i 's# -Werror##' Makefile || die
default
}

View file

@ -0,0 +1,46 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit linux-mod
DESCRIPTION="RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection"
HOMEPAGE="https://github.com/aircrack-ng/rtl8812au"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
#EGIT_REPO_URI="https://github.com/Gateworks/nrc7292.git"
#S="${WORKDIR}/${P}/package/host/nrc_driver/source/nrc_driver/nrc"
EGIT_REPO_URI="https://github.com/newracom/nrc7292_sw_pkg.git"
S="${WORKDIR}/${P}/package/host/src/nrc"
else
SRC_URI="https://github.com/newracom/nrc7292_sw_pkg/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
#KEYWORDS="~amd64 ~x86"
S="${WORKDIR}/nrc7292_sw_pkg-${PV}/package/host/nrc_driver/source/nrc_driver/nrc"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="kernel_linux"
DEPEND=""
# compile against selected (not running) target
pkg_setup() {
if use kernel_linux; then
BUILD_TARGETS="clean modules"
MODULE_NAMES="nrc7292(misc:)"
BUILD_PARAMS="KVER=${KV_FULL} KSRC=${KERNEL_DIR} V=1"
linux-mod_pkg_setup
else
die "Could not determine proper ${PN} package"
fi
}
src_prepare() {
sed -i 's# -Werror##' Makefile || die
default
}