<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello. <br>
      <br>
      First of all - *staging* directory root - isn't that root which
      you need. Root directory for openwrt image lay in
      build_dir/target_xxx/root-<target>.<br>
      Second - root directory populates from ipk packages so you don't
      need to install file to root directory directly.<br>
      <br>
      Best regards<br>
      Nikita Nazarenko<br>
      Radiofid Ltd<br>
      <br>
      On 29.10.2015 16:41, Pratik Prajapati wrote:<br>
    </div>
    <blockquote
cite="mid:CAHNg1Spt_r0Lcv2agGHPGL1W0CvpwjdC+35TFn=rqeah+s02XQ@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div dir="ltr">
        <div>
          <div>Hi,<br>
            <br>
          </div>
          How to copy binary to target filesystem
          (openwrt/staging_dir/target-xxx/root-xxx/usr/bin)?<br>
          <br>
          <br>
        </div>
        <div>I have tried following code but it copies that file into
          'openwrt/build_dir/target-xxx/my_package/ipkg-install/usr/bin/'<br>
          <br>
        </div>
        <div>snippet from my_package Makefile:<br>
          <br>
        </div>
        <div>define Package/my_package/install<br>
        </div>
        <div>   $(INSTALL_DIR) $(1)/usr/bin<br>
        </div>
        <div>   $(CP) $(PKG_BUILD_DIR)/some_binary $(1)/usr/bin<br>
        </div>
        <div>endef<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
openwrt-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel@lists.openwrt.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>