<div dir="ltr"><div class="gmail_extra"><div>On Mon, Oct 14, 2013 at 8:33 PM, Shankar Easwaran <span dir="ltr"><<a href="mailto:shankare@codeaurora.org" target="_blank">shankare@codeaurora.org</a>></span> wrote:<br></div>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On 10/14/2013 8:20 PM, Sean Silva wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On Mon, Oct 14, 2013 at 8:41 PM, Michael Spencer <<a href="mailto:bigcheesegs@gmail.com" target="_blank">bigcheesegs@gmail.com</a>>wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On Wed, Oct 9, 2013 at 11:23 AM, Shankar Easwaran <<a href="mailto:shankare@codeaurora.org" target="_blank">shankare@codeaurora.org</a><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
wrote:<br>
Hi,<br>
<br>
We have a whole bunch of readers(we would have some more too), and was<br>
thinking if we should have a vector of Readers, and have a function<br>
isMyFormat in each of them.<br>
<br>
Any reader that knows to handle, goes ahead and parses the file.<br>
<br>
On a side note, we currently use .objtxt as an figure out if the file is<br>
a YAML file or not. I have added FIXME's in the code, if we could some kind<br>
of magic (or) a better way to figure out if the file is YAML ?<br>
<br>
Thanks<br>
<br>
Shankar Easwaran<br>
<br>
--<br>
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted<br>
by the Linux Foundation<br>
<br>
<br>
</blockquote>
So apparently I didn't reply all when I suggested this.<br>
<br>
For determining which YAML reader to use, we should use YAML tags. This<br>
allows multiple different types of input files in a single YAML stream.<br>
</blockquote></blockquote></div>
Agree.<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
!archive<br>
<blah><br>
---<br>
!ELF<br>
<blah><br>
---<br>
!atoms<br>
<blah><br>
</blockquote></blockquote></div>
I think <blah> has to be a key value pair here, which could be represented as target:<triple></blockquote><div><br></div><div>This is really a change to the YAML and Native formats. It's not required for solving this problem.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im"><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
For differentiating between linker scripts and YAML, I agree that some<br>
form of comment magic is best.<br>
</blockquote></blockquote></div>
#!lld ? As lld would be interpreting this file ?</blockquote><div><br></div><div>Heh, you could have the shell run the yaml file :P</div><div><br></div><div>- Michael Spencer<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Since our YAML stuff is all internal anyway, wouldn't it be simpler to just<br>
hardcode the limited set of extensions we use for YAML files, and only do<br>
that with non-emulated drivers unless explicitly asked to do so?<br>
</blockquote></div>
That model would be difficult to maintain and we already have the YAML file as a avaialable form of an external output file (output-filetype=yaml).<br>
<br>
On a sidenote, All of the readers would have a validation function that would check the architecture, which makes extensions highly unmanageable.<br>
<br>
Thanks<span class=""><font color="#888888"><br>
<br>
Shankar Easwaran<br>
</font></span></blockquote></div><br></div></div>