Add support NSS build

This commit is contained in:
remittor
2023-08-15 15:52:13 +03:00
parent b5798d42f8
commit a90b073434
4 changed files with 65 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
#!/bin/bash
XSUPPORTEDVER=21
XSUPPORTEDVER=23
XREPOADDR=https://github.com/openwrt-xiaomi
XDEFBRANCH=xq-21.02.3
XDEFBRANCH=xq-23.05.0
logmsg() {
echo "$@"
@@ -19,6 +19,18 @@ die() {
#[ ! -d "$XDIR" ] && die "Base directory not defined"
is_nss_repo() {
local FN=$1/package/kernel/mac80211/Makefile
if [ ! -f "$FN" ]; then
return $(false)
fi
if [ $( grep -q "kmod-qca-nss-drv" $FN >/dev/null; echo "$?" ) != "0" ]; then
return $(false)
fi
return $(true)
}
get_cfg_inc_lst() {
local cfg=$1
local k=$( grep -o -P '(?<=^#include ).*' "$cfg" 2> /dev/null )
@@ -82,4 +94,3 @@ get_cfg_pkg_flag() {
echo "$k"
}