Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mN7Sj-0005Zg-9o for mharc-grub-devel@gnu.org; Mon, 06 Sep 2021 01:46:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mN7Se-0005Um-C9 for grub-devel@gnu.org; Mon, 06 Sep 2021 01:46:29 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]:36567) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mN7SY-0004ET-G3 for grub-devel@gnu.org; Mon, 06 Sep 2021 01:46:27 -0400 Received: by mail-pg1-x530.google.com with SMTP id t1so5657793pgv.3 for ; Sun, 05 Sep 2021 22:46:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gDQ1PtdBSUmAcQBrCdZKvgGaMjxLgRmOBFe7ZWWSuDQ=; b=SW90rTKpJMw38maA3NL1KI640waa9UBe/OaicI4A14NA/5SBK57CJ+HO3myC+R6zUL 0yZ/Lt9TdjRpqC9H8zO82xd5RdRdWny/R4FBj03v2IC15eEPBYwf12CmTeuLnho5VWZs PNJ486ELMeVi5mHyUzkbVem6FETEsXEOkFwqk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gDQ1PtdBSUmAcQBrCdZKvgGaMjxLgRmOBFe7ZWWSuDQ=; b=AjJQQlejOMnkRA3Ej6cNSba1V08V0IDkaIKu37BO2mdFMT9+uNBUNkwmH3jKPn869u 8YptyF9QJicG4cBOLNMs8/5HycJpv+uPpY/A5HumMyV2K44v/OL0ahwTUrQF+L8GixB4 WIeofZBxZY3dhZfY5vNKAmAtZko6kIIs3HT2JX5AZhfjfkVWmI8pzKOVR1dyfYJHp30Z xNHk8OrIOB4tEkEdjvYgcx7CY2H/SRhzK1gkYmVs+dv2IHrgh94OzUbqEYnZz9MQHkX2 vs7lZJE7RFVdwK5AGq9D36Yx71tT+qZmFOYz1K6yrwQpkwUzESG/zCtFrr+1SRBgVrJ3 zvYA== X-Gm-Message-State: AOAM531sjGChs4K1CCpB8VV6MCbQZ+YrMQpZbyBHpckAah58PfoDrT/a 5Ea8dQl3/MB+qMo7VKg25XJR9dWXVnvj0A== X-Google-Smtp-Source: ABdhPJy2p3lA38n9Mh5PXzs/wEKWxwgvCgxzaYYc+okOaMTyQfPlgk7FcDNG4yHTjLEZKA4OM7Kx4w== X-Received: by 2002:a63:1e0e:: with SMTP id e14mr10797346pge.5.1630907179965; Sun, 05 Sep 2021 22:46:19 -0700 (PDT) Received: from localhost ([2001:4479:e200:df00:dadc:1c0c:1283:1cdb]) by smtp.gmail.com with ESMTPSA id g18sm8152508pge.33.2021.09.05.22.46.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Sep 2021 22:46:19 -0700 (PDT) From: Daniel Axtens To: grub-devel@gnu.org Cc: Daniel Axtens Subject: [PATCH 1/5] powerpc: drop Open Hack'Ware Date: Mon, 6 Sep 2021 15:46:11 +1000 Message-Id: <20210906054615.217738-1-dja@axtens.net> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=dja@axtens.net; helo=mail-pg1-x530.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Sep 2021 05:46:30 -0000 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 Feburary 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 --- grub-core/kern/ieee1275/cmain.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/grub-core/kern/ieee1275/cmain.c b/grub-core/kern/ieee1275/cmain.c index 20cbbd761ec3..4442b6a83193 100644 --- a/grub-core/kern/ieee1275/cmain.c +++ b/grub-core/kern/ieee1275/cmain.c @@ -49,7 +49,6 @@ grub_ieee1275_find_options (void) grub_ieee1275_phandle_t root; grub_ieee1275_phandle_t options; grub_ieee1275_phandle_t openprom; - grub_ieee1275_phandle_t bootrom; int rc; grub_uint32_t realmode = 0; char tmp[256]; @@ -190,21 +189,6 @@ grub_ieee1275_find_options (void) grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_HAS_CURSORONOFF); } - - if (! grub_ieee1275_finddevice ("/rom/boot-rom", &bootrom) - || ! grub_ieee1275_finddevice ("/boot-rom", &bootrom)) - { - rc = grub_ieee1275_get_property (bootrom, "model", tmp, sizeof (tmp), 0); - if (rc >= 0 && !grub_strncmp (tmp, "PPC Open Hack'Ware", - sizeof ("PPC Open Hack'Ware") - 1)) - { - grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_BROKEN_OUTPUT); - grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_CANNOT_SET_COLORS); - grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_CANNOT_INTERPRET); - grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_FORCE_CLAIM); - grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_NO_ANSI); - } - } } void -- 2.30.2