Skip to contentSkip to conversation

hw/display: Compile various display devices as common object

PATCH Applied Philippe Mathieu-Daudé 5 participants 11 messages Aug 12, 2019 – Aug 21, 2019

lore
Share & tools
lore
#0 lore raw

cover hw/display: Compile various display devices as common object

This series move various generic display devices to $(common-obj-y), so they are compiled once for all targets.

'make world' is reduced by 54 objects.

Philippe Mathieu-Daudé (2):
hw/display/sm501: Remove unused include hw/display: Compile various display devices as common object

 hw/display/Makefile.objs | 18 +++++++++---------
 hw/display/sm501.c       |  1 -
 2 files changed, 9 insertions(+), 10 deletions(-)
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/2 hw/display/sm501: Remove unused include

The "cpu.h" include makes devices target-specific. Since it is not used, remove it, so the device become generic (we can now compile it once for all targets).

---
 hw/display/sm501.c | 1 -
 1 file changed, 1 deletion(-)
hw/display/sm501.c +0 -1
index 5918f59b2b..b15fb1ab00 100644
@@ -28,7 +28,6 @@
 #include "qapi/error.h"
 #include "qemu/log.h"
 #include "qemu/module.h"
-#include "cpu.h"
 #include "hw/hw.h"
 #include "hw/char/serial.h"
 #include "ui/console.h"
Signature · 1 line
2.20.1
#4 lore raw

PATCH 2/2 hw/display: Compile various display devices as common object

In reply to Philippe Mathieu-Daudé

Various display devices are not target-specific and can be compiled once for all the targets.
After this commit, the 'make world' target is reduced by 54 objects

---
 hw/display/Makefile.objs | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
hw/display/Makefile.objs +9 -9
index a64998fc7b..0f11d55b14 100644
@@ -31,13 +31,13 @@ obj-$(CONFIG_MILKYMIST_TMU2) += milkymist-tmu2.o
 milkymist-tmu2.o-cflags := $(X11_CFLAGS) $(OPENGL_CFLAGS)
 milkymist-tmu2.o-libs := $(X11_LIBS) $(OPENGL_LIBS)
 
-obj-$(CONFIG_OMAP) += omap_dss.o
+common-obj-$(CONFIG_OMAP) += omap_dss.o
 obj-$(CONFIG_OMAP) += omap_lcdc.o
-obj-$(CONFIG_PXA2XX) += pxa2xx_lcd.o
-obj-$(CONFIG_RASPI) += bcm2835_fb.o
-obj-$(CONFIG_SM501) += sm501.o
-obj-$(CONFIG_TCX) += tcx.o
-obj-$(CONFIG_CG3) += cg3.o
+common-obj-$(CONFIG_PXA2XX) += pxa2xx_lcd.o
+common-obj-$(CONFIG_RASPI) += bcm2835_fb.o
+common-obj-$(CONFIG_SM501) += sm501.o
+common-obj-$(CONFIG_TCX) += tcx.o
+common-obj-$(CONFIG_CG3) += cg3.o
 
 obj-$(CONFIG_VGA) += vga.o
 
@@ -53,7 +53,7 @@ virtio-gpu.o-cflags := $(VIRGL_CFLAGS)
 virtio-gpu.o-libs += $(VIRGL_LIBS)
 virtio-gpu-3d.o-cflags := $(VIRGL_CFLAGS)
 virtio-gpu-3d.o-libs += $(VIRGL_LIBS)
-obj-$(CONFIG_DPCD) += dpcd.o
-obj-$(CONFIG_XLNX_ZYNQMP_ARM) += xlnx_dp.o
+common-obj-$(CONFIG_DPCD) += dpcd.o
+common-obj-$(CONFIG_XLNX_ZYNQMP_ARM) += xlnx_dp.o
 
-obj-$(CONFIG_ATI_VGA) += ati.o ati_2d.o ati_dbg.o
+common-obj-$(CONFIG_ATI_VGA) += ati.o ati_2d.o ati_dbg.o
Signature · 1 line
2.20.1
Reviewed-by on v1 1/2
#2 lore raw

Re: [Qemu-devel] [PATCH 1/2] hw/display/sm501: Remove unused include

In reply to Philippe Mathieu-Daudé
Quoted 15 lines · Philippe Mathieu-Daudé

The "cpu.h" include makes devices target-specific. Since it is not used, remove it, so the device become generic (we can now compile it once for all targets).

---
 hw/display/sm501.c | 1 -
 1 file changed, 1 deletion(-)
hw/display/sm501.c +0 -0
index 5918f59b2b..b15fb1ab00 100644

hw/display/sm501.c line 33

Quoted 7 lines
hw/display/sm501.c +0 -1
@@ -28,7 +28,6 @@
 #include "qapi/error.h"
 #include "qemu/log.h"
 #include "qemu/module.h"
-#include "cpu.h"
 #include "hw/hw.h"
 #include "hw/char/serial.h"
 #include "ui/console.h"
Acked-by on the v1 series
#10 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 5 lines · Philippe Mathieu-Daudé

This series move various generic display devices to $(common-obj-y), so they are compiled once for all targets.

'make world' is reduced by 54 objects.

Quoted 7 lines

Philippe Mathieu-Daudé (2):
hw/display/sm501: Remove unused include hw/display: Compile various display devices as common object

hw/display/Makefile.objs | 18 +++++++++---------
hw/display/sm501.c | 1 -

2 files changed, 9 insertions(+), 10 deletions(-)

For sm501 and ati-vga parts.

Regards,
BALATON Zoltan

#6 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 4 lines · Philippe Mathieu-Daudé

Various display devices are not target-specific and can be compiled once for all the targets.
After this commit, the 'make world' target is reduced by 54 objects

Doesn't apply, needs a rebase.

cheers,
Gerd

#3 lore raw

Re: [Qemu-devel] [PATCH 1/2] hw/display/sm501: Remove unused include

In reply to Philippe Mathieu-Daudé

Le 12/08/2019 à 13:37, Philippe Mathieu-Daudé a écrit :

Quoted 15 lines

The "cpu.h" include makes devices target-specific. Since it is not used, remove it, so the device become generic (we can now compile it once for all targets).

---
 hw/display/sm501.c | 1 -
 1 file changed, 1 deletion(-)
hw/display/sm501.c +0 -0
index 5918f59b2b..b15fb1ab00 100644

hw/display/sm501.c line 33

Quoted 7 lines
hw/display/sm501.c +0 -1
@@ -28,7 +28,6 @@
 #include "qapi/error.h"
 #include "qemu/log.h"
 #include "qemu/module.h"
-#include "cpu.h"
 #include "hw/hw.h"
 #include "hw/char/serial.h"
 #include "ui/console.h"

Applied to my trivial-patches branch.
[fixed a conflict with with 650d103d3ea9 ("Include hw/hw.h exactly where needed")]

Thanks,
Laurent

#7 lore raw
In reply to Gerd Hoffmann

Hi Gerd,

Quoted 7 lines · Gerd Hoffmann
Quoted 4 lines · Philippe Mathieu-Daudé

Various display devices are not target-specific and can be compiled once for all the targets.
After this commit, the 'make world' target is reduced by 54 objects

Doesn't apply, needs a rebase.

Laurent fixed the trivial conflict in patch #1.

Since patch #2 depends of patch #1, can you Ack it so Laurent queue it in his trivial queue?

Thanks,

Phil.

#8 lore raw

Le 21/08/2019 à 12:31, Philippe Mathieu-Daudé a écrit :

Quoted 9 lines

Hi Gerd,

Quoted 6 lines · Gerd Hoffmann
Quoted 4 lines · Philippe Mathieu-Daudé

Various display devices are not target-specific and can be compiled once for all the targets.
After this commit, the 'make world' target is reduced by 54 objects

Quoted 6 lines
Quoted 1 line

Doesn't apply, needs a rebase.

Laurent fixed the trivial conflict in patch #1.

Since patch #2 depends of patch #1, can you Ack it so Laurent queue it in his trivial queue?

Patch #2 applies cleanly once the patch #1 is fixed.

Gerd, if you acknowledge it I add it to my queue.

Thanks,
Laurent

Acked-by
#9 lore raw
Quoted 12 lines · Laurent Vivier

Le 21/08/2019 à 12:31, Philippe Mathieu-Daudé a écrit :

Quoted 11 lines

Hi Gerd,

Quoted 7 lines · Gerd Hoffmann
Quoted 4 lines · Philippe Mathieu-Daudé

Various display devices are not target-specific and can be compiled once for all the targets.
After this commit, the 'make world' target is reduced by 54 objects

Doesn't apply, needs a rebase.

Quoted 8 lines
Quoted 4 lines

Laurent fixed the trivial conflict in patch #1.

Since patch #2 depends of patch #1, can you Ack it so Laurent queue it in his trivial queue?

Patch #2 applies cleanly once the patch #1 is fixed.

Gerd, if you acknowledge it I add it to my queue.