Re: [PATCH] Add support for binary includes.
From: Scott Wood <hidden>
Date: 2008-02-22 16:25:44
From: Scott Wood <hidden>
Date: 2008-02-22 16:25:44
On Thu, Feb 21, 2008 at 11:05:58PM -0700, Grant Likely wrote:
On Wed, Feb 20, 2008 at 12:19 PM, Scott Wood [off-list ref] wrote:quoted
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