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] [REVISED PATCH] Allow use of a C library in Mini-OS

To: Keir.Fraser@xxxxxxxxxxxx
Subject: [Xen-devel] [REVISED PATCH] Allow use of a C library in Mini-OS
From: ramsdell@xxxxxxxxx (John D. Ramsdell)
Date: 26 May 2006 06:58:55 -0400
Cc: ramsdell@xxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, gm281@xxxxxxxxx
Delivery-date: Fri, 26 May 2006 03:59:20 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <E1FjHNO-0000Fc-PD@host-192-168-0-1-bcn-london>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3
Keir,

Enclosed is a revised patch that allows the use of a C library in
Mini-OS without modifying Mini-OS source files.  It incorporates
Gregor's request that links no longer be a prerequisite of the target
$(TARGET).  A nice side-effect of Gregor's requested change is I had
to look at the Makefile once again, and noticed the archive command
was written using ar, rather than $(AR).  AR is set by
/../../Config.mk to $(CROSS_COMPILE)ar, so without this change, cross
compilation can get confused.  The revised patch fixes this problem
too.  The text with the origin patch request follows.

I'd like to make it so that the following command builds libminios.a
using a cross-compiler that provides a full C library.

$ $PATH=${COMP_HOME}/bin:$PATH make CPPFLAGS=-DHAVE_LIBC libminios.a

The enclosed patch makes small changes to three files.  The Makefile
is changed so that the libminios.a target depends on the links target,
and lib/printf.c and lib/string.c are changed so their content is
omitted when HAVE_LIBC is defined.

John

Attachment: have_libc.patch
Description: Allow use of a C library in Mini-OS

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [REVISED PATCH] Allow use of a C library in Mini-OS, John D. Ramsdell <=