Skip to content

Commit

Permalink
batman-adv: tweak the Makefile for dynamically patch 'main.h' via 'se…
Browse files Browse the repository at this point in the history
…d' by inserting '#undef CONFIG_MODULE_STRIPPED' - so the intelligent OpenWrt-optimizer will not destroy important module-metadata. remove the old patch which does the same, but needed rebasing everything main.h changes. compile and run-tested on ar71xx
  • Loading branch information
Bastian Bittorf committed Oct 8, 2013
1 parent 1cccda8 commit 1c0b315
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 33 deletions.
7 changes: 7 additions & 0 deletions batman-adv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ define Build/Patch
$(BATCTL_PATCH)
endef

define Build/Prepare
$(call Build/Prepare/Default)
$(SED) '/#define _NET_BATMAN_ADV_MAIN_H_/a\#undef CONFIG_MODULE_STRIPPED' \
$(PKG_BUILD_DIR)/main.h
endef


define Build/Compile
$(MAKE) -C "$(PKG_BUILD_DIR)" $(MAKE_BATMAN_ADV_ARGS)
$(BATCTL_BUILD)
Expand Down

This file was deleted.

0 comments on commit 1c0b315

Please sign in to comment.