[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] fix out of tree build
From: |
Stefano Stabellini |
Subject: |
Re: [Qemu-devel] [PATCH] fix out of tree build |
Date: |
Tue, 29 Nov 2011 16:23:22 +0000 |
User-agent: |
Alpine 2.00 (DEB 1167 2008-08-23) |
On Mon, 28 Nov 2011, Stefan Weil wrote:
> The broken build can be reproduced with a source path containing at
> least one dot.
> Source paths without any dot will show no problems. My source path was
> ~/src/qemu/qemu.org/qemu.
Sorry for the build break, I didn't have any dots in my source path so
I didn't notice it :-/
> File scripts/qapi.py fails to create unique guard names when given a
> filename with 2 or more dots:
>
> def guardname(filename):
> if filename.startswith('./'):
> filename = filename[2:]
> return filename.replace("/", "_").replace("-",
> "_").split(".")[0].upper() + '_H'
>
> The function always returns the same guard name (in my case
> _HOME_STEFAN_SRC_QEMU_QEMU_H)
> which won't work when used for more than one header file.
>
> I expect that blanks in the source path will also give unexpected results.
>
> Even when this function were fixed, I think that
> qapi-dir := $(BUILD_DIR)/qapi-generated
> would be better.
Doing a more careful analysis of the out-of-tree build, I noticed that
the system actually works correctly if the source directory is
"distclean".
I don't think we support building qemu out-of-tree if the source dir
hasn't been cleaned properly, so I don't think is worth pursuing this
patch anymore.
Just be aware that a "make clean" is not enough.
- [Qemu-devel] [PATCH] fix out of tree build, Stefano Stabellini, 2011/11/22
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] fix out of tree build, Stefan Hajnoczi, 2011/11/23
- Re: [Qemu-devel] [PATCH] fix out of tree build, Stefan Weil, 2011/11/28
- Re: [Qemu-devel] [PATCH] fix out of tree build, Anthony Liguori, 2011/11/28
- Re: [Qemu-devel] [PATCH] fix out of tree build, Stefan Weil, 2011/11/28
- Re: [Qemu-devel] [PATCH] fix out of tree build,
Stefano Stabellini <=
- [Qemu-devel] [PATCH 1/2] qapi: fix guardname generation, Michael Roth, 2011/11/29
- [Qemu-devel] [PATCH 2/2] Makefile: use full path for qapi-generated directory, Michael Roth, 2011/11/29
- Re: [Qemu-devel] [Qemu-trivial] [PATCH 2/2] Makefile: use full path for qapi-generated directory, Stefan Hajnoczi, 2011/11/30
- Re: [Qemu-devel] [Qemu-trivial] [PATCH 2/2] Makefile: use full path for qapi-generated directory, Stefano Stabellini, 2011/11/30
- Re: [Qemu-devel] [Qemu-trivial] [PATCH 2/2] Makefile: use full path for qapi-generated directory, Stefan Weil, 2011/11/30
- Re: [Qemu-devel] [Qemu-trivial] [PATCH 1/2] qapi: fix guardname generation, Stefan Hajnoczi, 2011/11/30