* [Qemu-devel] [PATCH] build: get rid of target-obj-y
@ 2019-02-15 10:49 Paolo Bonzini
2019-02-15 12:40 ` Stefan Hajnoczi
2019-02-18 9:53 ` Markus Armbruster
0 siblings, 2 replies; 3+ messages in thread
From: Paolo Bonzini @ 2019-02-15 10:49 UTC (permalink / raw)
To: qemu-devel; +Cc: armbru, stefanha, eblake
It is possible to specify the trace/ directory already in objs-y;
there is no need to have a separate unnest-vars invocation.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
Makefile.objs | 1 -
Makefile.target | 7 ++-----
trace/Makefile.objs | 4 ++--
3 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/Makefile.objs b/Makefile.objs
index b7aae33..c3a2354 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -112,7 +112,6 @@ version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o
######################################################################
# tracing
util-obj-y += trace/
-target-obj-y += trace/
######################################################################
# guest agent
diff --git a/Makefile.target b/Makefile.target
index bb82959..a56a72f 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -105,6 +105,8 @@ all: $(PROGS) stap
# Dummy command so that make thinks it has done something
@true
+obj-y += trace/
+
#########################################################
# cpu emulator library
obj-y += exec.o
@@ -172,14 +174,11 @@ endif # CONFIG_SOFTMMU
dummy := $(call unnest-vars,,obj-y)
all-obj-y := $(obj-y)
-target-obj-y :=
block-obj-y :=
common-obj-y :=
chardev-obj-y :=
slirp-obj-y :=
include $(SRC_PATH)/Makefile.objs
-dummy := $(call unnest-vars,,target-obj-y)
-target-obj-y-save := $(target-obj-y)
dummy := $(call unnest-vars,.., \
block-obj-y \
block-obj-m \
@@ -191,9 +190,7 @@ dummy := $(call unnest-vars,.., \
common-obj-y \
common-obj-m \
slirp-obj-y)
-target-obj-y := $(target-obj-y-save)
all-obj-y += $(common-obj-y)
-all-obj-y += $(target-obj-y)
all-obj-y += $(qom-obj-y)
all-obj-$(CONFIG_SOFTMMU) += $(block-obj-y) $(chardev-obj-y)
all-obj-$(CONFIG_USER_ONLY) += $(crypto-aes-obj-y)
diff --git a/trace/Makefile.objs b/trace/Makefile.objs
index afd571c..c544509 100644
--- a/trace/Makefile.objs
+++ b/trace/Makefile.objs
@@ -36,7 +36,7 @@ $(obj)/generated-helpers.c-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/conf
$(obj)/generated-helpers.o: $(obj)/generated-helpers.c
-target-obj-y += generated-helpers.o
+obj-y += generated-helpers.o
$(obj)/generated-tcg-tracers.h: $(obj)/generated-tcg-tracers.h-timestamp
@@ -55,5 +55,5 @@ $(obj)/generated-tcg-tracers.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/
util-obj-$(CONFIG_TRACE_SIMPLE) += simple.o
util-obj-$(CONFIG_TRACE_FTRACE) += ftrace.o
util-obj-y += control.o
-target-obj-y += control-target.o
+obj-y += control-target.o
util-obj-y += qmp.o
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] build: get rid of target-obj-y
2019-02-15 10:49 [Qemu-devel] [PATCH] build: get rid of target-obj-y Paolo Bonzini
@ 2019-02-15 12:40 ` Stefan Hajnoczi
2019-02-18 9:53 ` Markus Armbruster
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2019-02-15 12:40 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: qemu-devel, armbru, eblake
[-- Attachment #1: Type: text/plain, Size: 551 bytes --]
On Fri, Feb 15, 2019 at 11:49:15AM +0100, Paolo Bonzini wrote:
> It is possible to specify the trace/ directory already in objs-y;
> there is no need to have a separate unnest-vars invocation.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> Makefile.objs | 1 -
> Makefile.target | 7 ++-----
> trace/Makefile.objs | 4 ++--
> 3 files changed, 4 insertions(+), 8 deletions(-)
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
(Yep, I don't know the details of the build system well enough for a
Reviewed-by.)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] build: get rid of target-obj-y
2019-02-15 10:49 [Qemu-devel] [PATCH] build: get rid of target-obj-y Paolo Bonzini
2019-02-15 12:40 ` Stefan Hajnoczi
@ 2019-02-18 9:53 ` Markus Armbruster
1 sibling, 0 replies; 3+ messages in thread
From: Markus Armbruster @ 2019-02-18 9:53 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: qemu-devel, stefanha
Paolo Bonzini <pbonzini@redhat.com> writes:
> It is possible to specify the trace/ directory already in objs-y;
> there is no need to have a separate unnest-vars invocation.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Nice cleanup.
Reviewed-by: Markus Armbruster <armbru@redhat.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-02-18 9:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-15 10:49 [Qemu-devel] [PATCH] build: get rid of target-obj-y Paolo Bonzini
2019-02-15 12:40 ` Stefan Hajnoczi
2019-02-18 9:53 ` Markus Armbruster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).