[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [REVISED PATCH] Allow use of a C library in Mini-OS



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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.