[rdkb][common][app][Refactor wireless-regdb BB file]
[Description]
Refactor wireless-regdb BB file
1. when db.txt is patched, regulatory.db must regen
[Release-log]
diff --git a/recipes-kernel/wireless-regdb/wireless-regdb_2022.06.06.bb b/recipes-kernel/wireless-regdb/wireless-regdb_2022.06.06.bb
index 4035805..b4e4ad2 100644
--- a/recipes-kernel/wireless-regdb/wireless-regdb_2022.06.06.bb
+++ b/recipes-kernel/wireless-regdb/wireless-regdb_2022.06.06.bb
@@ -10,7 +10,13 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/files/patches:"
require files/patches/patches.inc
-inherit bin_package allarch
+inherit bin_package allarch pythonnative
+
+S = "${WORKDIR}/${PN}-${PV}"
+
+do_install_prepend() {
+ (python ${S}/db2fw.py ${S}/regulatory.db ${S}/db.txt)
+}
do_install() {
install -d -m0755 ${D}${nonarch_libdir}/crda