<div dir="ltr">Your changes are not solving the problem.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 29, 2015 at 7:15 PM, Joseph Marlin <span dir="ltr"><<a href="mailto:jmarlin@saucontech.com" target="_blank">jmarlin@saucontech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">define Package/my_package/install<br>
$(INSTALL_DIR) $(1)/usr/sbin<br>
$(INSTALL_BIN) $(PKG_BUILD_DIR)/some_binary $(1)/usr/sbin/<br>
endef<br>
<br>
<br>
Hope that helps!<br>
Joseph<br>
<div><div class="h5"><br>
----- Original Message -----<br>
From: "Pratik Prajapati" <<a href="mailto:pratik.prajapati12@gmail.com">pratik.prajapati12@gmail.com</a>><br>
To: "OpenWrt Development List" <<a href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel@lists.openwrt.org</a>><br>
Sent: Thursday, October 29, 2015 9:41:28 AM<br>
Subject: [OpenWrt-Devel] Copy file to target filesystem<br>
<br>
Hi,<br>
<br>
How to copy binary to target filesystem (openwrt/staging_dir/target-xxx/root-xxx/usr/bin)?<br>
<br>
<br>
I have tried following code but it copies that file into 'openwrt/build_dir/target-xxx/my_package/ipkg-install/usr/bin/'<br>
<br>
snippet from my_package Makefile:<br>
<br>
define Package/my_package/install<br>
$(INSTALL_DIR) $(1)/usr/bin<br>
$(CP) $(PKG_BUILD_DIR)/some_binary $(1)/usr/bin<br>
endef<br>
<br>
</div></div>_______________________________________________<br>
openwrt-devel mailing list<br>
<a href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel@lists.openwrt.org</a><br>
<a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" rel="noreferrer" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><br>
</blockquote></div><br></div>