# Adding Yocto built packages to a target

**URL:** <https://forum.legato.io/t/adding-yocto-built-packages-to-a-target/6718>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [March 13, 2024, 7:50pm UTC](https://forum.legato.io/t/adding-yocto-built-packages-to-a-target/6718 "2024-03-13T19:50:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![upsampled](https://avatars.discourse-cdn.com/v4/letter/u/bc8723/32.png) [@upsampled](https://forum.legato.io/u/upsampled)\
**Post date:** [March 13, 2024, 7:50pm UTC](https://forum.legato.io/t/adding-yocto-built-packages-to-a-target/6718/1 "2024-03-13T19:50:34Z")

</div>

Yocto allows for other applications/libraries to be built for WP target. Great example would be `lsusb` and `libusb` (the former being dependent on the later). The Yocto Distro released in Firmware 15.1 will build these both with the recipe `usbutils`. If i modify the `mdm9x28-image-minimal` recipe to include `usbutils` it will be added to the `yocto*.cwe`, but this requires i push the entire kernel and rootfs to just add this utility. I want to know:

1. Can I use the `.ipkg` file generated by `bitbake` (IE: `bitbake usbutils` creates `usbutil*.ipkg`) to just install this package? Can i just `scp` the file and run a command?
2. If there a way that legato handles these existing packages? Can i say my custom application is dependent on a library, say `libusb`, is installed like a typical package manager?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [March 14, 2024, 2:05am UTC](https://forum.legato.io/t/adding-yocto-built-packages-to-a-target/6718/2 "2024-03-14T02:05:19Z")

</div>

1. you can find out the exact application binary and push to module to run:

e.g.  
/Yocto/WP76/R13.3/yocto/build\_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/p7zip/16.02-r0/image/usr/bin/7za

1. legato application can bundle files, you can bundle the library in the unssandboxed legato application, and then copy the file to the module’s system or run it with system() API call
