tools: ocaml: push CFLAGS usage down into the specific bindings
PATCH 1/1 tools: ocaml: push CFLAGS usage down into the specific bindings
# HG changeset patch
# User Ian Campbell <[email protected]>
# Date 1301568069 -3600
# Node ID ae7532099ea5045278c9dcf8a593da497722a11f
# Parent 43ecf2418e94e89ea4fc28252e4710e7eee56098
tools: ocaml: push CFLAGS usage down into the specific bindings
So each binding only builds against what it requires.
tools/ocaml/common.make +0 -1
@@ -9,7 +9,6 @@ OCAMLLEX ?= ocamllex 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
tools/ocaml/libs/eventchn/Makefile +2 -0
@@ -2,6 +2,8 @@ TOPLEVEL=$(CURDIR)/../.. XEN_ROOT=$(TOPLEVEL)/../.. include $(TOPLEVEL)/common.make +CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_xeninclude) + OBJS = eventchn INTF = $(foreach obj, $(OBJS),$(obj).cmi) LIBS = eventchn.cma eventchn.cmxa
tools/ocaml/libs/xb/Makefile +2 -0
@@ -3,6 +3,8 @@ XEN_ROOT=$(TOPLEVEL)/../.. include $(TOPLEVEL)/common.make CFLAGS += -I../mmap +CFLAGS += $(CFLAGS_libxenctrl) # For xen_mb() +CFLAGS += $(CFLAGS_xeninclude) OCAMLINCLUDE += -I ../mmap .NOTPARALLEL:
tools/ocaml/libs/xl/Makefile +2 -0
@@ -2,6 +2,8 @@ TOPLEVEL=$(CURDIR)/../.. XEN_ROOT=$(TOPLEVEL)/../.. include $(TOPLEVEL)/common.make +CFLAGS += $(CFLAGS_libxenlight) + OBJS = xl INTF = xl.cmi LIBS = xl.cma xl.cmxa
Re: [PATCH] tools: ocaml: push CFLAGS usage down into the specific bindings [and 2 more messages]
Ian Campbell writes ("[Xen-devel] [PATCH] tools: ocaml: push CFLAGS usage down into the specific bindings"):
Quoted 5 lines
tools: ocaml: push CFLAGS usage down into the specific bindings
tools: ocaml: drop some commented out build rules.
tools: ocaml: drop redefinition of
xen_mb
Applied these three.
Ian.
PATCH 1/1 tools: ocaml: drop some commented out build rules
# HG changeset patch
# User Ian Campbell <[email protected]> # Date 1301568086 -3600
# Node ID c5c4486138cc92ad1cd4a7080d9a6074dd31b756 # Parent ae7532099ea5045278c9dcf8a593da497722a11f
tools: ocaml: drop some commented out build rules.
These are covered by tools/ocaml/Makefile.rules now
tools/ocaml/libs/xs/Makefile +0 -8
@@ -23,14 +23,6 @@ libs: $(LIBS) 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)
PATCH 1/1 tools: ocaml: drop redefinition of xen_mb
# HG changeset patch
# User Ian Campbell <[email protected]> # Date 1301568095 -3600
# Node ID b56a21124c7f02979cf96b2404c6ecc0bc48e6f7 # Parent c5c4486138cc92ad1cd4a7080d9a6074dd31b756
tools: ocaml: drop redefinition of xen_mb
This is always available to the in-tree build.
tools/ocaml/libs/xb/xs_ring_stubs.c +0 -4
@@ -35,10 +35,6 @@#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) {