1
0
forked from dan/liminix

declare options.hardware.ubi unconditionally

this is so it can be defined in device modules even when
ubifs is not included in the configuration
This commit is contained in:
Daniel Barlow 2024-12-23 22:20:16 +00:00
parent 6cd5b90678
commit ede8f12d2b
2 changed files with 6 additions and 7 deletions

View File

@ -13,6 +13,12 @@ in
options = {
boot = { };
hardware = {
ubi = {
minIOSize = mkOption { type = types.str; };
logicalEraseBlockSize = mkOption { type = types.str; }; # LEB
physicalEraseBlockSize = mkOption { type = types.str; }; # PEB
maxLEBcount = mkOption { type = types.str; }; # LEB
};
dts = {
src = mkOption {
type = types.nullOr types.path;

View File

@ -13,13 +13,6 @@ in
./initramfs.nix
];
options.hardware.ubi = {
minIOSize = mkOption { type = types.str; };
logicalEraseBlockSize = mkOption { type = types.str; }; # LEB
physicalEraseBlockSize = mkOption { type = types.str; }; # PEB
maxLEBcount = mkOption { type = types.str; }; # LEB
};
config = mkIf (config.rootfsType == "ubifs") {
kernel.config = {
MTD_UBI="y";