2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
Use search command for preliminar UUID search. * commands/search.c: Split into ... * commands/search_wrap.c: ...this * commands/search.c: ...and this. * commands/search_file.c: New file. * commands/search_label.c: New file. * commands/search_uuid.c: New file. * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c. Add commands/search_wrap.c, commands/search_file.c, commands/search_label.c and commands/search_uuid.c. * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod. (search_mod_SOURCES): Set to commands/search_wrap.c. (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and search_label.mod. (search_fs_file_mod_SOURCES): New variable. (search_fs_file_mod_CFLAGS): Likewise. (search_fs_file_mod_LDFLAGS): Likewise. (search_label_mod_SOURCES): Likewise. (search_label_mod_CFLAGS): Likewise. (search_label_mod_LDFLAGS): Likewise. (search_fs_uuid_mod_SOURCES): New variable. (search_fs_uuid_mod_CFLAGS): Likewise. (search_fs_uuid_mod_LDFLAGS): Likewise. (fs_file_mod_SOURCES): Removed. (fs_file_mod_CFLAGS): Likewise. (fs_file_mod_LDFLAGS): Likewise. (fs_uuid_mod_SOURCES): Removed. (fs_uuid_mod_CFLAGS): Likewise. (fs_uuid_mod_LDFLAGS): Likewise. * conf/sparc64-ieee1275.rmk (grub_install_SOURCES): Set to util/grub-install.in. * disk/fs_file.c: Removed. * disk/fs_uuid.c: Likewise. * include/grub/search.h: New file. * util/grub-install.in: Handle sparc64. Create and use load.cfg. * util/sparc64/ieee1275/grub-install.in: Removed.
This commit is contained in:
commit
9c288be27a
14 changed files with 266 additions and 651 deletions
26
include/grub/search.h
Normal file
26
include/grub/search.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* GRUB -- GRand Unified Bootloader
|
||||
* Copyright (C) 2009 Free Software Foundation, Inc.
|
||||
*
|
||||
* GRUB is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* GRUB is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef GRUB_SEARCH_HEADER
|
||||
#define GRUB_SEARCH_HEADER 1
|
||||
|
||||
void grub_search_fs_file (const char *key, const char *var, int no_floppy);
|
||||
void grub_search_fs_uuid (const char *key, const char *var, int no_floppy);
|
||||
void grub_search_label (const char *key, const char *var, int no_floppy);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue