qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/2] make: Cleanup and fix of loading of dependency info
@ 2015-08-09  9:39 Victor Kaplansky
  2015-08-09  9:39 ` [Qemu-devel] [PATCH v3 1/2] make: fix where dependency *.d are stored Victor Kaplansky
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Victor Kaplansky @ 2015-08-09  9:39 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Eduardo Habkost, Michael S. Tsirkin, Stefan Weil,
	Paolo Bonzini, =?UTF-8?q?Alex=20=20Benn=C3=A9e?=,
	Richard Henderson

Changes from v2:

    Address comment by Paolo Bonzini:
        - Store list of generated hex files in a variable and derive from it
          list of dependences to be included.

    Address comment by Alex Bennee and Michael S. Tsirkin:
        - Add a comment about difference between $(@D) and $(*D) in gnu make.
        - Better explanation why touching of some *.dsl sources is necessary.


make build can fail when one switches between commits without running
"make clean".

This is caused by loading old *.d dependency info files and is harmful for
autogenerated sources with their own includes.  This situation may
significantly slow down the process of git bisect.

These two patches clean things up and fix the issue both for further versions,
and between old and new commits.

This also replaces my previous patch "[PATCH] make: explicit dependencies for
ACPI gen sources".

I've tested the fix by validating that lists included by previous "*.d"
approach and new "patsubst" approach are identical.



Victor Kaplansky (2):
  make: fix where dependency *.d are stored.
  make: load only required dependency files.

 hw/i386/Makefile.objs     | 8 +++++++-
 hw/i386/acpi-dsdt.dsl     | 1 -
 hw/i386/q35-acpi-dsdt.dsl | 1 +
 rules.mak                 | 4 ++--
 4 files changed, 10 insertions(+), 4 deletions(-)

-- 
--Victor

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-08-10 10:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-09  9:39 [Qemu-devel] [PATCH v3 0/2] make: Cleanup and fix of loading of dependency info Victor Kaplansky
2015-08-09  9:39 ` [Qemu-devel] [PATCH v3 1/2] make: fix where dependency *.d are stored Victor Kaplansky
2015-08-09  9:39 ` [Qemu-devel] [PATCH v3 2/2] make: load only required dependency files Victor Kaplansky
2015-08-09 11:39   ` Michael S. Tsirkin
2015-08-09 11:54     ` Peter Maydell
2015-08-09 12:20       ` Michael S. Tsirkin
2015-08-10 10:14         ` Peter Maydell
2015-08-10 10:21           ` Michael S. Tsirkin
2015-08-10  9:46       ` Victor Kaplansky
2015-08-09 11:40 ` [Qemu-devel] [PATCH v3 0/2] make: Cleanup and fix of loading of dependency info Michael S. Tsirkin

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).