All of lore.kernel.org
 help / color / mirror / Atom feed
* How can I use grub_getcrc32 in fs module
@ 2010-03-10 12:23 Jiro SEKIBA
  2010-03-10 13:05 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 7+ messages in thread
From: Jiro SEKIBA @ 2010-03-10 12:23 UTC (permalink / raw)
  To: grub-devel

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 <jir@unicus.jp>



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-03-16  7:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-10 12:23 How can I use grub_getcrc32 in fs module Jiro SEKIBA
2010-03-10 13:05 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-03-10 14:09   ` Jiro SEKIBA
2010-03-14 12:32     ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-03-15 10:03       ` Jiro SEKIBA
2010-03-15 10:52         ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-03-16  7:22           ` Jiro SEKIBA

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.