Hi Alex
I am not sure but consider that gstreamer1.0-vaapi can't work with cross
build environment was related to clang env as
export LLVM_CONFIG=${STAGING_BINDIR_NATIVE}/llvm-config
>Shouldn't these steps happen automatically by just enabling the hotdoc
option and building the component?
Yes, these steps can't be automatically by just enabling the hotdoc option. If
it was necessary to be automatically, I will investigate it.
Liu
________________________________
发件人: Alexander Kanavin <[email protected]>
发送时间: 2026年3月3日 18:58
收件人: Liu, Yiding/刘 乙丁 <[email protected]>
抄送: [email protected]
<[email protected]>
主题: Re: [OE-core][PATCH] gstreamer1.0-vaapi: Enable hotdoc to produce doc
On Wed, 25 Feb 2026 at 10:45, Yiding Liu (Fujitsu) via
lists.openembedded.org <[email protected]>
wrote:
> +Subject: [PATCH] Disable cross_build check to make doc work in yocto.
> +
> +Upstream-Status: Inappropriate [oe-specific]
> +Signed-off-by: Liu Yiding <[email protected]>
> +---
> + docs/meson.build | 9 ---------
> + 1 file changed, 9 deletions(-)
> +
> +diff --git a/docs/meson.build b/docs/meson.build
> +index ad5f785..1e7a808 100644
> +--- a/docs/meson.build
> ++++ b/docs/meson.build
> +@@ -4,15 +4,6 @@ if get_option('doc').disabled()
> + subdir_done()
> + endif
> +
> +-if meson.is_cross_build()
> +- if get_option('doc').enabled()
> +- error('Documentation enabled but building the doc while cross
> building is not supported yet.')
> +- endif
> +-
> +- message('Documentation not built as building it while cross building is
> not supported yet.')
> +- subdir_done()
> +-endif
> +-
I think this is suitable for upstream submission, Yocto is a cross
build environment and building docs does work.
> +do_install:append:class-target () {
> + if ${@bb.utils.contains('PACKAGECONFIG', 'hotdoc', 'true', 'false', d)};
> then
> + export LLVM_CONFIG=${STAGING_BINDIR_NATIVE}/llvm-config
> + meson compile docs/vaapi-doc
> + install -d ${D}${docdir}/${PN}
> + cp -r ${B}/docs/vaapi-doc/html ${D}${docdir}/${PN}
> + fi
Shouldn't these steps happen automatically by just enabling the hotdoc
option and building the component?
Alex
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#232340):
https://lists.openembedded.org/g/openembedded-core/message/232340
Mute This Topic: https://lists.openembedded.org/mt/117992007/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-