diff mbox series

[v3,15/43] video: Allow building video drivers for SPL

Message ID 20230504165823.v3.15.Ib05405d92db5e10a3a58353c985bfbb49186a499@changeid
State Superseded
Delegated to: Bin Meng
Headers show
Series x86: Use qemu-x86_64 to boot EFI installers | expand

Commit Message

Simon Glass May 4, 2023, 10:58 p.m. UTC
Update the Makefile rules to allow video drivers in SPL. This is useful
for 64-bit QEMU on x86, since the video BIOS can only be run from 32-bit
mode (i.e. in SPL).

Signed-off-by: Simon Glass <sjg@chromium.org>
---

(no changes since v1)

 drivers/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Nikhil Jain May 8, 2023, 5:42 a.m. UTC | #1
Hi Simon,

On 05/05/23 04:28, Simon Glass wrote:
> Update the Makefile rules to allow video drivers in SPL. This is useful
> for 64-bit QEMU on x86, since the video BIOS can only be run from 32-bit
> mode (i.e. in SPL).
> 
> Signed-off-by: Simon Glass<sjg@chromium.org>
> ---
> 
> (no changes since v1)
> 
>   drivers/Makefile | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)

Please rebase on this patch.
https://lore.kernel.org/u-boot/20230420121112.311922-4-n-jain1@ti.com/

I had added obj-$(CONFIG_SPL_VIDEO) +=video/ to build video driver when 
TPL and VPL are not defined and only SPL is defined. You may have to 
remove this and add it for all stages.

Thanks,
Nikhil
diff mbox series

Patch

diff --git a/drivers/Makefile b/drivers/Makefile
index c70466dbcbe..aae6a4667dc 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -38,6 +38,8 @@  obj-$(CONFIG_$(SPL_)SYSINFO) += sysinfo/
 obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm/
 obj-$(CONFIG_XEN) += xen/
 obj-$(CONFIG_$(SPL_)FPGA) += fpga/
+obj-$(CONFIG_$(SPL_TPL_)VIDEO) += video/
+
 obj-y += bus/
 
 ifndef CONFIG_TPL_BUILD
@@ -98,7 +100,6 @@  obj-y += rtc/
 obj-y += scsi/
 obj-y += sound/
 obj-y += spmi/
-obj-y += video/
 obj-y += watchdog/
 obj-$(CONFIG_QE) += qe/
 obj-$(CONFIG_U_QE) += qe/