From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KzddK-0002m2-Lg for mharc-grub-devel@gnu.org; Mon, 10 Nov 2008 15:45:14 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KzddI-0002lj-M0 for grub-devel@gnu.org; Mon, 10 Nov 2008 15:45:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KzddG-0002l7-Q5 for grub-devel@gnu.org; Mon, 10 Nov 2008 15:45:12 -0500 Received: from [199.232.76.173] (port=33642 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzddG-0002l0-H0 for grub-devel@gnu.org; Mon, 10 Nov 2008 15:45:10 -0500 Received: from mailout02.t-online.de ([194.25.134.17]:55557) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KzddF-0005Bx-Ty for grub-devel@gnu.org; Mon, 10 Nov 2008 15:45:10 -0500 Received: from fwd05.aul.t-online.de by mailout02.sul.t-online.de with smtp id 1KzddE-0003fm-00; Mon, 10 Nov 2008 21:45:08 +0100 Received: from [10.3.2.2] (bLpR5yZcZhm8ol8N3arj7v8fZwP6pKRRaqgP+A1+6bVHiXsRIIgSfMXUMJYrx5NZx-@[217.235.223.95]) by fwd05.aul.t-online.de with esmtp id 1Kzdcv-139DOq0; Mon, 10 Nov 2008 21:44:49 +0100 Message-ID: <49189D41.3000809@t-online.de> Date: Mon, 10 Nov 2008 21:44:49 +0100 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 SeaMonkey/1.1.11 MIME-Version: 1.0 To: The development of GRUB 2 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> <20081108113314.GA11872@thorin> In-Reply-To: <20081108113314.GA11872@thorin> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ID: bLpR5yZcZhm8ol8N3arj7v8fZwP6pKRRaqgP+A1+6bVHiXsRIIgSfMXUMJYrx5NZx- X-TOI-MSGID: ca1c9317-7fa2-497b-bbac-fef8f6a9543b X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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: Mon, 10 Nov 2008 20:45:12 -0000 Robert Millan wrote: > 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? > > Yes. Symbol should be changed with each incompatible ABI change. Not necessary for simple ABI enhancements like new functions. Christian