* [Qemu-devel] [PATCH for-1.5 v2] rules.mk: Fix build breakage
@ 2013-04-29 14:52 Dunrong Huang
2013-04-29 15:38 ` Paolo Bonzini
2013-04-30 18:58 ` Anthony Liguori
0 siblings, 2 replies; 3+ messages in thread
From: Dunrong Huang @ 2013-04-29 14:52 UTC (permalink / raw)
To: qemu-devel; +Cc: Blue Swirl, Paolo Bonzini, Peter Crosthwaite
The following error occurs when building dtc module:
CHK version_gen.h
CC libfdt/fdt.o
cc1: error: dtc: No such file or directory [-Werror]
cc1: all warnings being treated as errors
make[1]: *** [libfdt/fdt.o] Error 1
make: *** [subdir-dtc] Error 2
In rules.mak, "-I$(<D) -I$(@D)" was expanded to "-Idtc -I." when
building submodule dct. Due to the using of "-Wmissing-include-dirs,
a warning would be rarsed. To avoid it, add "-I$(<D) -I$(@D)" to
QEMU_INCLUDES instead of QEMU_CFLAGS so that QEMU_CFLAGS does not
contain the "-Idtc".
Cc: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Cc: Blue Swirl <blauwirbel@gmail.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
---
v1 -> v2:
* Fix it by adding "-I$(<D) -I$(@D)" to QEMU_INCLUDES instead of
QEMU_CFLAGS(thanks to Paolo Bonzini for correction)
rules.mak | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rules.mak b/rules.mak
index 292a422..2572070 100644
--- a/rules.mak
+++ b/rules.mak
@@ -15,7 +15,7 @@ MAKEFLAGS += -rR
QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(*D)/$(*F).d
# Same as -I$(SRC_PATH) -I., but for the nested source/object directories
-QEMU_CFLAGS += -I$(<D) -I$(@D)
+QEMU_INCLUDES += -I$(<D) -I$(@D)
%.o: %.c
$(call quiet-command,$(CC) $(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@")
--
1.8.1.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH for-1.5 v2] rules.mk: Fix build breakage
2013-04-29 14:52 [Qemu-devel] [PATCH for-1.5 v2] rules.mk: Fix build breakage Dunrong Huang
@ 2013-04-29 15:38 ` Paolo Bonzini
2013-04-30 18:58 ` Anthony Liguori
1 sibling, 0 replies; 3+ messages in thread
From: Paolo Bonzini @ 2013-04-29 15:38 UTC (permalink / raw)
To: Dunrong Huang; +Cc: Blue Swirl, Peter Crosthwaite, qemu-devel
Il 29/04/2013 16:52, Dunrong Huang ha scritto:
> The following error occurs when building dtc module:
>
> CHK version_gen.h
> CC libfdt/fdt.o
> cc1: error: dtc: No such file or directory [-Werror]
> cc1: all warnings being treated as errors
> make[1]: *** [libfdt/fdt.o] Error 1
> make: *** [subdir-dtc] Error 2
>
> In rules.mak, "-I$(<D) -I$(@D)" was expanded to "-Idtc -I." when
> building submodule dct. Due to the using of "-Wmissing-include-dirs,
> a warning would be rarsed. To avoid it, add "-I$(<D) -I$(@D)" to
> QEMU_INCLUDES instead of QEMU_CFLAGS so that QEMU_CFLAGS does not
> contain the "-Idtc".
>
> Cc: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
> Cc: Blue Swirl <blauwirbel@gmail.com>
> Cc: Paolo Bonzini <pbonzini@redhat.com>
> Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
> ---
> v1 -> v2:
> * Fix it by adding "-I$(<D) -I$(@D)" to QEMU_INCLUDES instead of
> QEMU_CFLAGS(thanks to Paolo Bonzini for correction)
>
> rules.mak | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/rules.mak b/rules.mak
> index 292a422..2572070 100644
> --- a/rules.mak
> +++ b/rules.mak
> @@ -15,7 +15,7 @@ MAKEFLAGS += -rR
> QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(*D)/$(*F).d
>
> # Same as -I$(SRC_PATH) -I., but for the nested source/object directories
> -QEMU_CFLAGS += -I$(<D) -I$(@D)
> +QEMU_INCLUDES += -I$(<D) -I$(@D)
>
> %.o: %.c
> $(call quiet-command,$(CC) $(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@")
>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH for-1.5 v2] rules.mk: Fix build breakage
2013-04-29 14:52 [Qemu-devel] [PATCH for-1.5 v2] rules.mk: Fix build breakage Dunrong Huang
2013-04-29 15:38 ` Paolo Bonzini
@ 2013-04-30 18:58 ` Anthony Liguori
1 sibling, 0 replies; 3+ messages in thread
From: Anthony Liguori @ 2013-04-30 18:58 UTC (permalink / raw)
To: Dunrong Huang, qemu-devel; +Cc: Blue Swirl, Paolo Bonzini, Peter Crosthwaite
Applied. Thanks.
Regards,
Anthony Liguori
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-04-30 18:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-29 14:52 [Qemu-devel] [PATCH for-1.5 v2] rules.mk: Fix build breakage Dunrong Huang
2013-04-29 15:38 ` Paolo Bonzini
2013-04-30 18:58 ` Anthony Liguori
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).