Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LnghY-0001pd-L4 for mharc-grub-devel@gnu.org; Sat, 28 Mar 2009 18:08:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LnghX-0001pW-3o for grub-devel@gnu.org; Sat, 28 Mar 2009 18:08:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnghW-0001pC-Fl for grub-devel@gnu.org; Sat, 28 Mar 2009 18:08:26 -0400 Received: from [199.232.76.173] (port=35870 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnghW-0001p9-9O for grub-devel@gnu.org; Sat, 28 Mar 2009 18:08:26 -0400 Received: from [74.93.104.97] (port=40821 helo=sunset.davemloft.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LnghV-0000TW-Rs for grub-devel@gnu.org; Sat, 28 Mar 2009 18:08:26 -0400 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id ECB0DC8C1F0; Sat, 28 Mar 2009 15:08:13 -0700 (PDT) Date: Sat, 28 Mar 2009 15:08:13 -0700 (PDT) Message-Id: <20090328.150813.43486476.davem@davemloft.net> To: grub-devel@gnu.org, rmh@aybabtu.com From: David Miller In-Reply-To: <20090328134234.GF8493@thorin> References: <20090328134234.GF8493@thorin> X-Mailer: Mew version 6.1 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: 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 22:08:27 -0000 From: Robert Millan Date: Sat, 28 Mar 2009 14:42:34 +0100 > On Sat, Mar 28, 2009 at 02:36:00PM +0800, 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. > > Can't we just use common.rmk instead? Adding a separate namespace for > util/ stuff looks like unnecessary complication. We already have e.g. > grub-probe, grub-setup, etc which don't need this hack. I think this would be nicer too. If there are target specific bits to deal with, we could just have a target.rmk specific rule that builds a library with those objects, or use some macro containing those target specific objects. And then the common.rmk rule links them into the common grub-emu rule.