1 Star 0 Fork 16

jackzhao166/grub2

forked from OpenCloudOS Stream/grub2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0019-efi-disable-video-cirrus-and-bochus.patch 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
nilusyi 提交于 2024-04-07 16:45 . update patches
From 8f784f680fa801e8e29ef0a01297dfcd79c8b287 Mon Sep 17 00:00:00 2001
From: nilusyi <nilusyi@tencent.com>
Date: Mon, 1 Apr 2024 15:05:02 +0800
Subject: [PATCH 019/272] efi disable video cirrus and bochus
Signed-off-by: Michael Chang <mchang@suse.com>
---
gentpl.py | 4 ++++
grub-core/Makefile.core.def | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/gentpl.py b/gentpl.py
index bfab2113a..fb9908c3a 100644
--- a/gentpl.py
+++ b/gentpl.py
@@ -92,6 +92,10 @@ for i in GROUPS["softdiv"]: GROUPS["no_softdiv"].remove(i)
GROUPS["i386_coreboot_multiboot_qemu"] = ["i386_coreboot", "i386_multiboot", "i386_qemu"]
GROUPS["nopc"] = GRUB_PLATFORMS[:]; GROUPS["nopc"].remove("i386_pc")
+# x86 without efi
+GROUPS["x86_noefi"] = GROUPS["x86"][:]
+GROUPS["x86_noefi"].remove("i386_efi"); GROUPS["x86_noefi"].remove("x86_64_efi");
+
#
# Create platform => groups reverse map, where groups covering that
# platform are ordered by their sizes
diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def
index 07aa64caf..43b0f50af 100644
--- a/grub-core/Makefile.core.def
+++ b/grub-core/Makefile.core.def
@@ -2138,13 +2138,13 @@ module = {
module = {
name = video_cirrus;
x86 = video/cirrus.c;
- enable = x86;
+ enable = x86_noefi;
};
module = {
name = video_bochs;
x86 = video/bochs.c;
- enable = x86;
+ enable = x86_noefi;
};
module = {
--
2.41.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jackzhao166/grub2.git
git@gitee.com:jackzhao166/grub2.git
jackzhao166
grub2
grub2
master

搜索帮助