From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Thibault Subject: Re: [Help] How to build mini-OS with libc support, like Newlib? Date: Tue, 2 Sep 2014 12:55:35 +0200 Message-ID: <20140902105535.GF3779@type.bordeaux.inria.fr> References: <25cadf73.17a7c.148353c8946.Coremail.lelema.cn@gmail.com> <20140902074756.GA3779@type.bordeaux.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Lele Ma Cc: xen-devel List-Id: xen-devel@lists.xenproject.org Lele Ma, le Tue 02 Sep 2014 17:36:36 +0800, a =E9crit : > On Tue, Sep 2, 2014 at 3:47 PM, Samuel Thibault > wrote: > > > > Lele MA, le Tue 02 Sep 2014 15:20:32 +0800, a =E9crit : > > > If Newlib can be used to build mini-os, how to do it? Do I have to co= mpile a > > > cross-compiler first? > > > > Yes. But this all already handled by the Makefile in stubdom/, and see > > the end of README about the c-stubdom target which builds the c/ > > directory. > > > = > Thank you so much! It is great to build newlib so conveniently. But > when I run 'make c-stubdom' in stubdom/, it yields: > = > make: *** No rule to make target `mini-os-x86_64-c', needed by > `c-stubdom'. Stop" > = > Do you have any idea about how this happen? It's been years since I have had a look at that build system :) Apparently the c target somehow gets disabled, but you can add it by hand in = TARGETS=3D$(STUBDOM_TARGETS) c > BTW, after building xen, there is a new directory named > "newlib-x86_64/' in stubdom/. I am a newbie to newlib and don't know > what's this exactly. Is it the newlib that a stubdomain can use as the > libc? That's it, yes. Samuel