Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NpKxN-0006ZU-9K for mharc-grub-devel@gnu.org; Wed, 10 Mar 2010 07:24:09 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NpKxK-0006Y7-Gw for grub-devel@gnu.org; Wed, 10 Mar 2010 07:24:06 -0500 Received: from [140.186.70.92] (port=57551 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NpKxJ-0006XE-7T for grub-devel@gnu.org; Wed, 10 Mar 2010 07:24:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NpKxH-0006LH-V3 for grub-devel@gnu.org; Wed, 10 Mar 2010 07:24:05 -0500 Received: from mail1.asahi-net.or.jp ([202.224.39.197]:53613) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NpKxH-0006L6-Ma for grub-devel@gnu.org; Wed, 10 Mar 2010 07:24:03 -0500 Received: from rabbit.sekiba.org (x238029.ppp.asahi-net.or.jp [122.249.238.29]) by mail1.asahi-net.or.jp (Postfix) with ESMTP id EF4419ECC3 for ; Wed, 10 Mar 2010 21:23:59 +0900 (JST) Date: Wed, 10 Mar 2010 21:23:59 +0900 Message-ID: <87aaug8iw0.wl%jir@sekiba.com> From: Jiro SEKIBA To: grub-devel@gnu.org User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.3 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Subject: How can I use grub_getcrc32 in fs module X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2010 12:24:06 -0000 Hi, How can I write Makefile to use grub_getcrc32 in file module? I'm trying to use grub_getcrc32 function to calculate crc of the specific part of the disk so as to validate the disk. I added lib/crc.c in SOURCES in common.rmk for the fs module. It looks OK to compile the target fs module. However I got following link error for grub-setup and grub-probe. grub_setup-fs_nilfs2.o: In function `grub_nilfs2_valid_sb': nilfs2.c:(.text+0xe29): undefined reference to `grub_getcrc32' nilfs2.c:(.text+0xe47): undefined reference to `grub_getcrc32' nilfs2.c:(.text+0xe7e): undefined reference to `grub_getcrc32' collect2: ld returned 1 exit status I was trying to specify lib/crc.c in grub_setup_SOURCES, but got same result. What is the best way to add dependency for those programs if I want to use crc calculation in fs module? thank you very much in advance -- Jiro SEKIBA