device-tree: Make a common-obj
PATCH v2 1/1 device-tree: Make a common-obj
There is no reason for device tree API to be built per-target. common-obj it. There is an extraneous inclusion of config.h that needs to be removed.
--- Makefile.objs | 2 ++ Makefile.target | 1 - device_tree.c | 1 - 3 files changed, 2 insertions(+), 2 deletions(-)
Makefile.objs +2 -0
@@ -76,6 +76,8 @@ common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o common-obj-$(CONFIG_SMARTCARD_NSS) += $(libcacard-y) +common-obj-$(CONFIG_FDT) += device_tree.o + ###################################################################### # qapi
Makefile.target +0 -1
@@ -129,7 +129,6 @@ ifdef CONFIG_SOFTMMU obj-y += arch_init.o cpus.o monitor.o gdbstub.o balloon.o ioport.o numa.o obj-y += qtest.o bootdevice.o obj-y += hw/ -obj-$(CONFIG_FDT) += device_tree.o obj-$(CONFIG_KVM) += kvm-all.o obj-y += memory.o savevm.o cputlb.o obj-y += memory_mapping.o
device_tree.c +0 -1
@@ -18,7 +18,6 @@#include <unistd.h> #include <stdlib.h> -#include "config.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "sysemu/device_tree.h"
Signature · 1 line
1.9.1
Quoted 7 lines · Peter Crosthwaite
There is no reason for device tree API to be built per-target. common-obj it. There is an extraneous inclusion of
config.hthat needs to be removed.Cc Alexander Graf <[email protected]>Reviewed-by Andreas Färber <[email protected]>Signed-off-by Peter Crosthwaite <[email protected]>
Doesn't this mean that we're now linking against libfdt on qemu-system-x86_64?
Alex
Quoted 44 lines
--- Makefile.objs | 2 ++ Makefile.target | 1 - device_tree.c | 1 - 3 files changed, 2 insertions(+), 2 deletions(-)Makefile.objs +2
-0@@ -76,6 +76,8 @@ common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o common-obj-$(CONFIG_SMARTCARD_NSS) += $(libcacard-y) +common-obj-$(CONFIG_FDT) += device_tree.o + ###################################################################### # qapiMakefile.target +0
-1@@ -129,7 +129,6 @@ ifdef CONFIG_SOFTMMU obj-y += arch_init.o cpus.o monitor.o gdbstub.o balloon.o ioport.o numa.o obj-y += qtest.o bootdevice.o obj-y += hw/ -obj-$(CONFIG_FDT) += device_tree.o obj-$(CONFIG_KVM) += kvm-all.o obj-y += memory.o savevm.o cputlb.o obj-y += memory_mapping.odevice_tree.c +0
-1@@ -18,7 +18,6 @@#include <unistd.h> #include <stdlib.h> -#include "config.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "sysemu/device_tree.h"
Quoted 11 lines · Alexander Graf
Quoted 7 lines · Peter Crosthwaite
Quoted 7 lines
There is no reason for device tree API to be built per-target. common-obj it. There is an extraneous inclusion of
config.hthat needs to be removed.Cc Alexander Graf <[email protected]>Reviewed-by Andreas Färber <[email protected]>Signed-off-by Peter Crosthwaite <[email protected]>Doesn't this mean that we're now linking against libfdt on qemu-system-x86_64?
We already are.
Paolo
Quoted 9 lines · Paolo Bonzini
Quoted 6 lines · Alexander Graf
Quoted 4 lines · Peter Crosthwaite
Quoted 4 lines
There is no reason for device tree API to be built per-target. common-obj it. There is an extraneous inclusion of
config.hthat needs to be removed.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
Cc Alexander Graf <[email protected]>Reviewed-by Andreas Färber <[email protected]>Signed-off-by Peter Crosthwaite <[email protected]>Doesn't this mean that we're now linking against libfdt on qemu-system-x86_64?
We already are.
Oh :(
Alex
Michael Tokarev
AppliedQuoted 7 lines · Peter Crosthwaite
There is no reason for device tree API to be built per-target. common-obj it. There is an extraneous inclusion of
config.hthat needs to be removed.Cc Alexander Graf <[email protected]>Reviewed-by Andreas Färber <[email protected]>Signed-off-by Peter Crosthwaite <[email protected]>
Applied to -trivial, thank you!
/mjt