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 (#232305): 
https://lists.openembedded.org/g/openembedded-core/message/232305
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]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to