All of lore.kernel.org
 help / color / mirror / Atom feed
* A patch for cross compiling
@ 2006-07-31  8:02 INAKOSHI Hiroya
  2006-08-16 10:34 ` [PATCH] For cross compiler INAKOSHI Hiroya
  0 siblings, 1 reply; 2+ messages in thread
From: INAKOSHI Hiroya @ 2006-07-31  8:02 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 164 bytes --]

It seems that new Qemu needs this patch for cross compiling some objects
under tools/ directory.

Tested by compiling (and booting Domain-0, just in case.)


[-- Attachment #2: cross_compile_tools.patch --]
[-- Type: text/plain, Size: 1581 bytes --]

diff -r 2d73714911c2 tools/blktap/lib/Makefile
--- a/tools/blktap/lib/Makefile	Thu Jul 27 10:43:34 2006 -0600
+++ b/tools/blktap/lib/Makefile	Fri Jul 28 21:27:00 2006 +0900
@@ -57,7 +57,7 @@ libblktap: $(OBJS)
 	      -o libblktap.so.$(MAJOR).$(MINOR) $^ $(LIBS)
 	ln -sf libblktap.so.$(MAJOR).$(MINOR) libblktap.so.$(MAJOR)
 	ln -sf libblktap.so.$(MAJOR) $@.so
-	ar rc libblktap.a $@.so
+	$(AR) rc libblktap.a $@.so
 
 .PHONY: TAGS all build clean install libblktap
 
diff -r 2d73714911c2 tools/libaio/src/Makefile
--- a/tools/libaio/src/Makefile	Thu Jul 27 10:43:34 2006 -0600
+++ b/tools/libaio/src/Makefile	Fri Jul 28 21:27:00 2006 +0900
@@ -1,3 +1,6 @@ prefix=/usr
+XEN_ROOT = ../../..
+include $(XEN_ROOT)/tools/Rules.mk
+
 prefix=/usr
 includedir=$(prefix)/include
 libdir=$(prefix)/lib
@@ -44,8 +47,8 @@ libaio_sobjs := $(patsubst %.c,%.os,$(li
 
 libaio.a: $(libaio_objs)
 	rm -f libaio.a
-	ar r libaio.a $^
-	ranlib libaio.a
+	$(AR) r libaio.a $^
+	$(RANLIB) libaio.a
 
 $(libname): $(libaio_sobjs) libaio.map
 	$(CC) $(SO_CFLAGS) -Wl,--version-script=libaio.map -Wl,-soname=$(soname) -o $@ $(libaio_sobjs) $(LINK_FLAGS)
diff -r 2d73714911c2 tools/xenstore/Makefile
--- a/tools/xenstore/Makefile	Thu Jul 27 10:43:34 2006 -0600
+++ b/tools/xenstore/Makefile	Fri Jul 28 21:27:00 2006 +0900
@@ -98,7 +98,7 @@ libxenstore.so.$(MAJOR).$(MINOR): xs.opi
 	$(CC) $(CFLAGS) $(LDFLAGS) -Wl,-soname -Wl,libxenstore.so.$(MAJOR) -shared -o $@ $^ -lpthread
 
 libxenstore.a: xs.o xs_lib.o
-	ar rcs libxenstore.a $^
+	$(AR) rcs libxenstore.a $^
 
 .PHONY: clean
 clean: testsuite-clean

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

* [PATCH] For cross compiler
  2006-07-31  8:02 A patch for cross compiling INAKOSHI Hiroya
@ 2006-08-16 10:34 ` INAKOSHI Hiroya
  0 siblings, 0 replies; 2+ messages in thread
From: INAKOSHI Hiroya @ 2006-08-16 10:34 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 287 bytes --]

This is a small patch that makes a cross compiler successfully compile
the sources under the tools directory.  This patch became necessary
after qemu-dm is updated to a newer version.

Tested by compiling on x86 and ia64.

Signed-off-by: Hiroya INAKOSHI <inakoshi.hiroya@jp.fujitsu.com>

[-- Attachment #2: cross_compile_11070.patch --]
[-- Type: text/plain, Size: 1586 bytes --]

diff -r befab551b0e1 tools/blktap/lib/Makefile
--- a/tools/blktap/lib/Makefile	Sun Aug 13 09:44:07 2006 +0100
+++ b/tools/blktap/lib/Makefile	Mon Aug 14 14:15:04 2006 +0900
@@ -61,7 +61,7 @@ libblktap.a: $(OBJS)
 	      -o libblktap.so.$(MAJOR).$(MINOR) $^ $(LIBS)
 	ln -sf libblktap.so.$(MAJOR).$(MINOR) libblktap.so.$(MAJOR)
 	ln -sf libblktap.so.$(MAJOR) libblktap.so
-	ar rc $@ libblktap.so
+	$(AR) rc $@ libblktap.so
 
 .PHONY: TAGS all build clean install libblktap
 
diff -r befab551b0e1 tools/libaio/src/Makefile
--- a/tools/libaio/src/Makefile	Sun Aug 13 09:44:07 2006 +0100
+++ b/tools/libaio/src/Makefile	Mon Aug 14 14:15:04 2006 +0900
@@ -1,3 +1,6 @@ prefix=/usr
+XEN_ROOT = ../../..
+include $(XEN_ROOT)/tools/Rules.mk
+
 prefix=/usr
 includedir=$(prefix)/include
 libdir=$(prefix)/lib
@@ -44,8 +47,8 @@ libaio_sobjs := $(patsubst %.c,%.os,$(li
 
 libaio.a: $(libaio_objs)
 	rm -f libaio.a
-	ar r libaio.a $^
-	ranlib libaio.a
+	$(AR) r libaio.a $^
+	$(RANLIB) libaio.a
 
 $(libname): $(libaio_sobjs) libaio.map
 	$(CC) $(SO_CFLAGS) -Wl,--version-script=libaio.map -Wl,-soname=$(soname) -o $@ $(libaio_sobjs) $(LINK_FLAGS)
diff -r befab551b0e1 tools/xenstore/Makefile
--- a/tools/xenstore/Makefile	Sun Aug 13 09:44:07 2006 +0100
+++ b/tools/xenstore/Makefile	Mon Aug 14 14:15:04 2006 +0900
@@ -98,7 +98,7 @@ libxenstore.so.$(MAJOR).$(MINOR): xs.opi
 	$(CC) $(CFLAGS) $(LDFLAGS) -Wl,-soname -Wl,libxenstore.so.$(MAJOR) -shared -o $@ $^ -lpthread
 
 libxenstore.a: xs.o xs_lib.o
-	ar rcs libxenstore.a $^
+	$(AR) rcs libxenstore.a $^
 
 .PHONY: clean
 clean: testsuite-clean

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

end of thread, other threads:[~2006-08-16 10:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-31  8:02 A patch for cross compiling INAKOSHI Hiroya
2006-08-16 10:34 ` [PATCH] For cross compiler INAKOSHI Hiroya

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.