<div style="font-family: Helvetica; font-size: 13px; ">${@} contents are evaluated when the variable is expanded. Variables are expanded when they're used, much in the way they are in makefiles. Use := to force immediate expansion, or don't use ${@} (alternatives, anonymous python function or event handler).<br></div>
                <div><div><br></div><div>--&nbsp;</div><div>Christopher Larson</div><div><br></div></div>
                 
                <p style="color: #A0A0A8;">On Wednesday, April 18, 2012 at 2:21 PM, Daniel Lazzari wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><div>Hi everyone,</div><div><br></div><div>I've been wrestling with this problem for over a day now so I figured it's time to call in the cavalry.</div><div>I have a class in our layer that needs to fill in a variable (EXTERNPV) with information about svn externals in a project. This process can be very time consuming and resource intensive so I would prefer that it only happen once per run. Unfortunately, it seems to run 5 times for each recipe that inherits the class. You can easily duplicate the behavior  I see with the following:</div><div><br></div><div>def testFunc(bb, d):</div><div>        print( bb.data.getVar("PN", d, True) )</div><div>        return "e1"</div><div><br></div><div>EXTERNPV = "${@testFunc(bb, d)}"</div><div><br></div><div>Am I doing something wrong? Is there some assignment operator I can use to ensure this only has to be done once? Or maybe a variable flag?</div><div><br></div><div>As always, I very much appreciate the help.</div><div><br></div><div>Dan Lazzari Jr.</div><div>Firmware Engineer</div><div><a href="mailto:dlazzari@leapfrog.com">dlazzari@leapfrog.com</a></div><div><br></div><div><br></div><div>_______________________________________________</div><div>bitbake-devel mailing list</div><div><a href="mailto:bitbake-devel@lists.openembedded.org">bitbake-devel@lists.openembedded.org</a></div><div><a href="http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/bitbake-devel">http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/bitbake-devel</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>