When building with CONFIG_CFG80211_INTERNAL_REGDB set there is a db.txt
and genregdb.awk needed. $(srctree) contains the position of the kernel
source and not the position of the compat-wireless root directory.
Reported-by: Ed W <lists@wildgooses.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
# CONFIG_NL80211_TESTMODE=y
# CONFIG_CFG80211_DEVELOPER_WARNINGS=y
# CONFIG_CFG80211_REG_DEBUG=y
+# CONFIG_CFG80211_INTERNAL_REGDB=y
# See below for wext stuff
CONFIG_LIB80211=m
BRCMUTIL_OFILES := \
utils.o \
+--- a/net/wireless/Makefile
++++ b/net/wireless/Makefile
+@@ -18,6 +18,6 @@ cfg80211-$(CONFIG_CFG80211_INTERNAL_REGD
+ ccflags-y += -D__CHECK_ENDIAN__
+
+ $(obj)/regdb.c: $(src)/db.txt $(src)/genregdb.awk
+- @$(AWK) -f $(srctree)/$(src)/genregdb.awk < $< > $@
++ @$(AWK) -f $(src)/genregdb.awk < $< > $@
+
+ clean-files := regdb.c
rm -f net/$i/*.mod.c
done
+# Copy files needed for statically compiled regulatory rules database
+cp $GIT_TREE/net/wireless/db.txt net/wireless/
+cp $GIT_TREE/net/wireless/genregdb.awk net/wireless/
+
# net/bluetooth
for i in $NET_BT_DIRS; do
mkdir -p net/$i