[OpenWrt-Devel] Copy file to target filesystem

Pratik Prajapati pratik.prajapati12 at gmail.com
Thu Oct 29 10:10:02 EDT 2015


Your changes are not solving the problem.

On Thu, Oct 29, 2015 at 7:15 PM, Joseph Marlin <jmarlin at saucontech.com>
wrote:

> define Package/my_package/install
>         $(INSTALL_DIR) $(1)/usr/sbin
>         $(INSTALL_BIN) $(PKG_BUILD_DIR)/some_binary $(1)/usr/sbin/
> endef
>
>
> Hope that helps!
> Joseph
>
> ----- Original Message -----
> From: "Pratik Prajapati" <pratik.prajapati12 at gmail.com>
> To: "OpenWrt Development List" <openwrt-devel at lists.openwrt.org>
> Sent: Thursday, October 29, 2015 9:41:28 AM
> Subject: [OpenWrt-Devel] Copy file to target filesystem
>
> Hi,
>
> How to copy binary to target filesystem
> (openwrt/staging_dir/target-xxx/root-xxx/usr/bin)?
>
>
> I have tried following code but it copies that file into
> 'openwrt/build_dir/target-xxx/my_package/ipkg-install/usr/bin/'
>
> snippet from my_package Makefile:
>
> define Package/my_package/install
> $(INSTALL_DIR) $(1)/usr/bin
> $(CP) $(PKG_BUILD_DIR)/some_binary $(1)/usr/bin
> endef
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20151029/9f0d183d/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list