Thanks, applied as ba6aacbdaea6a65399fc938fc1908f94e6e1411f.

Michael

[sent from post-receive hook]

On Thu, 15 Jan 2026 16:12:00 +0100, Lucas Stach <[email protected]> wrote:
> Add option to build eglretrace to replay captured traces
> on the target device.
> 
> Signed-off-by: Lucas Stach <[email protected]>
> Message-Id: <[email protected]>
> Signed-off-by: Michael Olbrich <[email protected]>
> 
> diff --git a/rules/apitrace.in b/rules/apitrace.in
> index 9aefad123e46..450b5bdac1db 100644
> --- a/rules/apitrace.in
> +++ b/rules/apitrace.in
> @@ -8,6 +8,18 @@ config APITRACE
>       select ZLIB
>       select LIBPNG
>       select BROTLI
> +     select WAFFLE                   if APITRACE_REPLAY
>       prompt "apitrace"
>       help
>         Tools for tracing OpenGL, Direct3D, and other graphics APIs.
> +
> +if APITRACE
> +
> +config APITRACE_REPLAY
> +     tristate
> +     prompt "apitrace replay"
> +     help
> +       Build apitrace tools to replay a captured trace on the target
> +       system.
> +
> +endif
> diff --git a/rules/apitrace.make b/rules/apitrace.make
> index 494050f258cb..fdd721fe39f8 100644
> --- a/rules/apitrace.make
> +++ b/rules/apitrace.make
> @@ -69,7 +69,7 @@ APITRACE_CONF_OPT   :=  \
>       -DENABLE_STATIC_LIBSTDCXX=OFF \
>       -DENABLE_STATIC_SNAPPY=SNAPPY \
>       -DENABLE_TESTS=OFF \
> -     -DENABLE_WAFFLE=OFF \
> +     -DENABLE_WAFFLE=$(call ptx/onoff, PTXCONF_APITRACE_REPLAY) \
>       -DENABLE_X11=OFF
>  
>  # 
> ----------------------------------------------------------------------------
> @@ -87,6 +87,10 @@ $(STATEDIR)/apitrace.targetinstall:
>  
>       @$(call install_copy, apitrace, 0, 0, 0755, -, /usr/bin/apitrace)
>  
> +ifdef PTXCONF_APITRACE_REPLAY
> +     @$(call install_copy, apitrace, 0, 0, 0755, -, /usr/bin/eglretrace)
> +endif
> +
>       @$(call install_lib, apitrace, 0, 0, 0644, apitrace/wrappers/egltrace)
>  
>       @$(call install_finish, apitrace)

Reply via email to