Skip to content

Commit

Permalink
hardware/amlogic: Add default installation steps
Browse files Browse the repository at this point in the history
  • Loading branch information
samueldr committed Feb 26, 2022
1 parent c299e5a commit dfefba7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions modules/hardware/amlogic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ let
amlogicG12
amlogicGXL
];

anyAmlogic = lib.any (v: v) [amlogicGXL amlogicG12];
isPhoneUX = config.Tow-Boot.phone-ux.enable;
in
{
options = {
Expand Down Expand Up @@ -203,5 +206,23 @@ in
};
};
})

# Documentation fragments
(mkIf (anyAmlogic && !isPhoneUX) {
documentation.sections.installationInstructions =
lib.mkDefault
(config.documentation.helpers.genericInstallationInstructionsTemplate {
startupConflictNote = ''
> **NOTE**: The SoC startup order for Amlogic systems will
> prefer *SPI*, then *eMMC*, followed by *SD* last.
>
> You may need to prevent default startup sources from being used
> to install using the Tow-Boot installer image.
'';
})
;
})
];
}

0 comments on commit dfefba7

Please sign in to comment.