From 0a784cb9b7a4e51046c293dbefa33ba53c4fa9b1 Mon Sep 17 00:00:00 2001 From: Viacheslav Bocharov Date: Tue, 30 Jan 2024 13:31:32 +0300 Subject: [PATCH] Add blacklist rtw88 for JetHub H1/D1/D1+ --- config/sources/families/jethub.conf | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/config/sources/families/jethub.conf b/config/sources/families/jethub.conf index b0d1d81940..605b97530c 100644 --- a/config/sources/families/jethub.conf +++ b/config/sources/families/jethub.conf @@ -1,7 +1,7 @@ # # SPDX-License-Identifier: GPL-2.0 # -# Copyright (c) 2019-2023 JetHome +# Copyright (c) 2019-2024 JetHome # Author: Viacheslav Bocharov # # This file is a part of the Armbian Build Framework @@ -25,6 +25,18 @@ elif [[ "$BOARD" == "jethubj100" ]]; then OFFSET=126 fi + +if [[ "$BOARD" == "jethubj80" ]] || [[ "$BOARD" == "jethubj100" ]] ; then + function family_tweaks__blacklistrtw88() { + if [[ "$BOARD" == jethubj80 ]] || [[ "$BOARD" == jethubj100 ]]; then + mkdir -p "${destination}"/etc/modprobe.d + echo "blacklist rtw88_8822cs" > "${destination}"/etc/modprobe.d/rtw88_8822cs.conf + fi + display_alert "Added rtw88_8822cs to blacklist" "${BOARD}" "info" + } +fi + + # JetHub builds userspace tooling with c++ (gpp) toolchain in buildjethomecmds() below. # The C++ compiler is no longer included by default in the Armbian build system. # Enable the extension that brings includes it. It could've been an inline extension (eg: the function right here),