[PATCH] Add support for binary includes.

Scott Wood scottwood at freescale.com
Sat Feb 23 03:08:20 EST 2008


On Thu, Feb 21, 2008 at 11:05:58PM -0700, Grant Likely wrote:
> On Wed, Feb 20, 2008 at 12:19 PM, Scott Wood <scottwood at freescale.com> wrote:
> > A property's data can be populated with a file's contents
> >  as follows:
> >
> >  node {
> >         prop = /incbin/("path/to/data");
> >  };
> >
> >  A subset of a file can be included by passing start and size parameters.
> >  For example, to include bytes 8 through 23:
> >
> >  node {
> >         prop = /incbin/("path/to/data", 8, 16);
> >  };
> 
> 
> Can I ask; what is the intended usage of such a thing?  How large
> would a typical binary blob be?

I use it for embedding guest device trees in a hypervisor's device tree.

-Scott



More information about the Linuxppc-dev mailing list