asahi/lib: generate git_sha1.h for agx_device.c

`src/asahi/lib/agx_device.c` includes `git_sha1.h` since
0be124b77e ("asahi: Deserialize libagx when opening device"),
although it only started making use of it once ece3896d5b
("asahi: add broken bits of unstable Linux UAPI") was merged.

Regardless, without this meson change, this leads to a race condition in
builds, where `git_sha1.h` might be built (if ever) after `agx_device.c`.

Fixes: 0be124b77e ("asahi: Deserialize libagx when opening device")
Fixes: ece3896d5b ("asahi: add broken bits of unstable Linux UAPI")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29750>
This commit is contained in:
Eric Engestrom
2024-06-17 12:50:38 +02:00
committed by Marge Bot
parent 10bd300b68
commit a9fff07c2e
+1 -1
View File
@@ -86,7 +86,7 @@ libagx_shaders = custom_target(
libasahi_lib = static_library(
'asahi_lib',
[libasahi_lib_files, libagx_shaders, agx_pack],
[libasahi_lib_files, libagx_shaders, agx_pack, sha1_h],
include_directories : [inc_asahi, inc_virtio_gpu, inc_virtio_vdrm],
c_args : [no_override_init_args],
gnu_symbol_visibility : 'hidden',