Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LnS9L-000281-ID for mharc-grub-devel@gnu.org; Sat, 28 Mar 2009 02:36:11 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LnS9I-00024p-Oa for grub-devel@gnu.org; Sat, 28 Mar 2009 02:36:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnS9D-0001yM-V3 for grub-devel@gnu.org; Sat, 28 Mar 2009 02:36:08 -0400 Received: from [199.232.76.173] (port=48088 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnS9D-0001y8-Qm for grub-devel@gnu.org; Sat, 28 Mar 2009 02:36:03 -0400 Received: from ti-out-0910.google.com ([209.85.142.185]:49688) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LnS9D-0000GX-A1 for grub-devel@gnu.org; Sat, 28 Mar 2009 02:36:03 -0400 Received: by ti-out-0910.google.com with SMTP id y8so805375tia.10 for ; Fri, 27 Mar 2009 23:36:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=6CaW+ozteCUnjFVrbafk/x8JjUtXRcwqoatHOeCEZFw=; b=KS5Y+n7twx62Lb/249IYM6/7AgImeo9rJdoA0R+eEs4o+ml1OuDq/vnLG79UNE2SL2 SqDKXymEzZRhWG5rmuSH6qGplrrSADGo1+Ru//a1LhkPq65bjUkz/JEhnsrTJRrUMOJJ LZxjPVHj5bG8BajhWOztVej2m/1OFS1N7JcgM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=ZXutYNMD8+BAOfdF58OV++xyImyfn6RJI2ck/IWv8osxdJ44EFchj67KJtDaDHvO5Q Me/pAbJNaWipCqevKez5+rD15UkKVA060/KK6JNCaaTjvM5qVEgVSLKq6hYeK/P/Aj73 Qc+HGqYDMrYGZQcCHc7YW6touVGNDn/Wn7Ang= MIME-Version: 1.0 Received: by 10.110.43.18 with SMTP id q18mr3355430tiq.7.1238222160555; Fri, 27 Mar 2009 23:36:00 -0700 (PDT) Date: Sat, 28 Mar 2009 14:36:00 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: 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 06:36:09 -0000 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. -- Bean