]> code.ossystems Code Review - openembedded-core.git/commitdiff
libc-package: don't abuse B to change directory
authorRoss Burton <ross.burton@intel.com>
Wed, 8 Jul 2015 10:22:50 +0000 (11:22 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Jul 2015 14:08:44 +0000 (15:08 +0100)
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>
meta/classes/libc-package.bbclass

index 2076aa1fb1b928ca51357e49c1a8cde0870dbbfc..47be691e2dfe083cd274ebd4e319db2882f53a33 100644 (file)
@@ -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")