From: Samuel Thibault Subject: Re: Pesky '#define current' in mini-os/sched.h Date: Tue, 28 Apr 2009 22:04:44 +0200 Message-ID: <20090428200444.GI5777@const.famille.thibault.fr> References: <20090427185955.GF5965@const.famille.thibault.fr> <873abt51e5.fsf@tac.ki.iif.hu> <20090427200544.GN5965@const.famille.thibault.fr> <87skjt3koh.fsf@tac.ki.iif.hu> <20090427211132.GR5965@const.famille.thibault.fr> <87eivc7jbg.fsf@tac.ki.iif.hu> <20090428181211.GD5777@const.famille.thibault.fr> <87zle062eq.fsf@tac.ki.iif.hu> <20090428185908.GG5777@const.famille.thibault.fr> <87tz485zu2.fsf@tac.ki.iif.hu> 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: <87tz485zu2.fsf@tac.ki.iif.hu> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ferenc Wagner Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Ferenc Wagner, le Tue 28 Apr 2009 21:43:17 +0200, a =E9crit : > > Just take that implementation and it will get compiled in. >=20 > Sorry for sounding dense... How do I "take that implementation"? I > guess you don't mean cut&paste, do you? Yep. > >>> Now, I'm wondering about the ncurses requirement: is grub2 really > >>> using it for the bootloader, not just for the userland tool? > >>=20 > >> No, it does not require it for the bootloader. My plan is to port t= he > >> grub-emu userland tool instead, and finally patch kexec on that, jus= t > >> like you did with grub1. > > > > Err, I didn't port the userland tool, I ported the bootloader. The > > userland grub1 tool does not even include code to boot kernels, > > actually... >=20 > Yes, it's all the same for grub2. Err, does grub2 compiles ncurses into the bootloader too? > but neither is applicable to c-stubdom, where the Makefile stops at > creating an archive. I can't add -lncurses there... And generally I > feel like being on a totally wrong track, as this part doesn't seem to > involve minios at all. Oh right, sorry. The final link is not done there but by the minios paragraph of stubdom/Makefile. You can either set APP_LDLIBS to -lncurses there, to override the empty default of mini-os/Makefile, or add -lncurses to APP_LDLIBS in the ifeq($libc),y) section along others. Samuel