From: Ross Burton Date: Wed, 8 Jul 2015 10:22:50 +0000 (+0100) Subject: libc-package: don't abuse B to change directory X-Git-Tag: 2015-10~1212 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=c4a1989f3550e81f188b5789af2c4c18560c3656;p=openembedded-core.git libc-package: don't abuse B to change directory 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 to oe_runmake. Signed-off-by: Ross Burton --- diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass index 2076aa1fb1..47be691e2d 100644 --- a/meta/classes/libc-package.bbclass +++ b/meta/classes/libc-package.bbclass @@ -363,8 +363,7 @@ python package_do_split_gconvs () { 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")