Skip to content

Commit a415b7b

Browse files
daxtensfrozencemetery
authored andcommitted
powerpc: Drop Open Hack'Ware
Open Hack'Ware was an alternative firmware of powerpc under QEMU. The last commit to any Open Hack'Ware repo I can find is from 2014 [1]. Open Hack'Ware was used for the QEMU "prep" machine type, which was deprecated in QEMU in commit 54c86f5a4844 (hw/ppc: deprecate the machine type 'prep', replaced by '40p') in QEMU v3.1, and had reportedly been broken for years before without anyone noticing. Support was removed in February 2020 by commit b2ce76a0730e (hw/ppc/prep: Remove the deprecated "prep" machine and the OpenHackware BIOS). Open Hack'Ware's limitations require some messy code in GRUB. This complexity is not worth carrying any more. Remove detection of Open Hack'Ware. We will clean up the feature flags in following commits. [1]: https://github.com/qemu/openhackware and https://repo.or.cz/w/openhackware.git are QEMU submodules. They have only small changes on top of OHW v0.4.1, which was imported into QEMU SCM in 2010. I can't find anything resembling an official repo any more. Signed-off-by: Daniel Axtens <[email protected]> Reviewed-by: Daniel Kiper <[email protected]> (cherry picked from commit f9ce538)
1 parent c48833c commit a415b7b

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

grub-core/kern/ieee1275/cmain.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ grub_ieee1275_find_options (void)
4949
grub_ieee1275_phandle_t root;
5050
grub_ieee1275_phandle_t options;
5151
grub_ieee1275_phandle_t openprom;
52-
grub_ieee1275_phandle_t bootrom;
5352
int rc;
5453
grub_uint32_t realmode = 0;
5554
char tmp[256];
@@ -198,21 +197,6 @@ grub_ieee1275_find_options (void)
198197

199198
grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_HAS_CURSORONOFF);
200199
}
201-
202-
if (! grub_ieee1275_finddevice ("/rom/boot-rom", &bootrom)
203-
|| ! grub_ieee1275_finddevice ("/boot-rom", &bootrom))
204-
{
205-
rc = grub_ieee1275_get_property (bootrom, "model", tmp, sizeof (tmp), 0);
206-
if (rc >= 0 && !grub_strncmp (tmp, "PPC Open Hack'Ware",
207-
sizeof ("PPC Open Hack'Ware") - 1))
208-
{
209-
grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_BROKEN_OUTPUT);
210-
grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_CANNOT_SET_COLORS);
211-
grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_CANNOT_INTERPRET);
212-
grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_FORCE_CLAIM);
213-
grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_NO_ANSI);
214-
}
215-
}
216200
}
217201

218202
void

0 commit comments

Comments
 (0)