Reputation: 93
How can i include a pre-built binary file into buildroot generated image?
I have tried to include the binary file into appropriate folder in build_dir but every time i try to do make the image is being created without the file.
Upvotes: 2
Views: 4065
Reputation: 1661
You can use a root filesystem overlay, configured using the BR2_ROOTFS_OVERLAY
variable.
See chapter 9.5. Customizing the generated target filesystem in the Buildroot manual.
Upvotes: 2
Reputation: 93
Just in case someone is looking for a easy fix you can add the files to buildroot-dir/files folder. The file should match the exact directory structure. For example you want to put the file in /usr/bin in the image then keep the file in buildroot-dir/files/usr/bin and rebuild the image.
Upvotes: 1