Blame SOURCES/0318-powerpc-Drop-Open-Hack-Ware.patch

fd0330
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
fd0330
From: Daniel Axtens <dja@axtens.net>
fd0330
Date: Mon, 6 Sep 2021 15:46:11 +1000
fd0330
Subject: [PATCH] powerpc: Drop Open Hack'Ware
fd0330
fd0330
Open Hack'Ware was an alternative firmware of powerpc under QEMU.
fd0330
fd0330
The last commit to any Open Hack'Ware repo I can find is from 2014 [1].
fd0330
fd0330
Open Hack'Ware was used for the QEMU "prep" machine type, which was
fd0330
deprecated in QEMU in commit 54c86f5a4844 (hw/ppc: deprecate the
fd0330
machine type 'prep', replaced by '40p') in QEMU v3.1, and had reportedly
fd0330
been broken for years before without anyone noticing. Support was removed
fd0330
in February 2020 by commit b2ce76a0730e (hw/ppc/prep: Remove the
fd0330
deprecated "prep" machine and the OpenHackware BIOS).
fd0330
fd0330
Open Hack'Ware's limitations require some messy code in GRUB. This
fd0330
complexity is not worth carrying any more.
fd0330
fd0330
Remove detection of Open Hack'Ware. We will clean up the feature flags
fd0330
in following commits.
fd0330
fd0330
[1]: https://github.com/qemu/openhackware and
fd0330
     https://repo.or.cz/w/openhackware.git are QEMU submodules. They have
fd0330
     only small changes on top of OHW v0.4.1, which was imported into
fd0330
     QEMU SCM in 2010. I can't find anything resembling an official repo
fd0330
     any more.
fd0330
fd0330
Signed-off-by: Daniel Axtens <dja@axtens.net>
fd0330
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
fd0330
(cherry picked from commit f9ce538eec88c5cffbfde021c4e8a95a5e9d0e8f)
fd0330
---
fd0330
 grub-core/kern/ieee1275/cmain.c | 16 ----------------
fd0330
 1 file changed, 16 deletions(-)
fd0330
fd0330
diff --git a/grub-core/kern/ieee1275/cmain.c b/grub-core/kern/ieee1275/cmain.c
fd0330
index dce7b84922..cb42f60ebe 100644
fd0330
--- a/grub-core/kern/ieee1275/cmain.c
fd0330
+++ b/grub-core/kern/ieee1275/cmain.c
fd0330
@@ -49,7 +49,6 @@ grub_ieee1275_find_options (void)
fd0330
   grub_ieee1275_phandle_t root;
fd0330
   grub_ieee1275_phandle_t options;
fd0330
   grub_ieee1275_phandle_t openprom;
fd0330
-  grub_ieee1275_phandle_t bootrom;
fd0330
   int rc;
fd0330
   grub_uint32_t realmode = 0;
fd0330
   char tmp[256];
fd0330
@@ -198,21 +197,6 @@ grub_ieee1275_find_options (void)
fd0330
 
fd0330
       grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_HAS_CURSORONOFF);
fd0330
     }
fd0330
-
fd0330
-  if (! grub_ieee1275_finddevice ("/rom/boot-rom", &bootrom)
fd0330
-      || ! grub_ieee1275_finddevice ("/boot-rom", &bootrom))
fd0330
-    {
fd0330
-      rc = grub_ieee1275_get_property (bootrom, "model", tmp, sizeof (tmp), 0);
fd0330
-      if (rc >= 0 && !grub_strncmp (tmp, "PPC Open Hack'Ware",
fd0330
-				    sizeof ("PPC Open Hack'Ware") - 1))
fd0330
-	{
fd0330
-	  grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_BROKEN_OUTPUT);
fd0330
-	  grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_CANNOT_SET_COLORS);
fd0330
-	  grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_CANNOT_INTERPRET);
fd0330
-	  grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_FORCE_CLAIM);
fd0330
-	  grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_NO_ANSI);
fd0330
-	}
fd0330
-    }
fd0330
 }
fd0330
 
fd0330
 void