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
|
@ -1,7 +1,7 @@
|
|||
#! /bin/sh
|
||||
|
||||
# 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
|
||||
# under the terms of the GNU General Public License as published by
|
||||
|
@ -24,14 +24,13 @@
|
|||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
sbindir=@sbindir@
|
||||
datadir=@datadir@
|
||||
libdir=@libdir@
|
||||
PACKAGE_NAME=@PACKAGE_NAME@
|
||||
PACKAGE_TARNAME=@PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION=@PACKAGE_VERSION@
|
||||
host_cpu=@host_cpu@
|
||||
host_os=@host_os@
|
||||
host_vendor=@host_vendor@
|
||||
pkgdatadir=${datadir}/${PACKAGE_TARNAME}/${host_cpu}-${host_vendor}
|
||||
platform=@platform@
|
||||
pkglibdir=${libdir}/${PACKAGE_TARNAME}/${host_cpu}-${platform}
|
||||
|
||||
grub_mkimage=${sbindir}/grub-mkimage
|
||||
rootdir=
|
||||
|
@ -138,14 +137,14 @@ for file in ${grubdir}/*.mod ${grubdir}/*.lst ; do
|
|||
rm -f $file || exit 1
|
||||
fi
|
||||
done
|
||||
for file in ${pkgdatadir}/*.mod ${pkgdatadir}/*.lst ; do
|
||||
for file in ${pkglibdir}/*.mod ${pkglibdir}/*.lst ; do
|
||||
cp -f $file ${grubdir} || exit 1
|
||||
done
|
||||
|
||||
# Create the core image with all modules, unless user specified a subset.
|
||||
# XXX probe for partition map and filesystem?
|
||||
if test "x$modules" = x; then
|
||||
modules="$pkgdatadir"/*.mod
|
||||
modules="$pkglibdir"/*.mod
|
||||
fi
|
||||
|
||||
# Now perform the installation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue