From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VFjDq-0003Tf-HF for mharc-grub-devel@gnu.org; Sat, 31 Aug 2013 07:20:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFjDg-0003RJ-5F for grub-devel@gnu.org; Sat, 31 Aug 2013 07:20:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VFjDX-0000MG-OR for grub-devel@gnu.org; Sat, 31 Aug 2013 07:19:56 -0400 Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:63749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFjDX-0000MC-FL for grub-devel@gnu.org; Sat, 31 Aug 2013 07:19:47 -0400 Received: by mail-la0-f46.google.com with SMTP id eh20so2254334lab.5 for ; Sat, 31 Aug 2013 04:19:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=Ki3HrGRPi+JVkoJx6vOaeAtHhe6rAW/CSbgV6Zva7Ek=; b=DB9CsW1vsjwWJnMe1PtpVW7aFRCxPN8oWEE2AchHESBrY+DngLqd7nnkUzMVhZ3tts Ddd+8LoSmlLoaGQEzY6Q2EXXRBayNAe2DHrjh7N+kWdk48amXyjSAlKb1yBwN6f/BlvV tLkJBgwzkZdSzKEVvONc/sSN/TpdmKS/hJ1SeWgLhhp0+ZvPr1SDRaT7yB5sPRFe2u1D ruWUC/XmiulDLJ4Z3O/sDt7Xe+826J5yRKJb+/HdxEGfAikIyla9VYQciBpGzmphGB35 BsT9+NjsV7sJy+xXJtE3hWfYb12auzvErndFA70L0M9gbIuX2niY71jS/fnprxlyh1MG RwSA== X-Received: by 10.152.30.74 with SMTP id q10mr1646673lah.27.1377947985995; Sat, 31 Aug 2013 04:19:45 -0700 (PDT) Received: from opensuse.site (ppp79-139-160-84.pppoe.spdop.ru. [79.139.160.84]) by mx.google.com with ESMTPSA id w10sm1223577lbv.6.1969.12.31.16.00.00 (version=SSLv3 cipher=RC4-SHA bits=128/128); Sat, 31 Aug 2013 04:19:45 -0700 (PDT) Date: Sat, 31 Aug 2013 15:19:44 +0400 From: Andrey Borzenkov To: The development of GNU GRUB Subject: Re: How to develop and integrate brand new module into GRUB2? Message-ID: <20130831151944.53a86b21@opensuse.site> In-Reply-To: References: X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.18; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22e Cc: mattroisang@gmail.com 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: Sat, 31 Aug 2013 11:20:04 -0000 В Tue, 27 Aug 2013 17:21:01 -0700 Mat Troi пишет: > Hi, > > I need to develop a new module and integrate into GRUB2. I already have the > code written, my question is how to integrate the code into the existing > GRUB2 build system so that the code gets built when make is entered at > GRUB2's top level directory? > > My module is located at directory>/grub2/grub-core/testmodule/testmodule.c > At the minimum you need to add module = { name = testmodule; common = testmodule/testmodule.c; } to grub-core/Makefile.core.def