mirror of https://github.com/armbian/build.git
BananaPi BPI-M4-Zero: Install upstream wireless-regdb
Prevent dmesg spam: brcmf_set_channel set chanspec xxxxxxx fail Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
This commit is contained in:
parent
2a38243de9
commit
bc19c134ef
|
@ -23,3 +23,18 @@ function post_family_tweaks_bsp__bananapi_firmware() {
|
|||
cp -fr $SRC/packages/bsp/bananapi/rtl_bt/* "${destination}"/lib/firmware/updates/rtl_bt/
|
||||
fi
|
||||
}
|
||||
|
||||
function post_family_tweaks_bsp__bananapi_wireless_regdb() {
|
||||
if [[ `curl -I https://git.kernel.org 2>&1 | grep 'HTTP/2 200'` ]]; then
|
||||
mkdir -p $SRC/cache
|
||||
git clone --depth=1 -q https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git $SRC/cache/wireless-regdb
|
||||
sleep .25
|
||||
if [[ -f "$SRC/cache/wireless-regdb/regulatory.db" ]] && [[ -f "$SRC/cache/wireless-regdb/regulatory.db.p7s" ]]; then
|
||||
display_alert "$BOARD" "Installing upstream wireless-regdb" "info"
|
||||
mkdir -p "${destination}"/lib/firmware/updates
|
||||
cp -f $SRC/cache/wireless-regdb/regulatory.db "${destination}"/lib/firmware/updates/regulatory.db
|
||||
cp -f $SRC/cache/wireless-regdb/regulatory.db.p7s "${destination}"/lib/firmware/updates/regulatory.db.p7s
|
||||
fi
|
||||
rm -fdr $SRC/cache/wireless-regdb
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue