batman-adv: Simplify installation of files

It is not necessary to install each file manually to the target path. A
simple recursive copy is enough.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
Sven Eckelmann 2018-07-17 21:20:14 +02:00
parent 303c282565
commit 7a9336380a
3 changed files with 1 additions and 6 deletions

View File

@ -86,12 +86,7 @@ define Build/Compile
endef
define KernelPackage/batman-adv/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
$(INSTALL_DATA) ./files/lib/batman-adv/config.sh $(1)/lib/batman-adv
$(INSTALL_BIN) ./files/etc/hotplug.d/net/99-batman-adv $(1)/etc/hotplug.d/net
$(INSTALL_BIN) ./files/lib/netifd/proto/batadv.sh $(1)/lib/netifd/proto
$(INSTALL_BIN) ./files/lib/netifd/proto/batadv_vlan.sh $(1)/lib/netifd/proto
$(CP) ./files/. $(1)/
endef
$(eval $(call KernelPackage,batman-adv))

0
batman-adv/files/lib/netifd/proto/batadv.sh Normal file → Executable file
View File

0
batman-adv/files/lib/netifd/proto/batadv_vlan.sh Normal file → Executable file
View File