maddog
maddog

Reputation: 93

how to add binary file to buildroot generated image?

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

Answers (2)

Luca Ceresoli
Luca Ceresoli

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

maddog
maddog

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

Related Questions