While this BSP may trigger the warning (as it uses
the driver), since this is a common / upstream driver,
I've applied the change to all 6.18 branches.

Bruce

In message: [linux-yocto][v6.18/standard/x86 and 
v6.18/standard/preempt-rt/x86][PATCH]  drm/xe: Don't use absolute path in 
generated header comment
on 15/02/2026 [email protected] wrote:

> From: Calvin Owens <[email protected]>
> 
> commit e67870321a6af82c66fc41422d5c7af49e8a0234 upstream.
> 
> Building the XE driver through Yocto throws this QA warning:
> 
>     WARNING: mc:house:linux-stable-6.17-r0 do_package_qa: QA Issue: File 
> /usr/src/debug/linux-stable/6.17/drivers/gpu/drm/xe/generated/xe_device_wa_oob.h
>  in package linux-stable-src contains reference to TMPDIR [buildpaths]
>     WARNING: mc:house:linux-stable-6.17-r0 do_package_qa: QA Issue: File 
> /usr/src/debug/linux-stable/6.17/drivers/gpu/drm/xe/generated/xe_wa_oob.h in 
> package linux-stable-src contains reference to TMPDIR [buildpaths]
> 
> ...because the comment at the top of the generated header contains the
> absolute path to the rules file at build time:
> 
>     * This file was generated from rules: 
> /home/calvinow/git/meta-house/build/tmp-house/work-shared/nuc14rvhu7/kernel-source/drivers/gpu/drm/xe/xe_device_wa_oob.rules
> 
> Fix this minor annoyance by putting the basename of the rules file in
> the generated comment instead of the absolute path, so the generated
> header contents no longer depend on the location of the kernel source.
> 
> Signed-off-by: Calvin Owens <[email protected]>
> Link: https://patch.msgid.link/[email protected]
> Signed-off-by: Rodrigo Vivi <[email protected]>
> Signed-off-by: Yongxin Liu <[email protected]>
> ---
>  drivers/gpu/drm/xe/xe_gen_wa_oob.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_gen_wa_oob.c 
> b/drivers/gpu/drm/xe/xe_gen_wa_oob.c
> index 247e41c1c48d..e7a50b1348b7 100644
> --- a/drivers/gpu/drm/xe/xe_gen_wa_oob.c
> +++ b/drivers/gpu/drm/xe/xe_gen_wa_oob.c
> @@ -195,7 +195,8 @@ int main(int argc, const char *argv[])
>               }
>       }
>  
> -     fprintf(args[ARGS_CHEADER].f, HEADER, args[ARGS_INPUT].fn, prefix, 
> prefix);
> +     fprintf(args[ARGS_CHEADER].f, HEADER, xbasename(args[ARGS_INPUT].fn),
> +             prefix, prefix);
>  
>       ret = parse(args[ARGS_INPUT].f, args[ARGS_CSOURCE].f,
>                   args[ARGS_CHEADER].f, prefix);
> -- 
> 2.46.2
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#16305): 
https://lists.yoctoproject.org/g/linux-yocto/message/16305
Mute This Topic: https://lists.yoctoproject.org/mt/117820692/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to