From 6ddfbb6c6bcc7c1431e7b7e459f51026e453b3c4 Mon Sep 17 00:00:00 2001 From: Simon Kuenzer Date: Thu, 19 Sep 2024 16:19:14 +0200 Subject: [PATCH] drivers/pl011: Depend on `libukconsole` Makes the pl011 console driver dependent on `libukconsole` instead of selecting it. This fits our current driver model: only include drivers when there is an application need. Signed-off-by: Simon Kuenzer Reviewed-by: Oleksii Moisieiev Reviewed-by: Oleksii Moisieiev Reviewed-by: Michalis Pappas Approved-by: Michalis Pappas GitHub-Closes: #1501 --- drivers/ukconsole/pl011/Config.uk | 2 +- plat/kvm/Config.uk | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/ukconsole/pl011/Config.uk b/drivers/ukconsole/pl011/Config.uk index 41cc55fba..735ce48b2 100644 --- a/drivers/ukconsole/pl011/Config.uk +++ b/drivers/ukconsole/pl011/Config.uk @@ -1,8 +1,8 @@ menuconfig LIBUKCONSOLE_PL011 bool "PrimeCell UART (PL011)" depends on ARCH_ARM_64 + depends on LIBUKCONSOLE select LIBUKOFW - select LIBUKCONSOLE if LIBUKCONSOLE_PL011 diff --git a/plat/kvm/Config.uk b/plat/kvm/Config.uk index 279fa0b66..64bf6c95b 100644 --- a/plat/kvm/Config.uk +++ b/plat/kvm/Config.uk @@ -95,8 +95,8 @@ choice config KVM_VMM_QEMU bool "QEMU" - imply LIBUKCONSOLE_PL011 if ARCH_ARM_64 - imply LIBUKCONSOLE_PL011_EARLY_CONSOLE if ARCH_ARM_64 + imply LIBUKCONSOLE_PL011 if LIBUKCONSOLE && ARCH_ARM_64 + imply LIBUKCONSOLE_PL011_EARLY_CONSOLE if LIBUKCONSOLE && ARCH_ARM_64 imply LIBUKCONSOLE_NS16550 if LIBUKCONSOLE && ARCH_X86_64 imply LIBUKCONSOLE_NS16550_EARLY_CONSOLE if LIBUKCONSOLE && ARCH_X86_64 imply LIBUKCONSOLE_NS16550_COM1 if LIBUKCONSOLE && ARCH_X86_64 -- 2.39.5