From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VRUrd-0007gE-7E for mharc-grub-devel@gnu.org; Wed, 02 Oct 2013 18:25:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRUrX-0007fl-Ju for grub-devel@gnu.org; Wed, 02 Oct 2013 18:25:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRUrS-0008S7-QL for grub-devel@gnu.org; Wed, 02 Oct 2013 18:25:43 -0400 Received: from mail-ee0-x231.google.com ([2a00:1450:4013:c00::231]:45966) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRUrS-0008Rq-EV for grub-devel@gnu.org; Wed, 02 Oct 2013 18:25:38 -0400 Received: by mail-ee0-f49.google.com with SMTP id d41so697311eek.22 for ; Wed, 02 Oct 2013 15:25:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=uzUkUQebQ5HK0BMkCsJuAicFGDi2mene90QS/KyExaU=; b=JVnXKHAxbyMc5DWV16Lz4a7ODk13qs2HnVhwIEIHdOZDdTyqcAGbeu0OBVypfEIJCP dajPJ6ZkGsNZaP82ge4rboe182hmxXUYUqr77rnMxa/wZBhgZAx7susKeqjNpRLpbEVx 0YNkNgC3bmOL7dnWKJ/rRyEH9dZLAbZ17Voln+0ner07bAhd7y4NJnxut21zvz7AMjWT 5UCCAsCV9HFcbX4Z/3fD9NBd6/Sk2LrJOmEezGQX1R08FopTB6KbWXTyhK2s7/eFOsdK k56cTT4VRUl8z7x0s4na1NOHKyf+9tZcsm5H+/I/l+39jftnQO+nIZHuit6vSJAR81VQ CdZQ== X-Received: by 10.14.210.8 with SMTP id t8mr7047497eeo.39.1380752737559; Wed, 02 Oct 2013 15:25:37 -0700 (PDT) Received: from [192.168.1.113] (31-249.1-85.cust.bluewin.ch. [85.1.249.31]) by mx.google.com with ESMTPSA id j7sm8304368eeo.15.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Oct 2013 15:25:36 -0700 (PDT) Message-ID: <524C9D5F.5090002@gmail.com> Date: Thu, 03 Oct 2013 00:25:35 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130821 Icedove/17.0.8 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: How to develop and integrate brand new module into GRUB2? References: <5243E3DC.8090507@gmail.com> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="----enig2FXCRNBGUFKXBQJHMFUJS" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::231 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: Wed, 02 Oct 2013 22:25:48 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2FXCRNBGUFKXBQJHMFUJS Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 03.10.2013 00:03, Mat Troi wrote: > Hi Vijayakumar Venganti, >=20 > Sorry I overlooked your email last week :-( I had the same question > before and below is how I got it to work. You need to regenerate > Makefile.in file in your grub-core folder. First, you need to modify > Makefile.core.am to include your new module; > to see how to do this, search in Makefile.core.am > for "hello" module. You also need to modify > Makefile.core.def; again to see how to do this, search in > Makefile.core.def for "hello" module. On another machine (will be > referred to as machine B), you need to install m4-1.4.6 at > ftp://ftp.gnu.org/gnu/m4/, install autoconf-2.64, install > automake-1.11.2. Make sure your $PATH points to the stuff you just > installed. Then in your grub2 directory there should be a file named > autogen.sh. Copy autogen.sh and tries to run it on machine B. There > will be warnings/errors for missing files, depending on the > warnings/errors copy files from grub2 folder over to machine B. After > autogen.sh runs successfully, copy Makefile.in back to your work > environment and from there run your normal build. >=20 "Why do easy if you can do complicated?" Just change Makefile.core.def and rerun ./autogen.sh. That is. > I hope this helps, > Mat Troi >=20 >=20 >=20 > On Thu, Sep 26, 2013 at 12:35 AM, Vladimir '=CF=86-coder/phcoder' Serbi= nenko > > wrote: >=20 > On 26.09.2013 09 :28, Vijayakumar Venganti wro= te: > > Dear Friends, > > > > I need to develop a new module and integrate into GRUB2. I alread= y > have > > the code written, my question is how to integrate the code into t= he > > 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/Makefile* > > So, I want to run the Makefile inside testmodule and integrate th= at > > module into GRUB2. > > Any help is greatly appreciated.. > > > Do not create your own Makefile. Look at grub-conf/Makefile.core.de= f > > > > Thanks, > > Vijay > > > > > > _______________________________________________ > > Grub-devel mailing list > > Grub-devel@gnu.org > > https://lists.gnu.org/mailman/listinfo/grub-devel > > >=20 >=20 >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >=20 >=20 >=20 >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >=20 ------enig2FXCRNBGUFKXBQJHMFUJS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlJMnV8ACgkQNak7dOguQglMMQD/QCBfCoNmjwzNFrRglXZMuyZq QdYouFbMWI7/uVYLt5wA/1f1DfB3myC1P5WV/BTCHvFh6JSWRAsEE2SRBVwakKhu =I/Rz -----END PGP SIGNATURE----- ------enig2FXCRNBGUFKXBQJHMFUJS--