From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzCFK-0004Q7-Ex for mharc-grub-devel@gnu.org; Fri, 15 Jun 2007 09:53:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzCFG-0004O0-Ba for grub-devel@gnu.org; Fri, 15 Jun 2007 09:53:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzCFF-0004NY-Jo for grub-devel@gnu.org; Fri, 15 Jun 2007 09:53:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzCFF-0004NH-76 for grub-devel@gnu.org; Fri, 15 Jun 2007 09:53:45 -0400 Received: from relay.udl.es ([193.144.10.29] helo=relay3.udl.es) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzCFE-0001PQ-6O for grub-devel@gnu.org; Fri, 15 Jun 2007 09:53:44 -0400 Received: from jupiter.udl.net (jupiter.udl.net [172.16.2.2]) by relay3.udl.es (8.13.7/8.13.7) with ESMTP id l5FDrI2p031340 for ; Fri, 15 Jun 2007 15:53:29 +0200 Received: from [172.16.51.43] (PL-CAP043.udl.net [172.16.51.43]) by jupiter.udl.net (8.11.7p1+Sun/8.11.6) with ESMTP id l5FDmRq17387 for ; Fri, 15 Jun 2007 15:48:27 +0200 (MET DST) Message-ID: <46728A50.7030504@raulete.net> Date: Fri, 15 Jun 2007 14:47:12 +0200 From: adrian15 User-Agent: Thunderbird 1.5.0.8 (X11/20061107) MIME-Version: 1.0 To: The development of GRUB 2 References: <466E8A04.5060904@raulete.net> <8c0c43de0706120724s346583a8m6ac16cdd2a190992@mail.gmail.com> In-Reply-To: <8c0c43de0706120724s346583a8m6ac16cdd2a190992@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (relay3.udl.es [10.69.4.19]); Fri, 15 Jun 2007 15:53:29 +0200 (CEST) X-Virus-Scanned: ClamAV 0.88.7/3426/Fri Jun 15 14:02:54 2007 on relay3.udl.es X-Virus-Status: Clean Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by relay3.udl.es id l5FDrI2p031340 X-detected-kernel: Linux 2.6 (newer, 2) Subject: Re: how to add a new command 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: Fri, 15 Jun 2007 13:53:46 -0000 Alex Roman escribi=F3: > On 12/06/07, adrian15 wrote: >> Once I write a new command like map.c or pause.c how am I=20 >> supposed to >> add it to the standard grub? >> Should I write the makefiles manually?! or should I use some=20 >> of the .sh >> files at the grub2 source code root folder? >=20 > I've been editing the .rmk files in conf/ which should cause the .mk > files to get updated (at least that's my understanding of it, so far). >=20 > Make sure the command is placed in the right Makefile... I had the > problem where I was including the command in both grub-emu and > grub/i386-pc and grub-emu didn't link due to undefined symbols > (because those didn't exist in grub-emu). >=20 >=20 > Cheers! >=20 I've finally edit conf/i386-pc.rmk, copy-pasted the play.c code and find/replace with map.c. Then I run make: make prompts this: adrian@adrianpc:~/Desktop/gnu/grub2/grub2_2007_05_31_map$ make if test "x" =3D x; then \ touch conf/i386-pc.mk; \ else \ ./genmk.rb < conf/i386-pc.rmk > conf/i386-pc.mk; \ fi make: No se hace nada para `all'. If you check: i386-pc.mk then there is no reference to: "/map.c" If I delete i386-pc.mk and run make again: adrian@adrianpc:~/Desktop/gnu/grub2/grub2_2007_05_31_map$ make Makefile:111: conf/i386-pc.mk: No existe el fichero o el directorio if test "x" =3D x; then \ touch conf/i386-pc.mk; \ else \ ./genmk.rb < conf/i386-pc.rmk > conf/i386-pc.mk; \ fi make: No se hace nada para `all'. and a empty i386-pc.mk file is created. I check genmk.rb and it is not an executable file.