<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-03-13 14:00 GMT+01:00 Emil Velikov <span dir="ltr"><<a href="mailto:emil.l.velikov@gmail.com" target="_blank">emil.l.velikov@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 12 March 2017 at 23:01, Mauro Rossi <<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>> wrote:<br>
> Automake generation rules are replicated for android.<br>
> $* macro was expected to return "hsw" but instead gives "hsw.{h,c}"<br>
> so $(basename $*) is used as a workaround<br>
> to set the correct --chipset option for brw_oa.py script.<br>
><br>
> Build tested with nougat-x86<br>
><br>
> Fixes: e565505 "i965: Add script to gen code for OA counter queries"<br>
<br>
</span>Let copy/pasta continue ... sigh, seems like people want to<br>
deliberatelly make their lives harder :-(<br></blockquote><div><br></div><div>Hi Emil,</div><div><br></div><div>I don't see how just doing an include of <a href="http://Makefile.gen.am" target="_blank">Makefile.gen</a> with current automake generation rules</div><div>would "cheat" Android Build System as we speak.</div><div><br></div><div>The generated files need to go in $OUT/gen/{STATIC,SHARED}_<wbr>LIBRARIES/[module_name]_<wbr>intermediates</div><div>or Android Build System will just not care and throw a bunch of errors,</div><div>because it will check LOCAL_GENERATED_SOURCES list (with absolute path) against the declared generation rules</div><div><br></div><div>In my understanding Makefile.gen as extrapolation of current am generation rules,</div><div>will not suffice, would you please show a working PoC, </div><div>even for just one (medium/complex) prototype generation rule of your choice?</div><div><br></div><div>Thanks</div><div><br></div><div>Mauro</div></div><br></div></div>