hw/cpu: core.c can be compiled as common object
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
@@ -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
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.Signed-off-by Thomas Huth <[email protected]>
It compiles.
I can't see anything that is target dependent on core.c.
So
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
Signed-off-by Thomas Huth <[email protected]>It compiles.
I can't see anything that is target dependent oncore.c.So
Reviewed-by Juan Quintela <[email protected]>
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
Eduardo Habkost
Acked-byQuoted 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.Signed-off-by Thomas Huth <[email protected]>It compiles.
I can't see anything that is target dependent oncore.c.
Quoted 6 lines
Quoted 3 lines
So
Reviewed-by Juan Quintela <[email protected]>I've merged this into my ppc-for-2.10 tree, on the basis that ppc is the only user of
core.cso far. Any objections?
No problem to me. If you want, you can add my:
Signature · 1 line
Eduardo