Received: from list by lists.gnu.org with archive (Exim 4.71) id 1QDDDM-0007A2-Mj for mharc-grub-devel@gnu.org; Fri, 22 Apr 2011 06:03:52 -0400 Received: from eggs.gnu.org ([140.186.70.92]:38986) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDDDK-00077X-8F for grub-devel@gnu.org; Fri, 22 Apr 2011 06:03:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QDDDJ-00040D-Hh for grub-devel@gnu.org; Fri, 22 Apr 2011 06:03:50 -0400 Received: from europa.lunarpages.com ([67.210.116.225]:52512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDDDJ-0003zh-Dg for grub-devel@gnu.org; Fri, 22 Apr 2011 06:03:49 -0400 Received: from pool-98-118-248-20.clppva.fios.verizon.net ([98.118.248.20] helo=[192.168.1.10]) by europa.lunarpages.com with esmtpsa (SSLv3:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1QDDDE-0001OZ-2u for grub-devel@gnu.org; Fri, 22 Apr 2011 03:03:44 -0700 Subject: Question: how to add new menu functionality From: Stephen Torri To: grub-devel@gnu.org Content-Type: text/plain; charset="UTF-8" Date: Fri, 22 Apr 2011 06:03:41 -0400 Message-ID: <1303466621.24395.8.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 (2.32.2-1.fc14) Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - europa.lunarpages.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - torri.org X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 67.210.116.225 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2011 10:03:51 -0000 I am using the released grub-1.98 code for my development. The problem I am having is how to add new functionality to the 'normal' module. I would like to add a new feature to the code using some functions that don't presently exist in the code. When I coded the functions I had to manually edit def-normal.lst to get the compiler to be happy and successfully complete the build. This was not enough because when used the new grub2 loader on a drive I got an error saying "error: the symbol 'work' not found" is displayed. This error code is reported because the symbol cannot be found in a symbol table. So to summarize what I am asking: 1. How do you configure the build system to compile with new files (e.g. new command for command line)? 2. How do you configure the build system to compile with new functions contained in existing files? 3. Is there a tutorial on how to develop for Grub2? If I missed that in my search I am sorry for not reading that first. 4. How do you debug your Grub2 builds? The web had references to a patch to add in GDB functionality. Stephen