WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 20 of 30] tools: ocaml: push CFLAGS usage down into t

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 20 of 30] tools: ocaml: push CFLAGS usage down into the specific bindings
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Date: Mon, 21 Mar 2011 14:44:43 +0000
Cc: Ian Campbell <ian.campbell@xxxxxxxxxx>
Delivery-date: Mon, 21 Mar 2011 08:07:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1300718663@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1300718506 0
# Node ID 2276552067f8cad6123115534524bfa4bdbadb30
# Parent  27741a8c4a6fe0d6abf239977538c013bd474998
tools: ocaml: push CFLAGS usage down into the specific bindings

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

diff -r 27741a8c4a6f -r 2276552067f8 tools/ocaml/common.make
--- a/tools/ocaml/common.make   Mon Mar 21 14:41:46 2011 +0000
+++ b/tools/ocaml/common.make   Mon Mar 21 14:41:46 2011 +0000
@@ -9,7 +9,6 @@ OCAMLYACC ?= ocamlyacc
 OCAMLYACC ?= ocamlyacc
 
 CFLAGS += -fPIC -Werror
-CFLAGS += $(CFLAGS_xeninclude) $(CFLAGS_libxenctrl) $(CFLAGS_libxenstore) 
$(CFLAGS_libxenlight)
 CFLAGS-$(CONFIG_Linux) += -I/usr/lib64/ocaml -I/usr/lib/ocaml
 CFLAGS-$(CONFIG_NetBSD) += -I/usr/pkg/lib/ocaml -fPIC
 
diff -r 27741a8c4a6f -r 2276552067f8 tools/ocaml/libs/eventchn/Makefile
--- a/tools/ocaml/libs/eventchn/Makefile        Mon Mar 21 14:41:46 2011 +0000
+++ b/tools/ocaml/libs/eventchn/Makefile        Mon Mar 21 14:41:46 2011 +0000
@@ -1,6 +1,8 @@ TOPLEVEL=$(CURDIR)/../..
 TOPLEVEL=$(CURDIR)/../..
 XEN_ROOT=$(TOPLEVEL)/../..
 include $(TOPLEVEL)/common.make
+
+CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_xeninclude)
 
 OBJS = eventchn
 INTF = $(foreach obj, $(OBJS),$(obj).cmi)
diff -r 27741a8c4a6f -r 2276552067f8 tools/ocaml/libs/xb/Makefile
--- a/tools/ocaml/libs/xb/Makefile      Mon Mar 21 14:41:46 2011 +0000
+++ b/tools/ocaml/libs/xb/Makefile      Mon Mar 21 14:41:46 2011 +0000
@@ -3,6 +3,8 @@ include $(TOPLEVEL)/common.make
 include $(TOPLEVEL)/common.make
 
 CFLAGS += -I../mmap
+CFLAGS += $(CFLAGS_libxenctrl) # For xen_mb()
+CFLAGS += $(CFLAGS_xeninclude)
 OCAMLINCLUDE += -I ../mmap
 
 .NOTPARALLEL:
diff -r 27741a8c4a6f -r 2276552067f8 tools/ocaml/libs/xb/xs_ring_stubs.c
--- a/tools/ocaml/libs/xb/xs_ring_stubs.c       Mon Mar 21 14:41:46 2011 +0000
+++ b/tools/ocaml/libs/xb/xs_ring_stubs.c       Mon Mar 21 14:41:46 2011 +0000
@@ -34,10 +34,6 @@
 #include "mmap_stubs.h"
 
 #define GET_C_STRUCT(a) ((struct mmap_interface *) a)
-
-#ifndef xen_mb
-#define xen_mb()       mb()
-#endif
 
 static int xs_ring_read(struct mmap_interface *interface,
                              char *buffer, int len)
diff -r 27741a8c4a6f -r 2276552067f8 tools/ocaml/libs/xl/Makefile
--- a/tools/ocaml/libs/xl/Makefile      Mon Mar 21 14:41:46 2011 +0000
+++ b/tools/ocaml/libs/xl/Makefile      Mon Mar 21 14:41:46 2011 +0000
@@ -1,6 +1,8 @@ TOPLEVEL=$(CURDIR)/../..
 TOPLEVEL=$(CURDIR)/../..
 XEN_ROOT=$(TOPLEVEL)/../..
 include $(TOPLEVEL)/common.make
+
+CFLAGS += $(CFLAGS_libxenlight)
 
 OBJS = xl
 INTF = xl.cmi
diff -r 27741a8c4a6f -r 2276552067f8 tools/ocaml/libs/xs/Makefile
--- a/tools/ocaml/libs/xs/Makefile      Mon Mar 21 14:41:46 2011 +0000
+++ b/tools/ocaml/libs/xs/Makefile      Mon Mar 21 14:41:46 2011 +0000
@@ -23,14 +23,6 @@ xs_OBJS = $(OBJS)
 xs_OBJS = $(OBJS)
 OCAML_NOC_LIBRARY = xs
 
-#xs.cmxa: $(foreach obj,$(OBJS),$(obj).cmx)
-#      $(E) " MLLIB     $@"
-#      $(Q)$(OCAMLOPT) $(OCAMLOPTFLAGS) -a -o $@ $(foreach 
obj,$(OBJS),$(obj).cmx)
-#
-#xs.cma: $(foreach obj,$(OBJS),$(obj).cmo)
-#      $(E) " MLLIB     $@"
-#      $(Q)$(OCAMLC) -a -o $@ $(foreach obj,$(OBJS),$(obj).cmo)
-
 .PHONY: install
 install: $(LIBS) META
        mkdir -p $(OCAMLDESTDIR)

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

<Prev in Thread] Current Thread [Next in Thread>