batman-adv: Simplify installation of files
authorSven Eckelmann <sven@narfation.org>
Tue, 17 Jul 2018 19:20:14 +0000 (21:20 +0200)
committerSven Eckelmann <sven@narfation.org>
Tue, 17 Jul 2018 19:23:54 +0000 (21:23 +0200)
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>
batman-adv/Makefile
batman-adv/files/lib/netifd/proto/batadv.sh [changed mode: 0644->0755]
batman-adv/files/lib/netifd/proto/batadv_vlan.sh [changed mode: 0644->0755]

index 1cab1d0aad624e71130c56619d05658c032d8707..3885a31568539b364b832ce9bcdfb9b5fe02a078 100644 (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))
old mode 100644 (file)
new mode 100755 (executable)