Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1G9L4w-0006mh-Cu for mharc-grub-devel@gnu.org; Sat, 05 Aug 2006 08:16:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G9L4u-0006kS-8U for grub-devel@gnu.org; Sat, 05 Aug 2006 08:16:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G9L4s-0006jB-HX for grub-devel@gnu.org; Sat, 05 Aug 2006 08:16:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G9L4s-0006j3-Bo for grub-devel@gnu.org; Sat, 05 Aug 2006 08:16:26 -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 1G9L8e-00059N-Cr for grub-devel@gnu.org; Sat, 05 Aug 2006 08:20:20 -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 k75CGFRc016323 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 5 Aug 2006 05:16:16 -0700 Received: (from jbailey@localhost) by titanium.v3.ca (8.13.2/8.13.2/Submit) id k75CGEDs016320 for grub-devel@gnu.org; Sat, 5 Aug 2006 05:16:14 -0700 X-Authentication-Warning: titanium.v3.ca: jbailey set sender to jbailey@raspberryginger.com using -f Date: Sat, 5 Aug 2006 05:16:13 -0700 From: Jeff Bailey To: grub-devel@gnu.org Message-ID: <20060805121612.GA15721@titanium.v3.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i Subject: Build environment 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: Sat, 05 Aug 2006 12:16:28 -0000 I'll start by saying that I have nothing but hate for the build environment in grub2. I realise that automake can be equally confusing in many ways, but it has two main advantages: 1) Everyone knows it already, 2) Other people are helping solve bugs with it. Assuming that we're stuck with this, is it home grown or is there some upstream project using it? The types of problems that I've seen: * No autodetection of Makefile snippet, to auto update them. No generic rules to handle the updating when testing. * No obvious well to tell how it's getting to any given phase. No documentation. * Dependancy generation is run too early. Initial dependancies are broken. * No obvious way to add dependancies to specific files that need them. * Order in .mk files is important even for seemingly unrelated clauses. The build system for grub2 just gets in the way of coding the program itself. I have a working version of grub-emu now for hppa-ipl, but most of my coding time has been spent staring at Makefiles, wondering how the other targets work, and copying segments of .rmk files that are essentially identical in other files. Done right, I suspect that I could've done the port to this point in about 4 lines of Makefile snippet. I've hated the build system for years, and the fact that none of the people in #grub seem to understand it either doesn't help. I've offered to fix it up using the usual set of autotools a number of times, and the offer still stands. -- I do not agree with a word you say, but I will defend to the death your right to say it. - Voltaire