Browse Source

batman-adv-legacy: restore Build/Prepare step

Fixes the missing /sys/module/batman_adv/version file used by various tools
to show the batman-adv module version number.
pull/222/head
Matthias Schiffer 3 years ago
parent
commit
3dd5522889
No known key found for this signature in database GPG Key ID: 16EF3F64CB201D9C
  1. 6
      net/batman-adv-legacy/Makefile

6
net/batman-adv-legacy/Makefile

@ -55,6 +55,12 @@ MAKE_FLAGS += \
CONFIG_BATMAN_ADV_NC=$(if $(CONFIG_KMOD_BATMAN_ADV_LEGACY_NC),y,n) \
REVISION="" all
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 KernelPackage/batman-adv-legacy/install
$(INSTALL_DIR) $(1)/etc/config $(1)/etc/hotplug.d/net $(1)/etc/hotplug.d/iface $(1)/lib/batman-adv $(1)/usr/sbin $(1)/lib/netifd/proto
$(INSTALL_DATA) ./files/etc/config/batman-adv $(1)/etc/config

Loading…
Cancel
Save