Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions apple-silicon-support/modules/boot-m1n1/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ let

bootUBoot = pkgs'.uboot-asahi.override {
m1n1 = bootM1n1;
appendConfig = config.boot.ubootExtraConfig;
};

bootFiles = {
Expand Down Expand Up @@ -51,5 +52,14 @@ in {
Custom logo to build into m1n1. The path must point to a 256x256 PNG.
'';
};

ubootExtraConfig = lib.mkOption {
type = lib.types.str;
default = "";
description = ''
Append extra options to the u-boot build command. Useful for customizing
the u-boot binary for custom functionality.
'';
};
};
}
3 changes: 3 additions & 0 deletions apple-silicon-support/packages/uboot-asahi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, fetchFromGitHub
, buildUBoot
, m1n1
, appendConfig ? ""
}:

(buildUBoot rec {
Expand All @@ -27,6 +28,8 @@
CONFIG_VIDEO_FONT_SUN12X22=n
CONFIG_VIDEO_FONT_16X32=y
CONFIG_CMD_BOOTMENU=y
${appendConfig}
'';
}).overrideAttrs (o: {
# nixos's downstream patches are not applicable
Expand Down