Allow install_device to be missing on non-pc and non-sparc

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-09-15 14:45:08 +02:00
parent 76e61597b4
commit 14437e8008

View file

@ -83,7 +83,8 @@ fi
# Usage: usage # Usage: usage
# Print the usage. # Print the usage.
usage () { usage () {
if test "x$install_device" = x && test "${target_cpu}-${platform}" != "mips-yeeloong" && test "${target_cpu}-${platform}" != "i386-ieee1275" && test "${target_cpu}-${platform}" != "powerpc-ieee1275"; then if [ "${target_cpu}-${platform}" = "i386-pc" ] \
|| [ "${target_cpu}-${platform}" = "sparc64-ieee1275" ]; then
cat <<EOF cat <<EOF
Usage: $self [OPTION] install_device Usage: $self [OPTION] install_device
EOF EOF
@ -261,7 +262,8 @@ done
# for make_system_path_relative_to_its_root() # for make_system_path_relative_to_its_root()
. ${libdir}/grub/grub-mkconfig_lib . ${libdir}/grub/grub-mkconfig_lib
if test "x$install_device" = x && test "${target_cpu}-${platform}" != "mips-yeeloong" && test "${target_cpu}-${platform}" != "i386-ieee1275" && test "${target_cpu}-${platform}" != "powerpc-ieee1275"; then if test "x$install_device" = x && ([ "${target_cpu}-${platform}" = "i386-pc" ] \
|| [ "${target_cpu}-${platform}" = "sparc64-ieee1275" ]); then
echo "install_device not specified." 1>&2 echo "install_device not specified." 1>&2
usage usage
exit 1 exit 1