Message ID | 1304010495-18136-1-git-send-email-weil@mail.berlios.de |
---|---|
State | Superseded |
Headers | show |
On 04/28/2011 12:08 PM, Stefan Weil wrote: > From: Stefan Weil<Stefan.Weil@Kath-Kirche-Ladenburg.de> > > Commit 353ac78d495ef976242abd868f68d78420861c2c moved the files > without fixing the include paths. > > Signed-off-by: Stefan Weil<Stefan.Weil@Kath-Kirche-Ladenburg.de> This is not correct. I think we learned in IRC that the problem is Stefan is using CFLAGS=-g which overrides the CFLAGS append added by this patch. Regards, Anthony Liguori > --- > hw/9pfs/virtio-9p-debug.c | 5 +++-- > hw/9pfs/virtio-9p-local.c | 3 ++- > hw/9pfs/virtio-9p-posix-acl.c | 2 +- > hw/9pfs/virtio-9p-xattr-user.c | 2 +- > hw/9pfs/virtio-9p-xattr.c | 2 +- > hw/9pfs/virtio-9p.c | 4 ++-- > 6 files changed, 10 insertions(+), 8 deletions(-) > > diff --git a/hw/9pfs/virtio-9p-debug.c b/hw/9pfs/virtio-9p-debug.c > index 6b18842..4636ad5 100644 > --- a/hw/9pfs/virtio-9p-debug.c > +++ b/hw/9pfs/virtio-9p-debug.c > @@ -10,8 +10,9 @@ > * the COPYING file in the top-level directory. > * > */ > -#include "virtio.h" > -#include "pc.h" > + > +#include "hw/virtio.h" > +#include "hw/pc.h" > #include "virtio-9p.h" > #include "virtio-9p-debug.h" > > diff --git a/hw/9pfs/virtio-9p-local.c b/hw/9pfs/virtio-9p-local.c > index 0a015de..3effc39 100644 > --- a/hw/9pfs/virtio-9p-local.c > +++ b/hw/9pfs/virtio-9p-local.c > @@ -10,7 +10,8 @@ > * the COPYING file in the top-level directory. > * > */ > -#include "virtio.h" > + > +#include "hw/virtio.h" > #include "virtio-9p.h" > #include "virtio-9p-xattr.h" > #include<arpa/inet.h> > diff --git a/hw/9pfs/virtio-9p-posix-acl.c b/hw/9pfs/virtio-9p-posix-acl.c > index 575abe8..c0ae9d6 100644 > --- a/hw/9pfs/virtio-9p-posix-acl.c > +++ b/hw/9pfs/virtio-9p-posix-acl.c > @@ -13,7 +13,7 @@ > > #include<sys/types.h> > #include<attr/xattr.h> > -#include "virtio.h" > +#include "hw/virtio.h" > #include "virtio-9p.h" > #include "fsdev/file-op-9p.h" > #include "virtio-9p-xattr.h" > diff --git a/hw/9pfs/virtio-9p-xattr-user.c b/hw/9pfs/virtio-9p-xattr-user.c > index bba13ce..c56039c 100644 > --- a/hw/9pfs/virtio-9p-xattr-user.c > +++ b/hw/9pfs/virtio-9p-xattr-user.c > @@ -12,7 +12,7 @@ > */ > > #include<sys/types.h> > -#include "virtio.h" > +#include "hw/virtio.h" > #include "virtio-9p.h" > #include "fsdev/file-op-9p.h" > #include "virtio-9p-xattr.h" > diff --git a/hw/9pfs/virtio-9p-xattr.c b/hw/9pfs/virtio-9p-xattr.c > index 03c3d3f..f08ce6e 100644 > --- a/hw/9pfs/virtio-9p-xattr.c > +++ b/hw/9pfs/virtio-9p-xattr.c > @@ -11,7 +11,7 @@ > * > */ > > -#include "virtio.h" > +#include "hw/virtio.h" > #include "virtio-9p.h" > #include "fsdev/file-op-9p.h" > #include "virtio-9p-xattr.h" > diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c > index b5fc52b..ac5a1d0 100644 > --- a/hw/9pfs/virtio-9p.c > +++ b/hw/9pfs/virtio-9p.c > @@ -11,8 +11,8 @@ > * > */ > > -#include "virtio.h" > -#include "pc.h" > +#include "hw/virtio.h" > +#include "hw/pc.h" > #include "qemu_socket.h" > #include "virtio-9p.h" > #include "fsdev/qemu-fsdev.h"
Am 28.04.2011 19:39, schrieb Anthony Liguori: > On 04/28/2011 12:08 PM, Stefan Weil wrote: >> From: Stefan Weil<Stefan.Weil@Kath-Kirche-Ladenburg.de> >> >> Commit 353ac78d495ef976242abd868f68d78420861c2c moved the files >> without fixing the include paths. >> >> Signed-off-by: Stefan Weil<Stefan.Weil@Kath-Kirche-Ladenburg.de> > > > This is not correct. I think we learned in IRC that the problem is > Stefan is using CFLAGS=-g which overrides the CFLAGS append added by > this patch. > > Regards, > > Anthony Liguori QEMU Makefiles use QEMU_CFLAGS - setting CFLAGS in Makefile* is wrong, because now users can no longer set their own CFLAGS. The special CFLAGS for virtio should be removed (with my patch applied first). The second best solution would be changing CFLAGS to QEMU_CFLAGS in Makefile.objs and Makefile.target. Regards, Stefan
On 04/28/2011 12:44 PM, Stefan Weil wrote: > Am 28.04.2011 19:39, schrieb Anthony Liguori: >> On 04/28/2011 12:08 PM, Stefan Weil wrote: >>> From: Stefan Weil<Stefan.Weil@Kath-Kirche-Ladenburg.de> >>> >>> Commit 353ac78d495ef976242abd868f68d78420861c2c moved the files >>> without fixing the include paths. >>> >>> Signed-off-by: Stefan Weil<Stefan.Weil@Kath-Kirche-Ladenburg.de> >> >> >> This is not correct. I think we learned in IRC that the problem is >> Stefan is using CFLAGS=-g which overrides the CFLAGS append added by >> this patch. >> >> Regards, >> >> Anthony Liguori > > > QEMU Makefiles use QEMU_CFLAGS - setting CFLAGS in Makefile* is wrong, > because now users can no longer set their own CFLAGS. Use ./configure --extra-cflags="-g" Regards, Anthony Liguori > The special CFLAGS for virtio should be removed (with my patch applied > first). > The second best solution would be changing CFLAGS to QEMU_CFLAGS in > Makefile.objs and Makefile.target. > > Regards, > > Stefan > >
On Thu, Apr 28, 2011 at 8:46 PM, Anthony Liguori <anthony@codemonkey.ws> wrote: > On 04/28/2011 12:44 PM, Stefan Weil wrote: >> >> Am 28.04.2011 19:39, schrieb Anthony Liguori: >>> >>> On 04/28/2011 12:08 PM, Stefan Weil wrote: >>>> >>>> From: Stefan Weil<Stefan.Weil@Kath-Kirche-Ladenburg.de> >>>> >>>> Commit 353ac78d495ef976242abd868f68d78420861c2c moved the files >>>> without fixing the include paths. >>>> >>>> Signed-off-by: Stefan Weil<Stefan.Weil@Kath-Kirche-Ladenburg.de> >>> >>> >>> This is not correct. I think we learned in IRC that the problem is >>> Stefan is using CFLAGS=-g which overrides the CFLAGS append added by >>> this patch. >>> >>> Regards, >>> >>> Anthony Liguori >> >> >> QEMU Makefiles use QEMU_CFLAGS - setting CFLAGS in Makefile* is wrong, >> because now users can no longer set their own CFLAGS. > > Use ./configure --extra-cflags="-g" No, we should be able to override CFLAGS, because Juan made great effort earlier to fix the logic and separate QEMU_CFLAGS and CFLAGS. Please see a558ee17761c3c9ef22792bd5097880ab92f1bf5.
diff --git a/hw/9pfs/virtio-9p-debug.c b/hw/9pfs/virtio-9p-debug.c index 6b18842..4636ad5 100644 --- a/hw/9pfs/virtio-9p-debug.c +++ b/hw/9pfs/virtio-9p-debug.c @@ -10,8 +10,9 @@ * the COPYING file in the top-level directory. * */ -#include "virtio.h" -#include "pc.h" + +#include "hw/virtio.h" +#include "hw/pc.h" #include "virtio-9p.h" #include "virtio-9p-debug.h" diff --git a/hw/9pfs/virtio-9p-local.c b/hw/9pfs/virtio-9p-local.c index 0a015de..3effc39 100644 --- a/hw/9pfs/virtio-9p-local.c +++ b/hw/9pfs/virtio-9p-local.c @@ -10,7 +10,8 @@ * the COPYING file in the top-level directory. * */ -#include "virtio.h" + +#include "hw/virtio.h" #include "virtio-9p.h" #include "virtio-9p-xattr.h" #include <arpa/inet.h> diff --git a/hw/9pfs/virtio-9p-posix-acl.c b/hw/9pfs/virtio-9p-posix-acl.c index 575abe8..c0ae9d6 100644 --- a/hw/9pfs/virtio-9p-posix-acl.c +++ b/hw/9pfs/virtio-9p-posix-acl.c @@ -13,7 +13,7 @@ #include <sys/types.h> #include <attr/xattr.h> -#include "virtio.h" +#include "hw/virtio.h" #include "virtio-9p.h" #include "fsdev/file-op-9p.h" #include "virtio-9p-xattr.h" diff --git a/hw/9pfs/virtio-9p-xattr-user.c b/hw/9pfs/virtio-9p-xattr-user.c index bba13ce..c56039c 100644 --- a/hw/9pfs/virtio-9p-xattr-user.c +++ b/hw/9pfs/virtio-9p-xattr-user.c @@ -12,7 +12,7 @@ */ #include <sys/types.h> -#include "virtio.h" +#include "hw/virtio.h" #include "virtio-9p.h" #include "fsdev/file-op-9p.h" #include "virtio-9p-xattr.h" diff --git a/hw/9pfs/virtio-9p-xattr.c b/hw/9pfs/virtio-9p-xattr.c index 03c3d3f..f08ce6e 100644 --- a/hw/9pfs/virtio-9p-xattr.c +++ b/hw/9pfs/virtio-9p-xattr.c @@ -11,7 +11,7 @@ * */ -#include "virtio.h" +#include "hw/virtio.h" #include "virtio-9p.h" #include "fsdev/file-op-9p.h" #include "virtio-9p-xattr.h" diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index b5fc52b..ac5a1d0 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virtio-9p.c @@ -11,8 +11,8 @@ * */ -#include "virtio.h" -#include "pc.h" +#include "hw/virtio.h" +#include "hw/pc.h" #include "qemu_socket.h" #include "virtio-9p.h" #include "fsdev/qemu-fsdev.h"