2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
* kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is negative, unload the module. * util/i386/pc/grub-setup.c (setup): The name of the PC partition map is "pc_partition_map" but not "pc". (usage): Fix the description. The options are --boot-image and --core-image but not --boot-file or --core-file. (main): If not specified explicitly, make BOOT_FILE and CORE_FILE based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or DEFAULT_DIRECTORY. * util/i386/pc/grub-install.in: Do not specify --boot-file or --core-file. Specify INSTALL_DEVICE as an argument. * util/console.c: Include config.h. [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h. [HAVE_NCURSES_H]: Include ncurses.h. [HAVE_CURSES_H]: Include curses.h. [!A_NORMAL] (A_NORMAL): Defined as zero. [!A_STANDOUT] (A_STANDOUT): Likewise. * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of -lncurses. * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise. * configure.ac: Check for curses libraries and headers. * Makefile.in (LIBCURSES): New variable. * genmk.rb (Script::rule): Set the executable bits. * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The name of the PC partition map is "pc_partition_map" but not "pc".
This commit is contained in:
parent
0e1430737f
commit
f4917dfdd6
15 changed files with 386 additions and 16 deletions
|
@ -1094,7 +1094,7 @@ grub_emu-util_i386_pc_misc.d: util/i386/pc/misc.c
|
|||
-include grub_emu-util_i386_pc_misc.d
|
||||
|
||||
|
||||
grub_emu_LDFLAGS = -lncurses
|
||||
grub_emu_LDFLAGS = $(LIBCURSES)
|
||||
|
||||
# For genmoddep.
|
||||
genmoddep_SOURCES = util/genmoddep.c
|
||||
|
@ -1122,6 +1122,7 @@ CLEANFILES += grub-install
|
|||
|
||||
grub-install: util/i386/pc/grub-install.in config.status
|
||||
./config.status --file=grub-install:util/i386/pc/grub-install.in
|
||||
chmod +x $@
|
||||
|
||||
|
||||
# Modules.
|
||||
|
|
|
@ -92,7 +92,7 @@ grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c \
|
|||
util/i386/pc/biosdisk.c util/i386/pc/getroot.c \
|
||||
util/i386/pc/misc.c
|
||||
|
||||
grub_emu_LDFLAGS = -lncurses
|
||||
grub_emu_LDFLAGS = $(LIBCURSES)
|
||||
|
||||
# For genmoddep.
|
||||
genmoddep_SOURCES = util/genmoddep.c
|
||||
|
|
|
@ -486,7 +486,7 @@ grub_emu-util_powerpc_ieee1275_misc.d: util/powerpc/ieee1275/misc.c
|
|||
-include grub_emu-util_powerpc_ieee1275_misc.d
|
||||
|
||||
|
||||
grub_emu_LDFLAGS = -lncurses
|
||||
grub_emu_LDFLAGS = $(LIBCURSES)
|
||||
|
||||
grubof_SOURCES = boot/powerpc/ieee1275/crt0.S boot/powerpc/ieee1275/cmain.c \
|
||||
kern/ieee1275/of.c kern/main.c kern/device.c \
|
||||
|
|
|
@ -50,7 +50,7 @@ grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c \
|
|||
util/i386/pc/biosdisk.c util/i386/pc/getroot.c \
|
||||
util/powerpc/ieee1275/misc.c
|
||||
|
||||
grub_emu_LDFLAGS = -lncurses
|
||||
grub_emu_LDFLAGS = $(LIBCURSES)
|
||||
|
||||
grubof_SOURCES = boot/powerpc/ieee1275/crt0.S boot/powerpc/ieee1275/cmain.c \
|
||||
kern/ieee1275/of.c kern/main.c kern/device.c \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue