Files
omarchy-pkgs/pkgbuilds/uboot-asahi/quiet-console.patch
T
Marcelo Alcantara d7906a4b1a Add m1n1-aurora and the silent uboot-asahi for Apple Silicon, aarch64 and edge only
Ported from the asahi-quattro lane. Both are pinned by hand like
linux-aurora and restricted to aarch64 and the edge channel from their
first merge, since merging publishes. pkgrel sits one above the fork
lanes' builds so the same filename never carries two sets of bytes.
2026-09-25 17:26:11 +10:00

41 lines
1.3 KiB
Diff

From: Marcelo Alcantara <maralc@gmail.com>
Subject: [PATCH] apple: keep the console silent on Macs
Omarchy boots the Mac to a splash, not a terminal: with CONFIG_SILENT_CONSOLE
the console is muted whenever the 'silent' variable is set, so the default
environment sets it. Only U-Boot is silenced (CONFIG_SILENT_U_BOOT_ONLY);
the kernel command line is untouched.
---
board/apple/mac/mac.env | 1 +
1 file changed, 1 insertion(+)
diff --git a/board/apple/mac/mac.env b/board/apple/mac/mac.env
--- a/board/apple/mac/mac.env
+++ b/board/apple/mac/mac.env
@@ -2,3 +2,4 @@ stdin=serial,usbkbd,spikbd,mtpkbd
stdout=vidconsole,serial
stderr=vidconsole,serial
boot_targets=nvme usb
+silent=1
The banner "U-Boot 2026.07 ..." is announced on the video console after
relocation through console_puts_select(), which never looks at the silent
flag; a silent console stays silent for the banner too.
---
common/console.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/common/console.c b/common/console.c
--- a/common/console.c
+++ b/common/console.c
@@ -1022,6 +1022,9 @@ int console_announce_r(void)
#if !CONFIG_IS_ENABLED(PRE_CONSOLE_BUFFER)
char buf[DISPLAY_OPTIONS_BANNER_LENGTH];
+ if (IS_ENABLED(CONFIG_SILENT_CONSOLE) && (gd->flags & GD_FLG_SILENT))
+ return 0;
+
display_options_get_banner(false, buf, sizeof(buf));
console_puts_select(stdout, false, buf);