kas: Hide X86_PC machine item from non-relevant menus

Message ID 20241028073501.14422-1-ubely@ilbers.de
State Accepted, archived
Headers show
Series kas: Hide X86_PC machine item from non-relevant menus | expand

Commit Message

Uladzimir Bely Oct. 28, 2024, 7:34 a.m. UTC
It was shown for any distro (even RaspiOS) while this should be
debian/ubuntu specific.

Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
 kas/machine/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Uladzimir Bely Nov. 4, 2024, 1:53 p.m. UTC | #1
On Mon, 2024-10-28 at 10:34 +0300, Uladzimir Bely wrote:
> It was shown for any distro (even RaspiOS) while this should be
> debian/ubuntu specific.
> 
> Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
> ---
>  kas/machine/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/kas/machine/Kconfig b/kas/machine/Kconfig
> index 2154c308..75651ff6 100644
> --- a/kas/machine/Kconfig
> +++ b/kas/machine/Kconfig
> @@ -112,6 +112,7 @@ config MACHINE_VMWARE
>  
>  config MACHINE_X86_PC
>  	bool "x86 PC"
> +	depends on DEBIAN_BULLSEYE || DEBIAN_BOOKWORM ||
> DEBIAN_TRIXIE || UBUNTU_FOCAL || UBUNTU_JAMMY || UBUNTU_NOBLE
>  
>  endchoice
>  
> -- 
> 2.45.2
> 

Appliedt to next.

Patch

diff --git a/kas/machine/Kconfig b/kas/machine/Kconfig
index 2154c308..75651ff6 100644
--- a/kas/machine/Kconfig
+++ b/kas/machine/Kconfig
@@ -112,6 +112,7 @@  config MACHINE_VMWARE
 
 config MACHINE_X86_PC
 	bool "x86 PC"
+	depends on DEBIAN_BULLSEYE || DEBIAN_BOOKWORM || DEBIAN_TRIXIE || UBUNTU_FOCAL || UBUNTU_JAMMY || UBUNTU_NOBLE
 
 endchoice