batman-adv: move CONFIG_MODULE_STRIPPED hack to compat-hacks.h 221/head
authorMatthias Schiffer <mschiffer@universe-factory.net>
Mon, 8 Aug 2016 15:05:33 +0000 (17:05 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 9 Aug 2016 00:20:34 +0000 (02:20 +0200)
The CONFIG_MODULE_STRIPPED hack broke some time ago, as it is undefined too
late (after the headers using it have been included by compat-hacks.h).

Undefine CONFIG_MODULE_STRIPPED at the top of compat-hacks.h instead to
make the module version available to batctl again.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
batman-adv/Makefile
batman-adv/files/compat-hacks.h

index c45cbb4883f6a2761df700894e819ecb7aa50f84..5d5f6ac59e66526083fa0e518ba6aa36fc446af8 100644 (file)
@@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=batman-adv
 
 PKG_VERSION:=2016.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_MD5SUM:=dd1ab664475902fc3dbf34998bbe5a90
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
@@ -83,8 +83,6 @@ endef
 define Build/Prepare
        $(call Build/Prepare/Default)
        $(CP) ./files/compat-hacks.h $(PKG_BUILD_DIR)/
-       $(SED) '/#define _NET_BATMAN_ADV_MAIN_H_/a\#undef CONFIG_MODULE_STRIPPED' \
-               $(PKG_BUILD_DIR)/net/batman-adv/main.h
 endef
 
 define Build/Clean
index a910c2d9ae2db784656071119e85bf47db9988a2..cdf397d9ade203c09ec8312bbd3ce02053c5d8fc 100644 (file)
@@ -1,5 +1,7 @@
 /* Please avoid adding hacks here - instead add it to mac80211/backports.git */
 
+#undef CONFIG_MODULE_STRIPPED
+
 #include <linux/version.h>     /* LINUX_VERSION_CODE */
 #include <linux/types.h>