Skip to content

Commit

Permalink
fixing stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Dec 30, 2023
1 parent 714b996 commit 50b4c68
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ RTL_8812AU_BRANCH=v5.2.20
RTL_8812BU_REPO=https://github.com/OpenHD/rtl88x2bu
RTL_8812BU_BRANCH=master

RTL_8853BU_REPO=https://github.com/raphaelscholle/rtl8853bu
RTL_8853BU_BRANCH=main
RTL_8852BU_REPO=https://github.com/raphaelscholle/rtl8852bu
RTL_8852BU_BRANCH=main
# Testing Driver, not verified, yet

RTL_8188EUS_REPO=https://github.com/gglluukk/rtl8188eus
Expand Down Expand Up @@ -132,7 +132,7 @@ build_pi_kernel() {
# Build Realtek drivers
build_rtl8812au_driver
build_rtl8812bu_driver
build_rtl8853bu_driver
build_rtl8852bu_driver
build_rtl8188eus_driver
#build_reterminal_driver

Expand Down Expand Up @@ -252,7 +252,7 @@ prepare_build() {
cd $SRC_DIR/workdir/mods/
fetch_rtl8812au_driver
fetch_rtl8812bu_driver
fetch_rtl8853bu_driver
fetch_rtl8852bu_driver
fetch_rtl8188eus_driver
fetch_v4l2loopback_driver
#fetch_reterminal_driver
Expand Down
20 changes: 10 additions & 10 deletions scripts/realtek.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,17 @@ function build_rtl8812bu_driver() {

# ========================================================== #

function fetch_rtl88532bu_driver() {
function fetch_rtl8852bu_driver() {

if [[ ! "$(ls -A rtl8853bu)" ]]; then
echo "Download the rtl8853bu driver"
git clone ${RTL_8853BU_REPO} || exit 1
if [[ ! "$(ls -A rtl8852bu)" ]]; then
echo "Download the rtl8852bu driver"
git clone ${RTL_8852BU_REPO} || exit 1
fi

pushd rtl8853bu
pushd rtl8852bu
git fetch || exit 1
git reset --hard || exit 1
git checkout ${RTL_8853BU_BRANCH} || exit 1
git checkout ${RTL_8852BU_BRANCH} || exit 1
git pull || exit 1

if [[ "${PLATFORM}" == "pi" ]]; then
Expand All @@ -124,13 +124,13 @@ function fetch_rtl88532bu_driver() {
popd
}

function build_rtl8853bu_driver() {
pushd rtl8853bu
function build_rtl8852bu_driver() {
pushd rtl8852bu
make clean || exit 1
make KSRC=${LINUX_DIR} -j $J_CORES M=$(pwd) modules || exit 1

mkdir -p ${PACKAGE_DIR}/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless/realtek/rtl8853bu || exit 1
install -p -m 644 8853bu.ko "${PACKAGE_DIR}/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless/realtek/rtl8853bu/" || exit 1
mkdir -p ${PACKAGE_DIR}/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless/realtek/rtl8852bu || exit 1
install -p -m 644 8852bu.ko "${PACKAGE_DIR}/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless/realtek/rtl8852bu/" || exit 1
popd
}

Expand Down

0 comments on commit 50b4c68

Please sign in to comment.