From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Kym51-0002yE-QD for mharc-grub-devel@gnu.org; Sat, 08 Nov 2008 06:34:15 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kym4y-0002vX-0g for grub-devel@gnu.org; Sat, 08 Nov 2008 06:34:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kym4v-0002se-U2 for grub-devel@gnu.org; Sat, 08 Nov 2008 06:34:09 -0500 Received: from [199.232.76.173] (port=37934 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kym4v-0002rs-JY for grub-devel@gnu.org; Sat, 08 Nov 2008 06:34:09 -0500 Received: from aybabtu.com ([69.60.117.155]:55739) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kym4s-0002iB-OX for grub-devel@gnu.org; Sat, 08 Nov 2008 06:34:07 -0500 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Kym3Y-0005bW-Ji for grub-devel@gnu.org; Sat, 08 Nov 2008 12:32:45 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1Kym42-000372-7Z for grub-devel@gnu.org; Sat, 08 Nov 2008 12:33:14 +0100 Date: Sat, 8 Nov 2008 12:33:14 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20081108113314.GA11872@thorin> References: <20081101190204.GB4639@thorin> <49109AB8.4010509@nic.fi> <20081104190751.GA25519@thorin> <49109EE7.6050406@nic.fi> <20081104193911.GA26419@thorin> <491143E2.4040705@t-online.de> <20081105094240.GA12201@thorin> <49121300.2050506@t-online.de> <20081106145431.GB24460@thorin> <491356DD.4090808@t-online.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <491356DD.4090808@t-online.de> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH] framework for building modules externally 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, 08 Nov 2008 11:34:14 -0000 On Thu, Nov 06, 2008 at 09:43:09PM +0100, Christian Franke wrote: > > > >How would the whole picture look like? Sounds like it'd mean less > >complexity > >in external modules at the expense of more complexity in the build system. > > Here a first proof-of-concept patch, uses hello.c as the external module. > > If kernel is compiled with other GRUB_ABI_VER_SYM, insmod fails with: > "error: the symbol 'grub_abi_ver_1_96' not found" Ah, it's much simpler than I thought. > +#define GRUB_ABI_VER_SYM grub_abi_ver_1_96 I assume between releases we'd add a counter after the version number? Like grub_abi_ver_1_96_X or so? -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."