hw/display/ramfb: Compile the ramfb code only when CONFIG_FW_CFG_DMA is set
authorThomas Huth <thuth@redhat.com>
Mon, 20 Aug 2018 17:28:03 +0000 (19:28 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 21 Aug 2018 07:47:16 +0000 (09:47 +0200)
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).

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-id: 1534786083-26559-1-git-send-email-thuth@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/Makefile.objs

index fb8408c6d039fa2b4d5fd8fa603d1050cd5aa8d6..a606fb74046ed3e1528c1e7114c0f29d0dea4967 100644 (file)
@@ -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