From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LnSfA-0006ig-FC for mharc-grub-devel@gnu.org; Sat, 28 Mar 2009 03:09:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LnSf9-0006hr-4I for grub-devel@gnu.org; Sat, 28 Mar 2009 03:09:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnSf4-0006gy-J0 for grub-devel@gnu.org; Sat, 28 Mar 2009 03:09:02 -0400 Received: from [199.232.76.173] (port=45224 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnSf4-0006gr-ET for grub-devel@gnu.org; Sat, 28 Mar 2009 03:08:58 -0400 Received: from mx20.gnu.org ([199.232.41.8]:50452) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LnSf3-0002SN-PT for grub-devel@gnu.org; Sat, 28 Mar 2009 03:08:58 -0400 Received: from mta-out.inet.fi ([195.156.147.13] helo=kirsi2.inet.fi) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LnSex-0000sA-Uy for grub-devel@gnu.org; Sat, 28 Mar 2009 03:08:52 -0400 Received: from [192.168.1.102] (84.248.105.254) by kirsi2.inet.fi (8.5.014) id 49CA1EE500203432 for grub-devel@gnu.org; Sat, 28 Mar 2009 09:08:45 +0200 Message-ID: <49CDCCFC.5060909@nic.fi> Date: Sat, 28 Mar 2009 09:08:44 +0200 From: =?ISO-8859-1?Q?Vesa_J=E4=E4skel=E4inen?= User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: The development of GRUB 2 References: In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: Re: Idea: move grub-emu to a separate platform X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 07:09:03 -0000 Bean wrote: > Hi, > > Currently, the grub-emu is in every rmk files, but I don't see the > difference between grub-emu in i386-pc, i386-coreboot or i386-efi. In > fact, grub-emu runs inside the host os, it can't access firmware > facility anyway. One quick fix to move grub-emu to i386.rmk, but we > could also put it in a new platform altogether, something like > i386-host. > > The advantage of using a separate platform is that we could now use > modules like the other platform, instead of embedding all source files > in grub-emu. For example, whenever we add a new command, we need to > modify the source list of grub-emu. But if we build i386-host like > other platform, we only need to change common.rmk. > > What's more, i386-host is not just a testing tool, it could be a real > boot loader. kboot provides a minimum linux environment. We could use > i386-host as a front end, and use kexec to launch additional boot > files. > I think I have from time to time proposed this too :) So I am all for it :) But my point was more to cleanup makefiles in sensible way and then on PC to allow more advanced automated (module) testing.