[OE-core] [PATCH 6/7] libc-package: fix path assumption

Ross Burton ross.burton at intel.com
Mon Jul 13 14:03:04 UTC 2015


Relying on exec_func() doing a mkdir and chdir if you set ${B} is obscure,
instead just pass -C <dir> to oe_runmake.

Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/libc-package.bbclass | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass
index 2076aa1..21c6b43 100644
--- a/meta/classes/libc-package.bbclass
+++ b/meta/classes/libc-package.bbclass
@@ -363,10 +363,9 @@ 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}")
         bb.note("Executing binary locale generation makefile")
-        bb.build.exec_func("oe_runmake", d)
+        bb.build.exec_func("oe_runmake", d, [os.path.dirname(makefile),])
         bb.note("collecting binary locales from locale tree")
         bb.build.exec_func("do_collect_bins_from_locale_tree", d)
         do_split_packages(d, binary_locales_dir, file_regex='(.*)', \
-- 
2.1.4




More information about the Openembedded-core mailing list