From a9fff07c2e2b1e52b00b30dc16781209f7761c04 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Mon, 17 Jun 2024 12:50:38 +0200 Subject: [PATCH] asahi/lib: generate git_sha1.h for agx_device.c `src/asahi/lib/agx_device.c` includes `git_sha1.h` since 0be124b77e3f4fa9fba7 ("asahi: Deserialize libagx when opening device"), although it only started making use of it once ece3896d5b219416b4fa ("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: 0be124b77e3f4fa9fba7 ("asahi: Deserialize libagx when opening device") Fixes: ece3896d5b219416b4fa ("asahi: add broken bits of unstable Linux UAPI") Part-of: --- src/asahi/lib/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asahi/lib/meson.build b/src/asahi/lib/meson.build index 7a99b95c689..0d78932adc4 100644 --- a/src/asahi/lib/meson.build +++ b/src/asahi/lib/meson.build @@ -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',