qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH RFT for-1.5 v1 0/2] Fix DTC sub-module issues
@ 2013-04-22  4:40 peter.crosthwaite
  2013-04-22  4:40 ` [Qemu-devel] [PATCH RFT for-1.5 v1 1/2] Makefile: Don't build shared libfdt peter.crosthwaite
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: peter.crosthwaite @ 2013-04-22  4:40 UTC (permalink / raw)
  To: qemu-devel; +Cc: blauwirbel, pbonzini, peter.maydell

From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>

Two issues reported by Blue for building the DTC submodule with clang
and mingw.


Peter Crosthwaite (2):
  Makefile: Don't build shared libfdt
  Makefile: Use QEMU_FLAGS for DTC compilation

 Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

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

* [Qemu-devel] [PATCH RFT for-1.5 v1 1/2] Makefile: Don't build shared libfdt
  2013-04-22  4:40 [Qemu-devel] [PATCH RFT for-1.5 v1 0/2] Fix DTC sub-module issues peter.crosthwaite
@ 2013-04-22  4:40 ` peter.crosthwaite
  2013-04-22  4:41 ` [Qemu-devel] [PATCH RFT for-1.5 v1 2/2] Makefile: Use QEMU_FLAGS for DTC compilation peter.crosthwaite
  2013-04-26  0:52 ` [Qemu-devel] [PATCH RFT for-1.5 v1 0/2] Fix DTC sub-module issues Edgar E. Iglesias
  2 siblings, 0 replies; 4+ messages in thread
From: peter.crosthwaite @ 2013-04-22  4:40 UTC (permalink / raw)
  To: qemu-devel; +Cc: blauwirbel, pbonzini, peter.maydell

From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>

The submodule DTC should just build and use DTC as static (the whole
motivation for using submod is lack of widespread distro support).

The .so causes build failures on some platforms, so adjust the make
target to just build the static lib.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
---

 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 88375dc..c4847aa 100644
--- a/Makefile
+++ b/Makefile
@@ -149,7 +149,7 @@ DTC_MAKE_ARGS=-I$(SRC_PATH)/dtc VPATH=$(SRC_PATH)/dtc -C dtc V="$(V)" LIBFDT_src
 DTC_CFLAGS=$(CFLAGS) $(extra_cflags) -I$(BUILD_DIR)/dtc -I$(SRC_PATH)/dtc -I$(SRC_PATH)/dtc/libfdt
 
 subdir-dtc:dtc/libfdt dtc/tests
-	$(call quiet-command,$(MAKE) $(DTC_MAKE_ARGS) CPPFLAGS="$(DTC_CFLAGS)" LDFLAGS="$(LDFLAGS)" ARFLAGS="$(ARFLAGS)" CC="$(CC)" AR="$(AR)" LD="$(LD)" $(SUBDIR_MAKEFLAGS) libfdt,)
+	$(call quiet-command,$(MAKE) $(DTC_MAKE_ARGS) CPPFLAGS="$(DTC_CFLAGS)" LDFLAGS="$(LDFLAGS)" ARFLAGS="$(ARFLAGS)" CC="$(CC)" AR="$(AR)" LD="$(LD)" $(SUBDIR_MAKEFLAGS) libfdt/libfdt.a,)
 
 dtc/%:
 	mkdir -p $@
-- 
1.7.0.4

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

* [Qemu-devel] [PATCH RFT for-1.5 v1 2/2] Makefile: Use QEMU_FLAGS for DTC compilation
  2013-04-22  4:40 [Qemu-devel] [PATCH RFT for-1.5 v1 0/2] Fix DTC sub-module issues peter.crosthwaite
  2013-04-22  4:40 ` [Qemu-devel] [PATCH RFT for-1.5 v1 1/2] Makefile: Don't build shared libfdt peter.crosthwaite
@ 2013-04-22  4:41 ` peter.crosthwaite
  2013-04-26  0:52 ` [Qemu-devel] [PATCH RFT for-1.5 v1 0/2] Fix DTC sub-module issues Edgar E. Iglesias
  2 siblings, 0 replies; 4+ messages in thread
From: peter.crosthwaite @ 2013-04-22  4:41 UTC (permalink / raw)
  To: qemu-devel; +Cc: blauwirbel, pbonzini, peter.maydell

From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>

Build DTC as QEMU is built. Fixes the issue with mingw build which can't
handles DTC's default CFLAGS.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
---

 Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index c4847aa..385e314 100644
--- a/Makefile
+++ b/Makefile
@@ -146,10 +146,10 @@ $(SRC_PATH)/pixman/configure:
 	(cd $(SRC_PATH)/pixman; autoreconf -v --install)
 
 DTC_MAKE_ARGS=-I$(SRC_PATH)/dtc VPATH=$(SRC_PATH)/dtc -C dtc V="$(V)" LIBFDT_srcdir=$(SRC_PATH)/dtc/libfdt
-DTC_CFLAGS=$(CFLAGS) $(extra_cflags) -I$(BUILD_DIR)/dtc -I$(SRC_PATH)/dtc -I$(SRC_PATH)/dtc/libfdt
+DTC_CFLAGS=$(CFLAGS) $(QEMU_CFLAGS) -I$(BUILD_DIR)/dtc -I$(SRC_PATH)/dtc -I$(SRC_PATH)/dtc/libfdt
 
 subdir-dtc:dtc/libfdt dtc/tests
-	$(call quiet-command,$(MAKE) $(DTC_MAKE_ARGS) CPPFLAGS="$(DTC_CFLAGS)" LDFLAGS="$(LDFLAGS)" ARFLAGS="$(ARFLAGS)" CC="$(CC)" AR="$(AR)" LD="$(LD)" $(SUBDIR_MAKEFLAGS) libfdt/libfdt.a,)
+	$(call quiet-command,$(MAKE) $(DTC_MAKE_ARGS) CFLAGS="$(DTC_CFLAGS)" LDFLAGS="$(LDFLAGS)" ARFLAGS="$(ARFLAGS)" CC="$(CC)" AR="$(AR)" LD="$(LD)" $(SUBDIR_MAKEFLAGS) libfdt/libfdt.a,)
 
 dtc/%:
 	mkdir -p $@
-- 
1.7.0.4

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

* Re: [Qemu-devel] [PATCH RFT for-1.5 v1 0/2] Fix DTC sub-module issues
  2013-04-22  4:40 [Qemu-devel] [PATCH RFT for-1.5 v1 0/2] Fix DTC sub-module issues peter.crosthwaite
  2013-04-22  4:40 ` [Qemu-devel] [PATCH RFT for-1.5 v1 1/2] Makefile: Don't build shared libfdt peter.crosthwaite
  2013-04-22  4:41 ` [Qemu-devel] [PATCH RFT for-1.5 v1 2/2] Makefile: Use QEMU_FLAGS for DTC compilation peter.crosthwaite
@ 2013-04-26  0:52 ` Edgar E. Iglesias
  2 siblings, 0 replies; 4+ messages in thread
From: Edgar E. Iglesias @ 2013-04-26  0:52 UTC (permalink / raw)
  To: peter.crosthwaite; +Cc: blauwirbel, pbonzini, qemu-devel, peter.maydell

On Mon, Apr 22, 2013 at 02:40:09PM +1000, peter.crosthwaite@xilinx.com wrote:
> From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
> 
> Two issues reported by Blue for building the DTC submodule with clang
> and mingw.

Applied

Fixes the mingw build on my setup, thanks.

Cheers,
Edgar

> 
> 
> Peter Crosthwaite (2):
>   Makefile: Don't build shared libfdt
>   Makefile: Use QEMU_FLAGS for DTC compilation
> 
>  Makefile |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> 

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

end of thread, other threads:[~2013-04-26  0:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-22  4:40 [Qemu-devel] [PATCH RFT for-1.5 v1 0/2] Fix DTC sub-module issues peter.crosthwaite
2013-04-22  4:40 ` [Qemu-devel] [PATCH RFT for-1.5 v1 1/2] Makefile: Don't build shared libfdt peter.crosthwaite
2013-04-22  4:41 ` [Qemu-devel] [PATCH RFT for-1.5 v1 2/2] Makefile: Use QEMU_FLAGS for DTC compilation peter.crosthwaite
2013-04-26  0:52 ` [Qemu-devel] [PATCH RFT for-1.5 v1 0/2] Fix DTC sub-module issues Edgar E. Iglesias

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