Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1G7CKE-000710-Vw for mharc-grub-devel@gnu.org; Sun, 30 Jul 2006 10:31:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G7CKD-00070s-IC for grub-devel@gnu.org; Sun, 30 Jul 2006 10:31:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G7CKB-00070a-UH for grub-devel@gnu.org; Sun, 30 Jul 2006 10:31:25 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7CKB-00070X-P6 for grub-devel@gnu.org; Sun, 30 Jul 2006 10:31:23 -0400 Received: from [69.90.100.5] (helo=titanium.v3.ca) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1G7CMd-0004Pa-Q0 for grub-devel@gnu.org; Sun, 30 Jul 2006 10:33:56 -0400 Received: from titanium.v3.ca (localhost [127.0.0.1]) by titanium.v3.ca (8.13.2/8.13.2/Debian-1) with ESMTP id k6UEVIIJ013345 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 30 Jul 2006 07:31:21 -0700 Received: (from jbailey@localhost) by titanium.v3.ca (8.13.2/8.13.2/Submit) id k6UEVIec013344 for grub-devel@gnu.org; Sun, 30 Jul 2006 07:31:18 -0700 X-Authentication-Warning: titanium.v3.ca: jbailey set sender to jbailey@raspberryginger.com using -f Date: Sun, 30 Jul 2006 07:31:18 -0700 From: Jeff Bailey To: The development of GRUB 2 Message-ID: <20060730143118.GA12425@titanium.v3.ca> References: <20060729133502.GA16439@titanium.v3.ca> <200607301611.26752.okuji@enbug.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200607301611.26752.okuji@enbug.org> User-Agent: Mutt/1.5.6+20040907i Subject: Re: porting to hppa-ipl 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: Sun, 30 Jul 2006 14:31:25 -0000 On Sun, Jul 30, 2006 at 04:11:26PM +0200, Yoshinori K. Okuji wrote: > On Saturday 29 July 2006 15:35, Jeff Bailey wrote: > > Hi! I started working on the port to hppa-ipl and have run into three > > things: > > Amazing. ;) *lol* It's amazing when I'm succesful, in the meantime, it's just insane. =) One of the nice things, though, is that I have the support of the folks who wrote palo. > > 1) Dependancy generation seems to skip out on files that don't exist. > > This means that in the Makefile, hello.c doesn't wind up depending on > > grub_script.tab.h. "make grub_script.tab.h" works fine, and then the > > build can proceed. Current ports work around this by defining _HEADERS > > lines, apparently, but this dependancy should probalby be explicitely > > declared somewhere, or this file should be forcibly generated. > > Why does hello.c depend on grub_script.tab.h? AFAIK, only normal/lexer.c > depends on grub_script.tab.h, and the dependency is automatically generated > in my environment. According to GCC: gcc -Ihello -I./hello -I. -Iinclude -I./include -Wall -W -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -Os -fno-builtin -c -o hello_mod-hello_hello.o hello/hello.c In file included from include/grub/normal.h:28, from hello/hello.c:27: include/grub/script.h:27:29: error: grub_script.tab.h: No such file or directory > > 2) When hacking on the build env, how do I force things to be > > regenerated? When I do "make conf/hppa-ipl.mk", it doesn't generate the > > file for me. > > Isn't it normal in make??? When I play with make, I do "rm -f FILE; make > FILE". I don't know anything else more elegant. Right it is normal in make, which is why I was surprised it didn't work: jbailey@test148:~/Programming/cvstree/grub2/conf$ rm hppa-ipl.mk jbailey@test148:~/Programming/cvstree/grub2/conf$ cd .. jbailey@test148:~/Programming/cvstree/grub2$ make conf/hppa-ipl.mk Makefile:105: conf/hppa-ipl.mk: No such file or directory make: *** No rule to make target `conf/hppa-ipl.mk'. Stop. jbailey@test148:~/Programming/cvstree/grub2$ cd conf jbailey@test148:~/Programming/cvstree/grub2/conf$ make hppa-ipl.mk make: *** No rule to make target `hppa-ipl.mk'. Stop. jbailey@test148:~/Programming/cvstree/grub2/conf$ ls hppa-ipl.rmk hppa-ipl.rmk jbailey@test148:~/Programming/cvstree/grub2/conf$ > > 3) The files for grub-emu and others seems to be copied into each file > > in conf. Should these be refactored out into common.mk? It seems a > > waste for me to just copy them into hppa-ipl for yet another time. > > Well, the original idea I had was that it could be possible to implement > grub-emu differently among architectures. Currently we only emulate PC. I > cannot tell you if this is a good thing. As grub-emu does not use much in > i386- or PC-specific code, this might be sufficient. If so, it is a good idea > to share the same config in common.rmk. Okay. As I'm hacking along, I'll see what I do that looks identical and supply patches to refactor. Tks, Jeff Bailey -- I do not agree with a word you say, but I will defend to the death your right to say it. - Voltaire