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

Christopher Larson clarson at kergoth.com
Mon Jul 13 14:38:04 UTC 2015


On Mon, Jul 13, 2015 at 7:03 AM, Ross Burton <ross.burton at intel.com> wrote:

> 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='(.*)', \
>

This says you’re passing -C <dir> to oe_runmake, but actually passes the
dir as dirs for exec_func.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150713/92bc4166/attachment-0002.html>


More information about the Openembedded-core mailing list