Skip to contentSkip to conversation

hw/display/ramfb: Compile the ramfb code only when CONFIG_FW_CFG_DMA is set

PATCH In review Thomas Huth 2 participants 2 messages Aug 20, 2018 – Aug 21, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/display/ramfb: Compile the ramfb code only when CONFIG_FW_CFG_DMA is set

According to the ramfb_setup() function, the ramfb device needs fw_cfg with DMA, so we should also only compile and link it into those targets which support it, to avoid that the device shows up on systems where it can not be used at all (e.g. s390x).

---
 hw/display/Makefile.objs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/display/Makefile.objs +2 -2
index fb8408c..a606fb7 100644
@@ -1,5 +1,5 @@
-common-obj-y += ramfb.o
-common-obj-y += ramfb-standalone.o
+common-obj-$(CONFIG_FW_CFG_DMA) += ramfb.o
+common-obj-$(CONFIG_FW_CFG_DMA) += ramfb-standalone.o
 
 common-obj-$(CONFIG_ADS7846) += ads7846.o
 common-obj-$(CONFIG_VGA_CIRRUS) += cirrus_vga.o
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 6 lines · Thomas Huth

According to the ramfb_setup() function, the ramfb device needs fw_cfg with DMA, so we should also only compile and link it into those targets which support it, to avoid that the device shows up on systems where it can not be used at all (e.g. s390x).

Added to vga queue.

thanks,
Gerd