2018-04-11 18:42:03 +00:00
|
|
|
From 59275c83e7a303c63379d37ba21aa39a3c3b7203 Mon Sep 17 00:00:00 2001
|
2014-01-14 17:57:20 +00:00
|
|
|
From: Peter Jones <pjones@redhat.com>
|
|
|
|
Date: Tue, 14 Jan 2014 13:12:23 -0500
|
2018-04-24 14:41:42 +00:00
|
|
|
Subject: [PATCH 105/236] Make 10_linux work with our changes for linux16 and
|
2014-01-14 17:57:20 +00:00
|
|
|
linuxefi on aarch64
|
|
|
|
|
|
|
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
|
---
|
|
|
|
util/grub.d/10_linux.in | 31 ++++++++++++++++++++++++++++---
|
|
|
|
1 file changed, 28 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
|
2018-02-27 18:56:41 +00:00
|
|
|
index ef52cf3dbbb..191aebe80bb 100644
|
2014-01-14 17:57:20 +00:00
|
|
|
--- a/util/grub.d/10_linux.in
|
|
|
|
+++ b/util/grub.d/10_linux.in
|
2016-03-04 18:32:29 +00:00
|
|
|
@@ -77,8 +77,18 @@ linux_entry ()
|
2014-01-14 17:57:20 +00:00
|
|
|
args="$4"
|
|
|
|
|
|
|
|
sixteenbit=""
|
|
|
|
+ linuxefi="linux"
|
|
|
|
+ initrdefi="initrd"
|
|
|
|
case "$machine" in
|
|
|
|
- i?86|x86_64) sixteenbit="16" ;;
|
|
|
|
+ i?86|x86_64)
|
|
|
|
+ sixteenbit="16"
|
|
|
|
+ linuxefi="linuxefi"
|
|
|
|
+ initrdefi="initrdefi"
|
|
|
|
+ ;;
|
|
|
|
+ aarch64)
|
|
|
|
+ linuxefi="linux"
|
|
|
|
+ initrdefi="initrd"
|
|
|
|
+ ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [ -z "$boot_device_id" ]; then
|
2016-03-04 18:32:29 +00:00
|
|
|
@@ -135,7 +145,7 @@ linux_entry ()
|
2014-01-14 17:57:20 +00:00
|
|
|
fi
|
|
|
|
if [ -d /sys/firmware/efi ]; then
|
|
|
|
sed "s/^/$submenu_indentation/" << EOF
|
|
|
|
- linuxefi ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
|
|
|
|
+ ${linuxefi} ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
|
|
|
|
EOF
|
|
|
|
else
|
|
|
|
sed "s/^/$submenu_indentation/" << EOF
|
2016-03-04 18:32:29 +00:00
|
|
|
@@ -145,7 +155,7 @@ EOF
|
2014-01-14 17:57:20 +00:00
|
|
|
if test -n "${initrd}" ; then
|
|
|
|
if [ -d /sys/firmware/efi ]; then
|
|
|
|
sed "s/^/$submenu_indentation/" << EOF
|
|
|
|
- initrdefi ${rel_dirname}/${initrd}
|
|
|
|
+ ${initrdefi} ${rel_dirname}/${initrd}
|
|
|
|
EOF
|
|
|
|
else
|
|
|
|
sed "s/^/$submenu_indentation/" << EOF
|
2016-03-04 18:32:29 +00:00
|
|
|
@@ -153,6 +163,13 @@ EOF
|
2014-01-14 17:57:20 +00:00
|
|
|
EOF
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
+ if test -n "${fdt}" ; then
|
|
|
|
+ message="$(gettext_printf "Loading fdt ...")"
|
|
|
|
+ sed "s/^/$submenu_indentation/" << EOF
|
|
|
|
+ echo '$(echo "$message" | grub_quote)'
|
|
|
|
+ devicetree ${rel_dirname}/${fdt}
|
|
|
|
+EOF
|
|
|
|
+ fi
|
|
|
|
sed "s/^/$submenu_indentation/" << EOF
|
|
|
|
}
|
|
|
|
EOF
|
2016-03-04 18:32:29 +00:00
|
|
|
@@ -215,6 +232,14 @@ while [ "x$list" != "x" ] ; do
|
2014-01-14 17:57:20 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
+ fdt=
|
|
|
|
+ for i in "dtb-${version}" "dtb-${alt_version}"; do
|
|
|
|
+ if test -e "${dirname}/${i}/foundation-v8.dtb" ; then
|
|
|
|
+ fdt="${i}/foundation-v8.dtb"
|
|
|
|
+ break
|
|
|
|
+ fi
|
|
|
|
+ done
|
|
|
|
+
|
|
|
|
config=
|
|
|
|
for i in "${dirname}/config-${version}" "${dirname}/config-${alt_version}" "/etc/kernels/kernel-config-${version}" ; do
|
|
|
|
if test -e "${i}" ; then
|
|
|
|
--
|
2018-02-27 18:56:41 +00:00
|
|
|
2.15.0
|
2014-01-14 17:57:20 +00:00
|
|
|
|