Skip to content

Commit

Permalink
build the driver for the add-on USB WiFi dongle
Browse files Browse the repository at this point in the history
  • Loading branch information
thefossguy committed Mar 7, 2023
1 parent 7bc50e1 commit debc93f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export KBUILD_BUILD_USER=$pkgbase
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"

prepare() {
[[ -d "eswin_6600u" ]] || git clone --depth 1 https://github.com/eswincomputing/eswin_6600u
[[ -d "$_srcname" ]] || git clone --depth 1 --branch JH7110_VisionFive2_devel \
"https://github.com/starfive-tech/linux.git" "$_srcname"
cd $_srcname
Expand All @@ -58,8 +59,14 @@ prepare() {
}

build() {
# make kernel
cd $_srcname
make all -j$(nproc)

# make the USB WiFi dongle driver
cd ../eswin_6600u
make KERNELDIR=../$_srcname KBUILDDIR=../$_srcname product=6600u
mv wlan_ecr6600u_usb.ko ../$_srcname/drivers/net/wireless/eswin/wlan_ecr6600u_usb.ko
}

_package() {
Expand Down

0 comments on commit debc93f

Please sign in to comment.