From: Paolo Bonzini <pbonzini@redhat.com>
To: "KONRAD Frédéric" <fred.konrad@greensocs.com>
Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org, afaerber@suse.de
Subject: Re: [Qemu-devel] [PATCH 09/18] hw: include hw header files with full paths
Date: Tue, 12 Mar 2013 09:22:58 +0100 [thread overview]
Message-ID: <513EE5E2.8050207@redhat.com> (raw)
In-Reply-To: <513EE519.7000209@greensocs.com>
Il 12/03/2013 09:19, KONRAD Frédéric ha scritto:
> On 01/03/2013 14:33, Paolo Bonzini wrote:
>> Done with this script:
>>
>> cd hw
>> for i in `find . -name '*.h' | sed 's/^..//'`; do
>> echo '\,^#.*include.*["<]'$i'[">], s,'$i',hw/&,'
>> done | sed -i -f - `find . -type f`
>>
>> This is so that paths remain valid as files are moved.
>>
>> Instead, files in hw/dataplane are referenced with the relative path.
>> We know they are not going to move to include/, and they are the only
>> include files that are in subdirectories _and_ move.
>>
>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> Hi Paolo,
>> diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c
>> index 34913ee..248a966 100644
>> --- a/hw/virtio-blk.c
>> +++ b/hw/virtio-blk.c
>> @@ -16,11 +16,11 @@
>> #include "trace.h"
>> #include "hw/block-common.h"
>> #include "sysemu/blockdev.h"
>> -#include "virtio-blk.h"
>> +#include "hw/virtio-blk.h"
>> #ifdef CONFIG_VIRTIO_BLK_DATA_PLANE
>> -#include "hw/dataplane/virtio-blk.h"
>> +#include "dataplane/virtio-blk.h"
> Is that normal? ^^
> Or I missed something?
> I though you include hw header with full paths?
See the commit message: "files in hw/dataplane are referenced with the
relative path. We know they are not going to move to include/, and they
are the only include files that are in subdirectories _and_ move".
Paolo
next prev parent reply other threads:[~2013-03-12 8:23 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-01 13:33 [Qemu-devel] [PATCH 00/18] hw/ reorganization, part 1: out of hw/ + into hw/ARCH Paolo Bonzini
2013-03-01 13:33 ` [Qemu-devel] [PATCH 01/18] hw: move char backends to backends/ Paolo Bonzini
2013-03-01 13:33 ` [Qemu-devel] [PATCH 02/18] hw: move fifo.[ch] to libqemuutil Paolo Bonzini
2013-03-01 13:33 ` [Qemu-devel] [PATCH 03/18] hw: move qdev-monitor.o to toplevel directory Paolo Bonzini
2013-03-01 13:33 ` [Qemu-devel] [PATCH 04/18] hw: move device-hotplug.o to toplevel, compile it once Paolo Bonzini
2013-03-01 13:33 ` [Qemu-devel] [PATCH 05/18] virtio-9p: use CONFIG_VIRTFS, not CONFIG_LINUX Paolo Bonzini
2013-03-01 13:33 ` [Qemu-devel] [PATCH 06/18] virtio-9p: remove PCI dependencies from hw/9pfs/ Paolo Bonzini
2013-03-01 13:33 ` [Qemu-devel] [PATCH 07/18] vt82c686: vt82c686 is not a PCI host bridge Paolo Bonzini
2013-03-01 13:33 ` [Qemu-devel] [PATCH 08/18] ppc: do not use ../ in include files Paolo Bonzini
2013-03-01 13:33 ` [Qemu-devel] [PATCH 09/18] hw: include hw header files with full paths Paolo Bonzini
2013-03-12 8:19 ` KONRAD Frédéric
2013-03-12 8:22 ` KONRAD Frédéric
2013-03-12 8:22 ` Paolo Bonzini [this message]
2013-03-01 13:33 ` [Qemu-devel] [PATCH 10/18] build: always link device_tree.o into emulators if libfdt available Paolo Bonzini
2013-03-01 13:33 ` [Qemu-devel] [PATCH 11/18] ppc: express FDT dependency of pSeries and e500 boards via default-configs/ Paolo Bonzini
2013-03-01 13:33 ` [Qemu-devel] [PATCH 12/18] hw: move boards and other isolated files to hw/ARCH Paolo Bonzini
2013-03-01 13:33 ` [Qemu-devel] [PATCH 13/18] arm: move files referencing CPU to hw/arm/ Paolo Bonzini
2013-03-01 13:33 ` [Qemu-devel] [PATCH 14/18] i386: move files referencing CPU to hw/i386/ Paolo Bonzini
2013-03-01 13:33 ` [Qemu-devel] [PATCH 15/18] m68k: move files referencing CPU to hw/m68k/ Paolo Bonzini
2013-03-01 13:33 ` [Qemu-devel] [PATCH 16/18] ppc: move files referencing CPU to hw/ppc/ Paolo Bonzini
2013-03-01 13:33 ` [Qemu-devel] [PATCH 17/18] ppc: move more files to hw/ppc Paolo Bonzini
2013-03-01 13:33 ` [Qemu-devel] [PATCH 18/18] sh: move files referencing CPU to hw/sh4/ Paolo Bonzini
-- strict thread matches above, loose matches on Subject: below --
2013-03-05 17:17 [Qemu-devel] [PULL 00/18] hw/ reorganization, part 1 Paolo Bonzini
2013-03-05 17:17 ` [Qemu-devel] [PATCH 09/18] hw: include hw header files with full paths Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=513EE5E2.8050207@redhat.com \
--to=pbonzini@redhat.com \
--cc=afaerber@suse.de \
--cc=fred.konrad@greensocs.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).