When a agent reference was being used, the code was not using the
correct base variable to look up the agent
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
if ref_varname:
if ref_varname == varname:
bb.fatal(f"{varname} cannot reference itself")
- return new_agent(varname, creation_info=creation_info)
+ return self.new_agent(ref_varname, creation_info=creation_info)
import_key = self.d.getVar(f"{varname}_import")
if import_key: