Currently if exec_func() isn't told what directories to create and change to, it
uses B. This is not obvious and may be changed in the future.
Instead, pass -C<dir> to oe_runmake.
Signed-off-by: Ross Burton <ross.burton@intel.com>
m.write(cmd + ":\n")
m.write("\t" + commands[cmd] + "\n\n")
m.close()
- d.setVar("B", os.path.dirname(makefile))
- d.setVar("EXTRA_OEMAKE", "${PARALLEL_MAKE}")
+ d.setVar("EXTRA_OEMAKE", "-C %s ${PARALLEL_MAKE}" % (os.path.dirname(makefile)))
bb.note("Executing binary locale generation makefile")
bb.build.exec_func("oe_runmake", d)
bb.note("collecting binary locales from locale tree")