Allow install_device to be missing on non-pc and non-sparc
This commit is contained in:
parent
76e61597b4
commit
14437e8008
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue