2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
Add --with-platform to configure. Use pkglibdir instead of pkgdatadir. This is reported by Roger Leigh. * util/powerpc/ieee1275/grub-install.in (datadir): Removed. (host_vendor): Likewise. (host_os): Likewise. (pkgdatadir): Likewise. (platform): New variable. (pkglibdir): Likewise. Use PKGLIBDIR instead of PKGDATADIR. * util/i386/pc/grub-install.in (datadir): Removed. (host_vendor): Likewise. (host_os): Likewise. (pkgdatadir): Likewise. (platform): New variable. (pkglibdir): Likewise. Use PKGLIBDIR instead of PKGDATADIR. * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR instead of GRUB_DATADIR. (main): Likewise. * util/i386/pc/grub-mkimage.c (usage): Likewise. (main): Likewise. * util/i386/efi/grub-mkimage.c (usage): Likewise. (main): Likewise. * configure.ac (--with-platform): New option. Use PLATFORM instead of HOST_VENDOR to specify a platform. * Makefile.in: Include a makefile based on PLATFORM instead of HOST_VENDOR. (pkgdatadir): Not appended by the machine type. (pkglibdir): Appended by the machine type. (host_vendor): Removed. (platform): New variable. (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR. (install-local): Use PKGLIBDIR instead of PKGDATADIR. (uninstall): Likewise.
This commit is contained in:
parent
4e93851c0f
commit
05568c2e85
10 changed files with 134 additions and 43 deletions
42
ChangeLog
42
ChangeLog
|
@ -1,3 +1,45 @@
|
||||||
|
2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
|
||||||
|
|
||||||
|
Add --with-platform to configure. Use pkglibdir instead of
|
||||||
|
pkgdatadir. This is reported by Roger Leigh.
|
||||||
|
|
||||||
|
* util/powerpc/ieee1275/grub-install.in (datadir): Removed.
|
||||||
|
(host_vendor): Likewise.
|
||||||
|
(host_os): Likewise.
|
||||||
|
(pkgdatadir): Likewise.
|
||||||
|
(platform): New variable.
|
||||||
|
(pkglibdir): Likewise.
|
||||||
|
Use PKGLIBDIR instead of PKGDATADIR.
|
||||||
|
|
||||||
|
* util/i386/pc/grub-install.in (datadir): Removed.
|
||||||
|
(host_vendor): Likewise.
|
||||||
|
(host_os): Likewise.
|
||||||
|
(pkgdatadir): Likewise.
|
||||||
|
(platform): New variable.
|
||||||
|
(pkglibdir): Likewise.
|
||||||
|
Use PKGLIBDIR instead of PKGDATADIR.
|
||||||
|
|
||||||
|
* util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
|
||||||
|
instead of GRUB_DATADIR.
|
||||||
|
(main): Likewise.
|
||||||
|
* util/i386/pc/grub-mkimage.c (usage): Likewise.
|
||||||
|
(main): Likewise.
|
||||||
|
* util/i386/efi/grub-mkimage.c (usage): Likewise.
|
||||||
|
(main): Likewise.
|
||||||
|
|
||||||
|
* configure.ac (--with-platform): New option.
|
||||||
|
Use PLATFORM instead of HOST_VENDOR to specify a platform.
|
||||||
|
|
||||||
|
* Makefile.in: Include a makefile based on PLATFORM instead of
|
||||||
|
HOST_VENDOR.
|
||||||
|
(pkgdatadir): Not appended by the machine type.
|
||||||
|
(pkglibdir): Appended by the machine type.
|
||||||
|
(host_vendor): Removed.
|
||||||
|
(platform): New variable.
|
||||||
|
(BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
|
||||||
|
(install-local): Use PKGLIBDIR instead of PKGDATADIR.
|
||||||
|
(uninstall): Likewise.
|
||||||
|
|
||||||
2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
|
2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
|
||||||
|
|
||||||
Use the environment context in the menu. Remove the commands
|
Use the environment context in the menu. Remove the commands
|
||||||
|
|
16
Makefile.in
16
Makefile.in
|
@ -34,8 +34,8 @@ libdir = @libdir@
|
||||||
infodir = @infodir@
|
infodir = @infodir@
|
||||||
mandir = @mandir@
|
mandir = @mandir@
|
||||||
includedir = @includedir@
|
includedir = @includedir@
|
||||||
pkgdatadir = $(datadir)/@PACKAGE_TARNAME@/$(host_cpu)-$(host_vendor)
|
pkgdatadir = $(datadir)/@PACKAGE_TARNAME@
|
||||||
pkglibdir = $(libdir)/@PACKAGE_TARNAME@
|
pkglibdir = $(libdir)/@PACKAGE_TARNAME@/$(host_cpu)-$(platform)
|
||||||
|
|
||||||
PACKAGE_NAME = @PACKAGE_NAME@
|
PACKAGE_NAME = @PACKAGE_NAME@
|
||||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||||
|
@ -44,7 +44,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
||||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||||
|
|
||||||
host_cpu = @host_cpu@
|
host_cpu = @host_cpu@
|
||||||
host_vendor = @host_vendor@
|
platform = @platform@
|
||||||
|
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
|
@ -61,7 +61,7 @@ CPPFLAGS = -I. -Iinclude -I$(srcdir)/include -Wall -W
|
||||||
BUILD_CC = @BUILD_CC@
|
BUILD_CC = @BUILD_CC@
|
||||||
BUILD_CFLAGS = -g -O2
|
BUILD_CFLAGS = -g -O2
|
||||||
BUILD_CPPFLAGS = -I. -Iinclude -I$(srcdir)/include -Wall -W \
|
BUILD_CPPFLAGS = -I. -Iinclude -I$(srcdir)/include -Wall -W \
|
||||||
-DGRUB_DATADIR=\"$(pkgdatadir)\"
|
-DGRUB_LIBDIR=\"$(pkglibdir)\"
|
||||||
OBJCOPY = @OBJCOPY@
|
OBJCOPY = @OBJCOPY@
|
||||||
STRIP = @STRIP@
|
STRIP = @STRIP@
|
||||||
NM = @NM@
|
NM = @NM@
|
||||||
|
@ -99,7 +99,7 @@ $(addprefix $(srcdir)/,$(MKFILES)): %.mk: %.rmk genmk.rb
|
||||||
$(RUBY) $(srcdir)/genmk.rb < $< > $@; \
|
$(RUBY) $(srcdir)/genmk.rb < $< > $@; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
include $(srcdir)/conf/$(host_cpu)-$(host_vendor).mk
|
include $(srcdir)/conf/$(host_cpu)-$(platform).mk
|
||||||
|
|
||||||
### General targets.
|
### General targets.
|
||||||
|
|
||||||
|
@ -120,12 +120,12 @@ all-local: $(PROGRAMS) $(DATA) $(SCRIPTS) $(MKFILES)
|
||||||
install: install-local
|
install: install-local
|
||||||
|
|
||||||
install-local: all
|
install-local: all
|
||||||
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
|
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
|
||||||
@list='$(DATA)'; \
|
@list='$(DATA)'; \
|
||||||
for file in $$list; do \
|
for file in $$list; do \
|
||||||
if test -f "$$file"; then dir=; else dir="$(srcdir)"; fi; \
|
if test -f "$$file"; then dir=; else dir="$(srcdir)"; fi; \
|
||||||
dest="`echo $$file | sed 's,.*/,,'`"; \
|
dest="`echo $$file | sed 's,.*/,,'`"; \
|
||||||
$(INSTALL_DATA) $$dir$$file $(DESTDIR)$(pkgdatadir)/$$dest; \
|
$(INSTALL_DATA) $$dir$$file $(DESTDIR)$(pkglibdir)/$$dest; \
|
||||||
done
|
done
|
||||||
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||||
@list='$(bin_UTILITIES)'; for file in $$list; do \
|
@list='$(bin_UTILITIES)'; for file in $$list; do \
|
||||||
|
@ -152,7 +152,7 @@ uninstall:
|
||||||
@list='$(DATA)'; \
|
@list='$(DATA)'; \
|
||||||
for file in $$list; do \
|
for file in $$list; do \
|
||||||
dest="`echo $$file | sed 's,.*/,,'`"; \
|
dest="`echo $$file | sed 's,.*/,,'`"; \
|
||||||
rm -f $(DESTDIR)$(pkgdatadir)/$$dest; \
|
rm -f $(DESTDIR)$(pkglibdir)/$$dest; \
|
||||||
done
|
done
|
||||||
@list='$(bin_UTILITIES)'; for file in $$list; do \
|
@list='$(bin_UTILITIES)'; for file in $$list; do \
|
||||||
dest="`echo $$file | sed 's,.*/,,'`"; \
|
dest="`echo $$file | sed 's,.*/,,'`"; \
|
||||||
|
|
1
THANKS
1
THANKS
|
@ -14,6 +14,7 @@ Marco Gerards <metgerards@student.han.nl>
|
||||||
NIIBE Yutaka <gniibe@m17n.org>
|
NIIBE Yutaka <gniibe@m17n.org>
|
||||||
Omniflux <omniflux@omniflux.com>
|
Omniflux <omniflux@omniflux.com>
|
||||||
Robert Bihlmeyer <robbe@orcus.priv.at>
|
Robert Bihlmeyer <robbe@orcus.priv.at>
|
||||||
|
Roger Leigh <rleigh@whinlatter.ukfsn.org>
|
||||||
Ruslan Nikolaev <nruslan@mail.com>
|
Ruslan Nikolaev <nruslan@mail.com>
|
||||||
Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
|
Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
|
||||||
Tomas Ebenlendr <ebik@ucw.cz>
|
Tomas Ebenlendr <ebik@ucw.cz>
|
||||||
|
|
45
configure
vendored
45
configure
vendored
|
@ -311,7 +311,7 @@ ac_includes_default="\
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif"
|
#endif"
|
||||||
|
|
||||||
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT YACC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE OBJCOPY ac_ct_OBJCOPY STRIP ac_ct_STRIP NM ac_ct_NM LD ac_ct_LD RUBY BUILD_CC CPP EGREP LIBLZO LIBCURSES LIBOBJS LTLIBOBJS'
|
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os platform CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT YACC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE OBJCOPY ac_ct_OBJCOPY STRIP ac_ct_STRIP NM ac_ct_NM LD ac_ct_LD RUBY BUILD_CC CPP EGREP LIBLZO LIBCURSES LIBOBJS LTLIBOBJS'
|
||||||
ac_subst_files=''
|
ac_subst_files=''
|
||||||
|
|
||||||
# Initialize some variables set by options.
|
# Initialize some variables set by options.
|
||||||
|
@ -851,6 +851,12 @@ Optional Features:
|
||||||
--disable-largefile omit support for large files
|
--disable-largefile omit support for large files
|
||||||
--enable-mm-debug include memory manger debugging
|
--enable-mm-debug include memory manger debugging
|
||||||
|
|
||||||
|
Optional Packages:
|
||||||
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||||
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
||||||
|
--with-platform=PLATFORM
|
||||||
|
select the host platform guessed
|
||||||
|
|
||||||
Some influential environment variables:
|
Some influential environment variables:
|
||||||
CC C compiler command
|
CC C compiler command
|
||||||
CFLAGS C compiler flags
|
CFLAGS C compiler flags
|
||||||
|
@ -1406,11 +1412,35 @@ echo "$as_me: error: unsupported CPU type" >&2;}
|
||||||
{ (exit 1); exit 1; }; } ;;
|
{ (exit 1); exit 1; }; } ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Specify the platform (such as firmware).
|
||||||
|
|
||||||
|
# Check whether --with-platform or --without-platform was given.
|
||||||
|
if test "${with_platform+set}" = set; then
|
||||||
|
withval="$with_platform"
|
||||||
|
|
||||||
|
fi;
|
||||||
|
|
||||||
|
# Guess the platform if not specified.
|
||||||
|
if test "x$with_platform" = x; then
|
||||||
case "$host_cpu"-"$host_vendor" in
|
case "$host_cpu"-"$host_vendor" in
|
||||||
i386-apple | *-efi) host_vendor=efi ;;
|
i386-apple) platform=efi ;;
|
||||||
i386-*) host_vendor=pc ;;
|
i386-*) platform=pc ;;
|
||||||
powerpc-*) host_vendor=ieee1275 ;;
|
powerpc-*) platform=ieee1275 ;;
|
||||||
sparc64-*) host_vendor=ieee1275 ;;
|
sparc64-*) platform=ieee1275 ;;
|
||||||
|
*) { { echo "$as_me:$LINENO: error: unsupported machine type" >&5
|
||||||
|
echo "$as_me: error: unsupported machine type" >&2;}
|
||||||
|
{ (exit 1); exit 1; }; } ;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
platform="$with_platform"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Sanity check.
|
||||||
|
case "$host_cpu"-"$platform" in
|
||||||
|
i386-efi) ;;
|
||||||
|
i386-pc) ;;
|
||||||
|
powerpc-ieee1275) ;;
|
||||||
|
sparc64-ieee1275) ;;
|
||||||
*) { { echo "$as_me:$LINENO: error: unsupported machine type" >&5
|
*) { { echo "$as_me:$LINENO: error: unsupported machine type" >&5
|
||||||
echo "$as_me: error: unsupported machine type" >&2;}
|
echo "$as_me: error: unsupported machine type" >&2;}
|
||||||
{ (exit 1); exit 1; }; } ;;
|
{ (exit 1); exit 1; }; } ;;
|
||||||
|
@ -6576,7 +6606,7 @@ _ACEOF
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
# Output files.
|
# Output files.
|
||||||
ac_config_links="$ac_config_links include/grub/cpu:include/grub/$host_cpu include/grub/machine:include/grub/$host_cpu/$host_vendor"
|
ac_config_links="$ac_config_links include/grub/cpu:include/grub/$host_cpu include/grub/machine:include/grub/$host_cpu/$platform"
|
||||||
|
|
||||||
ac_config_files="$ac_config_files Makefile gensymlist.sh genkernsyms.sh"
|
ac_config_files="$ac_config_files Makefile gensymlist.sh genkernsyms.sh"
|
||||||
|
|
||||||
|
@ -7115,7 +7145,7 @@ do
|
||||||
"genkernsyms.sh" ) CONFIG_FILES="$CONFIG_FILES genkernsyms.sh" ;;
|
"genkernsyms.sh" ) CONFIG_FILES="$CONFIG_FILES genkernsyms.sh" ;;
|
||||||
"stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
|
"stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
|
||||||
"include/grub/cpu" ) CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$host_cpu" ;;
|
"include/grub/cpu" ) CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$host_cpu" ;;
|
||||||
"include/grub/machine" ) CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$host_cpu/$host_vendor" ;;
|
"include/grub/machine" ) CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$host_cpu/$platform" ;;
|
||||||
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
||||||
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
||||||
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
||||||
|
@ -7210,6 +7240,7 @@ s,@host@,$host,;t t
|
||||||
s,@host_cpu@,$host_cpu,;t t
|
s,@host_cpu@,$host_cpu,;t t
|
||||||
s,@host_vendor@,$host_vendor,;t t
|
s,@host_vendor@,$host_vendor,;t t
|
||||||
s,@host_os@,$host_os,;t t
|
s,@host_os@,$host_os,;t t
|
||||||
|
s,@platform@,$platform,;t t
|
||||||
s,@CC@,$CC,;t t
|
s,@CC@,$CC,;t t
|
||||||
s,@CFLAGS@,$CFLAGS,;t t
|
s,@CFLAGS@,$CFLAGS,;t t
|
||||||
s,@LDFLAGS@,$LDFLAGS,;t t
|
s,@LDFLAGS@,$LDFLAGS,;t t
|
||||||
|
|
31
configure.ac
31
configure.ac
|
@ -29,16 +29,35 @@ case "$host_cpu" in
|
||||||
*) AC_MSG_ERROR([unsupported CPU type]) ;;
|
*) AC_MSG_ERROR([unsupported CPU type]) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Specify the platform (such as firmware).
|
||||||
|
AC_ARG_WITH([platform],
|
||||||
|
AS_HELP_STRING([--with-platform=PLATFORM],
|
||||||
|
[select the host platform [guessed]]))
|
||||||
|
|
||||||
|
# Guess the platform if not specified.
|
||||||
|
if test "x$with_platform" = x; then
|
||||||
case "$host_cpu"-"$host_vendor" in
|
case "$host_cpu"-"$host_vendor" in
|
||||||
i386-apple | *-efi) host_vendor=efi ;;
|
i386-apple) platform=efi ;;
|
||||||
i386-*) host_vendor=pc ;;
|
i386-*) platform=pc ;;
|
||||||
powerpc-*) host_vendor=ieee1275 ;;
|
powerpc-*) platform=ieee1275 ;;
|
||||||
sparc64-*) host_vendor=ieee1275 ;;
|
sparc64-*) platform=ieee1275 ;;
|
||||||
|
*) AC_MSG_ERROR([unsupported machine type]) ;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
platform="$with_platform"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Sanity check.
|
||||||
|
case "$host_cpu"-"$platform" in
|
||||||
|
i386-efi) ;;
|
||||||
|
i386-pc) ;;
|
||||||
|
powerpc-ieee1275) ;;
|
||||||
|
sparc64-ieee1275) ;;
|
||||||
*) AC_MSG_ERROR([unsupported machine type]) ;;
|
*) AC_MSG_ERROR([unsupported machine type]) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AC_SUBST(host_cpu)
|
AC_SUBST(host_cpu)
|
||||||
AC_SUBST(host_vendor)
|
AC_SUBST(platform)
|
||||||
|
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
if test "x$CFLAGS" = x; then
|
if test "x$CFLAGS" = x; then
|
||||||
|
@ -189,7 +208,7 @@ AC_ARG_ENABLE([mm-debug],
|
||||||
|
|
||||||
# Output files.
|
# Output files.
|
||||||
AC_CONFIG_LINKS([include/grub/cpu:include/grub/$host_cpu
|
AC_CONFIG_LINKS([include/grub/cpu:include/grub/$host_cpu
|
||||||
include/grub/machine:include/grub/$host_cpu/$host_vendor])
|
include/grub/machine:include/grub/$host_cpu/$platform])
|
||||||
AC_CONFIG_FILES([Makefile gensymlist.sh genkernsyms.sh])
|
AC_CONFIG_FILES([Makefile gensymlist.sh genkernsyms.sh])
|
||||||
AC_CONFIG_FILES([stamp-h], [echo timestamp > stamp-h])
|
AC_CONFIG_FILES([stamp-h], [echo timestamp > stamp-h])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
|
@ -937,7 +937,7 @@ Make a bootable image of GRUB.\n\
|
||||||
-v, --verbose print verbose messages\n\
|
-v, --verbose print verbose messages\n\
|
||||||
\n\
|
\n\
|
||||||
Report bugs to <%s>.\n\
|
Report bugs to <%s>.\n\
|
||||||
", GRUB_DATADIR, PACKAGE_BUGREPORT);
|
", GRUB_LIBDIR, PACKAGE_BUGREPORT);
|
||||||
|
|
||||||
exit (status);
|
exit (status);
|
||||||
}
|
}
|
||||||
|
@ -991,7 +991,7 @@ main (int argc, char *argv[])
|
||||||
if (! fp)
|
if (! fp)
|
||||||
grub_util_error ("cannot open %s", output);
|
grub_util_error ("cannot open %s", output);
|
||||||
|
|
||||||
convert_elf (dir ? : GRUB_DATADIR, fp, argv + optind);
|
convert_elf (dir ? : GRUB_LIBDIR, fp, argv + optind);
|
||||||
|
|
||||||
fclose (fp);
|
fclose (fp);
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
# Install GRUB on your drive.
|
# Install GRUB on your drive.
|
||||||
# Copyright (C) 1999,2000,2001,2002,2003,2004,2005 Free Software Foundation, Inc.
|
# Copyright (C) 1999,2000,2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This file is free software; you can redistribute it and/or modify it
|
# This file is free software; you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public License as published by
|
# under the terms of the GNU General Public License as published by
|
||||||
|
@ -21,14 +21,13 @@
|
||||||
prefix=@prefix@
|
prefix=@prefix@
|
||||||
exec_prefix=@exec_prefix@
|
exec_prefix=@exec_prefix@
|
||||||
sbindir=@sbindir@
|
sbindir=@sbindir@
|
||||||
datadir=@datadir@
|
libdir=@libdir@
|
||||||
PACKAGE_NAME=@PACKAGE_NAME@
|
PACKAGE_NAME=@PACKAGE_NAME@
|
||||||
PACKAGE_TARNAME=@PACKAGE_TARNAME@
|
PACKAGE_TARNAME=@PACKAGE_TARNAME@
|
||||||
PACKAGE_VERSION=@PACKAGE_VERSION@
|
PACKAGE_VERSION=@PACKAGE_VERSION@
|
||||||
host_cpu=@host_cpu@
|
host_cpu=@host_cpu@
|
||||||
host_os=@host_os@
|
platform=@platform@
|
||||||
host_vendor=@host_vendor@
|
pkglibdir=${libdir}/${PACKAGE_TARNAME}/${host_cpu}-${platform}
|
||||||
pkgdatadir=${datadir}/${PACKAGE_TARNAME}/${host_cpu}-${host_vendor}
|
|
||||||
|
|
||||||
grub_setup=${sbindir}/grub-setup
|
grub_setup=${sbindir}/grub-setup
|
||||||
grub_mkimage=${sbindir}/grub-mkimage
|
grub_mkimage=${sbindir}/grub-mkimage
|
||||||
|
@ -202,7 +201,7 @@ for file in ${grubdir}/*.mod ${grubdir}/*.lst ${grubdir}/*.img; do
|
||||||
rm -f $file || exit 1
|
rm -f $file || exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
for file in ${pkgdatadir}/*.mod ${pkgdatadir}/*.lst ${pkgdatadir}/*.img; do
|
for file in ${pkglibdir}/*.mod ${pkglibdir}/*.lst ${pkglibdir}/*.img; do
|
||||||
cp -f $file ${grubdir} || exit 1
|
cp -f $file ${grubdir} || exit 1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
@ -207,7 +207,7 @@ Make a bootable image of GRUB.\n\
|
||||||
-v, --verbose print verbose messages\n\
|
-v, --verbose print verbose messages\n\
|
||||||
\n\
|
\n\
|
||||||
Report bugs to <%s>.\n\
|
Report bugs to <%s>.\n\
|
||||||
", GRUB_DATADIR, PACKAGE_BUGREPORT);
|
", GRUB_LIBDIR, PACKAGE_BUGREPORT);
|
||||||
|
|
||||||
exit (status);
|
exit (status);
|
||||||
}
|
}
|
||||||
|
@ -269,7 +269,7 @@ main (int argc, char *argv[])
|
||||||
grub_util_error ("cannot open %s", output);
|
grub_util_error ("cannot open %s", output);
|
||||||
}
|
}
|
||||||
|
|
||||||
generate_image (dir ? : GRUB_DATADIR, fp, argv + optind);
|
generate_image (dir ? : GRUB_LIBDIR, fp, argv + optind);
|
||||||
|
|
||||||
fclose (fp);
|
fclose (fp);
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
# Install GRUB on your drive.
|
# Install GRUB on your drive.
|
||||||
# Copyright (C) 1999,2000,2001,2002,2003,2004,2005 Free Software Foundation, Inc.
|
# Copyright (C) 1999,2000,2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This file is free software; you can redistribute it and/or modify it
|
# This file is free software; you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public License as published by
|
# under the terms of the GNU General Public License as published by
|
||||||
|
@ -24,14 +24,13 @@
|
||||||
prefix=@prefix@
|
prefix=@prefix@
|
||||||
exec_prefix=@exec_prefix@
|
exec_prefix=@exec_prefix@
|
||||||
sbindir=@sbindir@
|
sbindir=@sbindir@
|
||||||
datadir=@datadir@
|
libdir=@libdir@
|
||||||
PACKAGE_NAME=@PACKAGE_NAME@
|
PACKAGE_NAME=@PACKAGE_NAME@
|
||||||
PACKAGE_TARNAME=@PACKAGE_TARNAME@
|
PACKAGE_TARNAME=@PACKAGE_TARNAME@
|
||||||
PACKAGE_VERSION=@PACKAGE_VERSION@
|
PACKAGE_VERSION=@PACKAGE_VERSION@
|
||||||
host_cpu=@host_cpu@
|
host_cpu=@host_cpu@
|
||||||
host_os=@host_os@
|
platform=@platform@
|
||||||
host_vendor=@host_vendor@
|
pkglibdir=${libdir}/${PACKAGE_TARNAME}/${host_cpu}-${platform}
|
||||||
pkgdatadir=${datadir}/${PACKAGE_TARNAME}/${host_cpu}-${host_vendor}
|
|
||||||
|
|
||||||
grub_mkimage=${sbindir}/grub-mkimage
|
grub_mkimage=${sbindir}/grub-mkimage
|
||||||
rootdir=
|
rootdir=
|
||||||
|
@ -138,14 +137,14 @@ for file in ${grubdir}/*.mod ${grubdir}/*.lst ; do
|
||||||
rm -f $file || exit 1
|
rm -f $file || exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
for file in ${pkgdatadir}/*.mod ${pkgdatadir}/*.lst ; do
|
for file in ${pkglibdir}/*.mod ${pkglibdir}/*.lst ; do
|
||||||
cp -f $file ${grubdir} || exit 1
|
cp -f $file ${grubdir} || exit 1
|
||||||
done
|
done
|
||||||
|
|
||||||
# Create the core image with all modules, unless user specified a subset.
|
# Create the core image with all modules, unless user specified a subset.
|
||||||
# XXX probe for partition map and filesystem?
|
# XXX probe for partition map and filesystem?
|
||||||
if test "x$modules" = x; then
|
if test "x$modules" = x; then
|
||||||
modules="$pkgdatadir"/*.mod
|
modules="$pkglibdir"/*.mod
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Now perform the installation.
|
# Now perform the installation.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* GRUB -- GRand Unified Bootloader
|
* GRUB -- GRand Unified Bootloader
|
||||||
* Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
* Copyright (C) 2004,2005,2006 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -278,7 +278,7 @@ Make a bootable image of GRUB.\n\
|
||||||
-v, --verbose print verbose messages\n\
|
-v, --verbose print verbose messages\n\
|
||||||
\n\
|
\n\
|
||||||
Report bugs to <%s>.\n\
|
Report bugs to <%s>.\n\
|
||||||
", GRUB_DATADIR, PACKAGE_BUGREPORT);
|
", GRUB_LIBDIR, PACKAGE_BUGREPORT);
|
||||||
|
|
||||||
exit (status);
|
exit (status);
|
||||||
}
|
}
|
||||||
|
@ -336,7 +336,7 @@ main (int argc, char *argv[])
|
||||||
if (! fp)
|
if (! fp)
|
||||||
grub_util_error ("cannot open %s", output);
|
grub_util_error ("cannot open %s", output);
|
||||||
|
|
||||||
add_segments (dir ? : GRUB_DATADIR, fp, chrp, argv + optind);
|
add_segments (dir ? : GRUB_LIBDIR, fp, chrp, argv + optind);
|
||||||
|
|
||||||
fclose (fp);
|
fclose (fp);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue