diff mbox series

[v3,1/2] init/Kconfig: add python3 availability check

Message ID 20241120202640.49703-1-pvorel@suse.cz (mailing list archive)
State New
Headers show
Series [v3,1/2] init/Kconfig: add python3 availability check | expand

Commit Message

Petr Vorel Nov. 20, 2024, 8:26 p.m. UTC
It will be used in the next commit for DRM_MSM.

Suggested-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Changes v2->v3:
The same as in v2.

 init/Kconfig | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/init/Kconfig b/init/Kconfig
index fbd0cb06a50a..2561eaebd1d3 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -262,6 +262,9 @@  config HAVE_KERNEL_ZSTD
 config HAVE_KERNEL_UNCOMPRESSED
 	bool
 
+config HAVE_PYTHON3
+	def_bool $(success,$(PYTHON3) -V)
+
 choice
 	prompt "Kernel compression mode"
 	default KERNEL_GZIP