diff mbox series

[OpenWrt-Devel] netifd: install binary from ipkg-install

Message ID 20200220034331.472229-1-rosenp@gmail.com
State New
Headers show
Series [OpenWrt-Devel] netifd: install binary from ipkg-install | expand

Commit Message

Rosen Penev Feb. 20, 2020, 3:43 a.m. UTC
This works with CMAKE_BINARY_SUBDIR.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 package/network/config/netifd/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/package/network/config/netifd/Makefile b/package/network/config/netifd/Makefile
index 8a1bab8c44..29fd517e93 100644
--- a/package/network/config/netifd/Makefile
+++ b/package/network/config/netifd/Makefile
@@ -38,7 +38,7 @@  CMAKE_OPTIONS += \
 
 define Package/netifd/install
 	$(INSTALL_DIR) $(1)/sbin
-	$(INSTALL_BIN) $(PKG_BUILD_DIR)/netifd $(1)/sbin/
+	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/netifd $(1)/sbin/
 	$(CP) ./files/* $(1)/
 	$(CP) $(PKG_BUILD_DIR)/scripts/* $(1)/lib/netifd/
 endef