2aacef
From 812e979fe66e9c1a768fbcee3f568234fec2cded Mon Sep 17 00:00:00 2001
2aacef
From: Franck Bui <fbui@suse.com>
2aacef
Date: Tue, 15 Nov 2022 09:04:42 +0100
2aacef
Subject: [PATCH] meson: install test-kernel-install only when
2aacef
 -Dkernel-install=true
2aacef
2aacef
This patch fixes the following build failure:
2aacef
2aacef
  meson.build:3853:8: ERROR: Unknown variable "test_kernel_install_sh".
2aacef
2aacef
Fixes #25432.
2aacef
2aacef
(cherry picked from commit cc77a56532ddb59770e8312fc1b9954b0b135e72)
2aacef
2aacef
Related: #2138081
2aacef
---
2aacef
 meson.build | 2 +-
2aacef
 1 file changed, 1 insertion(+), 1 deletion(-)
2aacef
2aacef
diff --git a/meson.build b/meson.build
2aacef
index 015849af49..35704947e3 100644
2aacef
--- a/meson.build
2aacef
+++ b/meson.build
2aacef
@@ -3841,7 +3841,7 @@ exe = custom_target(
2aacef
         install_dir : bindir)
2aacef
 public_programs += exe
2aacef
 
2aacef
-if want_tests != 'false'
2aacef
+if want_tests != 'false' and want_kernel_install
2aacef
         test('test-kernel-install',
2aacef
              test_kernel_install_sh,
2aacef
              args : [exe.full_path(), loaderentry_install])