Skip to contentSkip to conversation

hw/cpu: core.c can be compiled as common object

PATCH In review Thomas Huth 4 participants 4 messages Jun 8, 2017 – Jun 9, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/cpu: core.c can be compiled as common object

There does not seem to be any target specific code in core.c, so we can put it into "common-obj" instead of "obj" to compile it only once for all targets.

---
 hw/cpu/Makefile.objs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
hw/cpu/Makefile.objs +1 -2
index 942a4bb..cd52d20 100644
@@ -2,5 +2,4 @@ obj-$(CONFIG_ARM11MPCORE) += arm11mpcore.o
 obj-$(CONFIG_REALVIEW) += realview_mpcore.o
 obj-$(CONFIG_A9MPCORE) += a9mpcore.o
 obj-$(CONFIG_A15MPCORE) += a15mpcore.o
-obj-y += core.o
-
+common-obj-y += core.o
Signature · 1 line
1.8.3.1
#2 lore raw
Quoted 5 lines · Juan Quintela
Quoted 4 lines · Thomas Huth

There does not seem to be any target specific code in core.c, so we can put it into "common-obj" instead of "obj" to compile it only once for all targets.

Quoted 8 lines
Quoted 1 line

It compiles.
I can't see anything that is target dependent on core.c.

So

I've merged this into my ppc-for-2.10 tree, on the basis that ppc is the only user of core.c so far. Any objections?

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
#3 lore raw
Quoted 11 lines · David Gibson
Quoted 10 lines · Juan Quintela
Quoted 5 lines · Thomas Huth

There does not seem to be any target specific code in core.c, so we can put it into "common-obj" instead of "obj" to compile it only once for all targets.

It compiles.
I can't see anything that is target dependent on core.c.

Quoted 6 lines
Quoted 3 lines

So

I've merged this into my ppc-for-2.10 tree, on the basis that ppc is the only user of core.c so far. Any objections?

No problem to me. If you want, you can add my:

Signature · 1 line
Eduardo