mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-02 06:26:20 -04:00
Update supported kernels to latest wireless regulations database
Applies for ~43 kernel trees Source: wireless-regdb-2022.04.08 Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
163a162568
commit
d4dceffa60
9 changed files with 1774 additions and 0 deletions
|
@ -575,6 +575,17 @@ enableAutoVarInit() {
|
|||
}
|
||||
export -f enableAutoVarInit;
|
||||
|
||||
updateRegDb() {
|
||||
cd "$DOS_BUILD_BASE$1";
|
||||
#Latest database cannot be used due to differing flags, only update supported kernels
|
||||
if echo "d9ef5910b573c634fa7845bb6511ba89 net/wireless/genregdb.awk" | md5sum --check --quiet &>/dev/null; then
|
||||
cp "$DOS_PATCHES_COMMON/wireless-regdb/db.txt" "net/wireless/db.txt";
|
||||
echo "regdb: updated for $1";
|
||||
fi;
|
||||
cd "$DOS_BUILD_BASE";
|
||||
}
|
||||
export -f updateRegDb;
|
||||
|
||||
disableEnforceRRO() {
|
||||
cd "$DOS_BUILD_BASE$1";
|
||||
awk -i inplace '!/PRODUCT_ENFORCE_RRO_TARGETS .= framework-res/' *.mk &>/dev/null || true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue