diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2025-04-20 12:05:28 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-22 07:42:39 +0100 |
commit | 5782239b07acddf1870e62f2ca2b245fbdff2919 (patch) | |
tree | b1092b5cb13af8383606d2077c79fdb3af689939 /meta/classes-recipe/gtk-doc.bbclass | |
parent | 10ebf7057335a4c543fe131c03e23d669a8e4f02 (diff) | |
download | poky-5782239b07acddf1870e62f2ca2b245fbdff2919.tar.gz |
lib/classes/recipes: refactor qemu.bbclass functions into library functions
Move the functions in qemu.bbclass to meta/lib/oe/qemu.py as they are generally
useful. Add a deprecation notice in qemu.bbclass so that we can remove it in
the future.
The re-definition of qemu_wrapper_cmdline in allarch.bbclass is replaced by
re-definition of the write_qemuwrapper function. We need to do this
because we need to have the same signature across different machines for
recipes inheriting both allarch and meson.
Note that we cannot use vardepsexclude on oe.qemu.qemu_xxx functions
conditionally in allarch.bbclass because python module functions currently
do not support per-recipe vardepsexclude handling.
(From OE-Core rev: ff11f77655b493fe8dfae36b484d516e630b89b5)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/gtk-doc.bbclass')
-rw-r--r-- | meta/classes-recipe/gtk-doc.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes-recipe/gtk-doc.bbclass b/meta/classes-recipe/gtk-doc.bbclass index 9d3911966b..28c0adba0a 100644 --- a/meta/classes-recipe/gtk-doc.bbclass +++ b/meta/classes-recipe/gtk-doc.bbclass | |||
@@ -35,14 +35,14 @@ DEPENDS:append = " gtk-doc-native" | |||
35 | 35 | ||
36 | export STAGING_DIR_HOST | 36 | export STAGING_DIR_HOST |
37 | 37 | ||
38 | inherit python3native pkgconfig qemu | 38 | inherit python3native pkgconfig |
39 | DEPENDS:append = "${@' qemu-native' if d.getVar('GTKDOC_ENABLED') == 'True' else ''}" | 39 | DEPENDS:append = "${@' qemu-native' if d.getVar('GTKDOC_ENABLED') == 'True' else ''}" |
40 | 40 | ||
41 | do_compile:prepend:class-target () { | 41 | do_compile:prepend:class-target () { |
42 | if [ ${GTKDOC_ENABLED} = True ]; then | 42 | if [ ${GTKDOC_ENABLED} = True ]; then |
43 | # Write out a qemu wrapper that will be given to gtkdoc-scangobj so that it | 43 | # Write out a qemu wrapper that will be given to gtkdoc-scangobj so that it |
44 | # can run target helper binaries through that. | 44 | # can run target helper binaries through that. |
45 | qemu_binary="${@qemu_wrapper_cmdline(d, '$STAGING_DIR_HOST', ['\\$GIR_EXTRA_LIBS_PATH','$STAGING_DIR_HOST/${libdir}','$STAGING_DIR_HOST/${base_libdir}'])}" | 45 | qemu_binary="${@oe.qemu.qemu_wrapper_cmdline(d, '$STAGING_DIR_HOST', ['\\$GIR_EXTRA_LIBS_PATH','$STAGING_DIR_HOST/${libdir}','$STAGING_DIR_HOST/${base_libdir}'])}" |
46 | cat > ${B}/gtkdoc-qemuwrapper << EOF | 46 | cat > ${B}/gtkdoc-qemuwrapper << EOF |
47 | #!/bin/sh | 47 | #!/bin/sh |
48 | # Use a modules directory which doesn't exist so we don't load random things | 48 | # Use a modules directory which doesn't exist so we don't load random things |