Репозиторий Sisyphus
Последнее обновление: 16 июля 2019 | Пакетов: 17677 | Посещений: 14322264
en ru br
Репозитории ALT
S:2.02-alt17
D:0.97-alt2
5.1: 0.97-alt5
4.1: 0.97-alt4.M41.1
3.0: 0.95-alt1
www.altlinux.org/Changes

Группа :: Система/Ядро и оборудование
Пакет: grub

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: grub-2.02-sb-0005-Make-10_linux-work-with-our-changes-for-linux16-and-.patch
Скачать


From 151170890c3109544ba88aa375098bae56f3c2b8 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Tue, 14 Jan 2014 13:12:23 -0500
Subject: [PATCH 05/17] Make 10_linux work with our changes for linux16 and
 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
index 44ea25cf0..c01037f7a 100644
--- a/util/grub.d/10_linux.in
+++ b/util/grub.d/10_linux.in
@@ -77,8 +77,18 @@ linux_entry ()
   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
@@ -137,7 +147,7 @@ linux_entry ()
   if [ -d /sys/firmware/efi ]; then
     sed "s/^/$submenu_indentation/" << EOF
 	echo	'$(echo "$message" | grub_quote)'
-	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
@@ -151,7 +161,7 @@ EOF
     if [ -d /sys/firmware/efi ]; then
       sed "s/^/$submenu_indentation/" << EOF
 	echo	'$(echo "$message" | grub_quote)'
-	initrdefi ${rel_dirname}/${initrd}
+	${initrdefi} ${rel_dirname}/${initrd}
 EOF
     else
       sed "s/^/$submenu_indentation/" << EOF
@@ -160,6 +170,13 @@ EOF
 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
@@ -222,6 +239,14 @@ while [ "x$list" != "x" ] ; do
     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
-- 
2.19.2
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin