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

Re: [Xen-devel] [PATCH 1 of 6] [OCAML] Rename the ocaml libraries

To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 1 of 6] [OCAML] Rename the ocaml libraries
From: Jonathan Ludlam <Jonathan.Ludlam@xxxxxxxxxxxxx>
Date: Thu, 13 Oct 2011 13:23:42 +0100
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 13 Oct 2011 05:24:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1318496205.21903.799.camel@xxxxxxxxxxxxxxxxxxxxxx>
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>
References: <patchbomb.1317983158@xxxxxxxxxxxxxxxxxxxxxxxxxx> <ffbc5e9929d52531a9ec.1317983159@xxxxxxxxxxxxxxxxxxxxxxxxxx> <1318496205.21903.799.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcyJotdonmlkEOTEQEKHTgyYTFAwtg==
Thread-topic: [Xen-devel] [PATCH 1 of 6] [OCAML] Rename the ocaml libraries
They are slightly different from the current rules; the idea is to pack the 
already compiled cmx files into another cmx file, but in principle we could add 
these rules into the generic Makefile.rules to avoid some duplication.

I thought about making a new template for packed libs, but that seemed a bit 
overkill.

Jon

Sent from my iPad

On 13 Oct 2011, at 09:56, "Ian Campbell" <Ian.Campbell@xxxxxxxxxx> wrote:

> Bit late but:
> 
> On Fri, 2011-10-07 at 11:25 +0100, Jon Ludlam wrote:
>> diff -r 3d1664cc9e45 -r ffbc5e9929d5 tools/ocaml/libs/xb/Makefile
>> --- a/tools/ocaml/libs/xb/Makefile
>> +++ b/tools/ocaml/libs/xb/Makefile
>> @@ -25,22 +26,30 @@
> [...]
>> +xenbus.cmx : $(foreach obj, $(OBJS), $(obj).cmx)
>> +       $(E) " CMX       $@"
>> +       $(OCAMLOPT) -pack -o $@ $^
>> +
>> +xenbus.cmo : $(foreach obj, $(OBJS), $(obj).cmo)
>> +       $(E) " CMO       $@"
>> +       $(OCAMLC) -pack -o $@ $^
>> [...]
>> diff -r 3d1664cc9e45 -r ffbc5e9929d5 tools/ocaml/libs/xs/Makefile
>> --- a/tools/ocaml/libs/xs/Makefile
>> +++ b/tools/ocaml/libs/xs/Makefile
>> @@ -20,18 +21,27 @@
> [...]
>> +xenstore.cmx : $(foreach obj, $(OBJS), $(obj).cmx)
>> +       $(E) " CMX      $@"
>> +       $(Q)$(OCAMLOPT) -pack -o $@ $^
>> +
>> +xenstore.cmo : $(foreach obj, $(OBJS), $(obj).cmo)
>> +       $(E) " CMO      $@"
>> +       $(Q)$(OCAMLC) -pack -o $@ $^
>> +
> 
> These can't use the generic rules in tools/ocaml/Makefile.rules?
> 
> I noticed because:
> 
> # HG changeset patch
> # User Ian Campbell <ian.campbell@xxxxxxxxxx>
> # Date 1318496187 -3600
> # Node ID 333fef90be8250379c294daf15d12b234d95f824
> # Parent  9738d92a3625d6b6b3c49badc0ca9e95a67b2bbd
> ocaml: align build output
> 
> Fix:
> MLI       op.mli
> MLI      op.cmi
> MLI       partial.mli
> MLI      partial.cmi
> MLI       packet.mli
> 
> 
> Signed-off-by: Ian Cmpabell <ian.campbell@xxxxxxxxxx>
> 
> diff -r 9738d92a3625 -r 333fef90be82 tools/ocaml/libs/xb/Makefile
> --- a/tools/ocaml/libs/xb/Makefile    Thu Oct 13 09:45:09 2011 +0100
> +++ b/tools/ocaml/libs/xb/Makefile    Thu Oct 13 09:56:27 2011 +0100
> @@ -31,15 +31,15 @@ xenbus_C_OBJS = xs_ring_stubs xenbus_stu
> OCAML_LIBRARY = xenbus
> 
> xenbus.cmx : $(foreach obj, $(OBJS), $(obj).cmx)
> -    $(E) " CMX       $@"
> +    $(E) " CMX      $@"
>    $(OCAMLOPT) -pack -o $@ $^
> 
> xenbus.cmo : $(foreach obj, $(OBJS), $(obj).cmo)
> -    $(E) " CMO       $@"
> +    $(E) " CMO      $@"
>    $(OCAMLC) -pack -o $@ $^
> 
> %.mli: %.ml
> -    $(E) " MLI       $@"
> +    $(E) " MLI      $@"
>    $(Q)$(OCAMLC) $(OCAMLINCLUDE) -i $< $o
> 
> .PHONY: install
> 
> 

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